Compartilhar via


AutomationWebhookCollection.GetAsync(String, CancellationToken) Método

Definição

Recupere o webhook identificado pelo nome do webhook.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}
  • Operação IdWebhook_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationWebhookResource>> GetAsync (string webhookName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationWebhookResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationWebhookResource>>
Public Overridable Function GetAsync (webhookName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AutomationWebhookResource))

Parâmetros

webhookName
String

O nome do webhook.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

webhookName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

webhookName é nulo.

Aplica-se a