Partager via


AutomationWebhookCollection.GetAsync(String, CancellationToken) Méthode

Définition

Récupérez le webhook identifié par le nom du webhook.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}
  • IdWebhook_Get d’opération
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))

Paramètres

webhookName
String

Nom du webhook.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

webhookName est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.

webhookName a la valeur null.

S’applique à