Compartilhar via


CostManagementAlertCollection.GetAsync(String, CancellationToken) Método

Definição

Obtém o alerta para o escopo por ID de alerta.

  • Caminho da Solicitação/{scope}/providers/Microsoft.CostManagement/alerts/{alertId}
  • Operação IdAlerts_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CostManagement.CostManagementAlertResource>> GetAsync (string alertId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CostManagement.CostManagementAlertResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CostManagement.CostManagementAlertResource>>
Public Overridable Function GetAsync (alertId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CostManagementAlertResource))

Parâmetros

alertId
String

ID do alerta.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

alertId é nulo.

Aplica-se a