Share via


ServiceAlertCollection.GetIfExists(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 Azure.NullableResponse<Azure.ResourceManager.AlertsManagement.ServiceAlertResource> GetIfExists (Guid alertId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : Guid * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.AlertsManagement.ServiceAlertResource>
override this.GetIfExists : Guid * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.AlertsManagement.ServiceAlertResource>
Public Overridable Function GetIfExists (alertId As Guid, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ServiceAlertResource)

Parameters

alertId
Guid

Unique ID of an alert instance.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to