MaintenanceGroupConfigurationAssignmentCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}.
  • Operation Id. : ConfigurationAssignmentOperationGroup_Get.
  • Default Api Version. : 2023-10-01-preview.
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Maintenance.MaintenanceGroupConfigurationAssignmentResource>> GetIfExistsAsync(string configurationAssignmentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Maintenance.MaintenanceGroupConfigurationAssignmentResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Maintenance.MaintenanceGroupConfigurationAssignmentResource>>
Public Overridable Function GetIfExistsAsync (configurationAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of MaintenanceGroupConfigurationAssignmentResource))

Parameters

configurationAssignmentName
String

The name of the ConfigurationAssignment.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

configurationAssignmentName is null.

configurationAssignmentName is an empty string, and was expected to be non-empty.

Applies to