ContainerRegistryWebhookResource.GetEventsAsync(CancellationToken) Method

Definition

Lists recent events for the specified webhook.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/listEvents.
  • Operation Id. : Webhooks_ListEvents.
  • Default Api Version. : 2026-03-01-preview.
  • Resource. : ContainerRegistryWebhookResource.
public virtual Azure.AsyncPageable<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryWebhookEvent> GetEventsAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetEventsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryWebhookEvent>
override this.GetEventsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryWebhookEvent>
Public Overridable Function GetEventsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ContainerRegistryWebhookEvent)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ContainerRegistryWebhookEvent that may take multiple service requests to iterate over.

Applies to