Udostępnij za pośrednictwem


ServiceAlertCollection.GetIfExistsAsync(Guid, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}
  • Operation Id: Alerts_GetById
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AlertsManagement.ServiceAlertResource>> GetIfExistsAsync (Guid alertId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AlertsManagement.ServiceAlertResource>>
override this.GetIfExistsAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AlertsManagement.ServiceAlertResource>>
Public Overridable Function GetIfExistsAsync (alertId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ServiceAlertResource))

Parameters

alertId
Guid

Unique ID of an alert instance.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to