ContainerServiceExtensions.GetMaintenanceWindowAsync Method

Definition

Gets the specified maintenance window. <item> Mocking. To mock this method, please mock GetMaintenanceWindowAsync(String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.MaintenanceWindowResource>> GetMaintenanceWindowAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string maintenanceWindowName, System.Threading.CancellationToken cancellationToken = default);
static member GetMaintenanceWindowAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.MaintenanceWindowResource>>
<Extension()>
Public Function GetMaintenanceWindowAsync (resourceGroupResource As ResourceGroupResource, maintenanceWindowName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MaintenanceWindowResource))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

maintenanceWindowName
String

The name of the maintenance window.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to