RoleManagementAlertConfigurationCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations/{alertId}.
  • Operation Id. : AlertConfigurations_Get.
  • Default Api Version. : 2022-08-01-preview.
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Authorization.RoleManagementAlertConfigurationResource>> GetIfExistsAsync(string alertId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Authorization.RoleManagementAlertConfigurationResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Authorization.RoleManagementAlertConfigurationResource>>
Public Overridable Function GetIfExistsAsync (alertId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of RoleManagementAlertConfigurationResource))

Parameters

alertId
String

The name of the alert configuration to get.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

alertId is null.

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

Applies to