共用方式為


ContainerRegistryWebhookResource.PingAsync(CancellationToken) Method

Definition

Triggers a ping event to be sent to the webhook.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/ping
  • Operation Id: Webhooks_Ping
  • Default Api Version: 2022-12-01
  • Resource: ContainerRegistryWebhookResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryWebhookEventInfo>> PingAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member PingAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryWebhookEventInfo>>
override this.PingAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryWebhookEventInfo>>
Public Overridable Function PingAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ContainerRegistryWebhookEventInfo))

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to