Package version:

Interface representing a Webhooks.

interface Webhooks {
    beginCreate(resourceGroupName: string, registryName: string, webhookName: string, webhookCreateParameters: WebhookCreateParameters, options?: WebhooksCreateOptionalParams): Promise<SimplePollerLike<OperationState<Webhook>, Webhook>>;
    beginCreateAndWait(resourceGroupName: string, registryName: string, webhookName: string, webhookCreateParameters: WebhookCreateParameters, options?: WebhooksCreateOptionalParams): Promise<Webhook>;
    beginDelete(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
    beginDeleteAndWait(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksDeleteOptionalParams): Promise<void>;
    beginUpdate(resourceGroupName: string, registryName: string, webhookName: string, webhookUpdateParameters: WebhookUpdateParameters, options?: WebhooksUpdateOptionalParams): Promise<SimplePollerLike<OperationState<Webhook>, Webhook>>;
    beginUpdateAndWait(resourceGroupName: string, registryName: string, webhookName: string, webhookUpdateParameters: WebhookUpdateParameters, options?: WebhooksUpdateOptionalParams): Promise<Webhook>;
    get(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksGetOptionalParams): Promise<Webhook>;
    getCallbackConfig(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksGetCallbackConfigOptionalParams): Promise<CallbackConfig>;
    list(resourceGroupName: string, registryName: string, options?: WebhooksListOptionalParams): PagedAsyncIterableIterator<Webhook>;
    listEvents(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksListEventsOptionalParams): PagedAsyncIterableIterator<Event>;
    ping(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksPingOptionalParams): Promise<EventInfo>;
}

Methods

  • Creates a webhook for a container registry with the specified parameters.

    Parameters

    • resourceGroupName: string

      The name of the resource group. The name is case insensitive.

    • registryName: string

      The name of the container registry.

    • webhookName: string

      The name of the webhook.

    • webhookCreateParameters: WebhookCreateParameters

      The parameters for creating a webhook.

    • Optionaloptions: WebhooksCreateOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<Webhook>, Webhook>>

  • Creates a webhook for a container registry with the specified parameters.

    Parameters

    • resourceGroupName: string

      The name of the resource group. The name is case insensitive.

    • registryName: string

      The name of the container registry.

    • webhookName: string

      The name of the webhook.

    • webhookCreateParameters: WebhookCreateParameters

      The parameters for creating a webhook.

    • Optionaloptions: WebhooksCreateOptionalParams

      The options parameters.

    Returns Promise<Webhook>

  • Deletes a webhook from a container registry.

    Parameters

    • resourceGroupName: string

      The name of the resource group. The name is case insensitive.

    • registryName: string

      The name of the container registry.

    • webhookName: string

      The name of the webhook.

    • Optionaloptions: WebhooksDeleteOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<void>, void>>

  • Deletes a webhook from a container registry.

    Parameters

    • resourceGroupName: string

      The name of the resource group. The name is case insensitive.

    • registryName: string

      The name of the container registry.

    • webhookName: string

      The name of the webhook.

    • Optionaloptions: WebhooksDeleteOptionalParams

      The options parameters.

    Returns Promise<void>

  • Updates a webhook with the specified parameters.

    Parameters

    • resourceGroupName: string

      The name of the resource group. The name is case insensitive.

    • registryName: string

      The name of the container registry.

    • webhookName: string

      The name of the webhook.

    • webhookUpdateParameters: WebhookUpdateParameters

      The parameters for updating a webhook.

    • Optionaloptions: WebhooksUpdateOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<Webhook>, Webhook>>

  • Updates a webhook with the specified parameters.

    Parameters

    • resourceGroupName: string

      The name of the resource group. The name is case insensitive.

    • registryName: string

      The name of the container registry.

    • webhookName: string

      The name of the webhook.

    • webhookUpdateParameters: WebhookUpdateParameters

      The parameters for updating a webhook.

    • Optionaloptions: WebhooksUpdateOptionalParams

      The options parameters.

    Returns Promise<Webhook>

  • Gets the properties of the specified webhook.

    Parameters

    • resourceGroupName: string

      The name of the resource group. The name is case insensitive.

    • registryName: string

      The name of the container registry.

    • webhookName: string

      The name of the webhook.

    • Optionaloptions: WebhooksGetOptionalParams

      The options parameters.

    Returns Promise<Webhook>

  • Gets the configuration of service URI and custom headers for the webhook.

    Parameters

    • resourceGroupName: string

      The name of the resource group. The name is case insensitive.

    • registryName: string

      The name of the container registry.

    • webhookName: string

      The name of the webhook.

    • Optionaloptions: WebhooksGetCallbackConfigOptionalParams

      The options parameters.

    Returns Promise<CallbackConfig>

  • Lists all the webhooks for the specified container registry.

    Parameters

    • resourceGroupName: string

      The name of the resource group. The name is case insensitive.

    • registryName: string

      The name of the container registry.

    • Optionaloptions: WebhooksListOptionalParams

      The options parameters.

    Returns PagedAsyncIterableIterator<Webhook>

  • Lists recent events for the specified webhook.

    Parameters

    • resourceGroupName: string

      The name of the resource group. The name is case insensitive.

    • registryName: string

      The name of the container registry.

    • webhookName: string

      The name of the webhook.

    • Optionaloptions: WebhooksListEventsOptionalParams

      The options parameters.

    Returns PagedAsyncIterableIterator<Event>

  • Triggers a ping event to be sent to the webhook.

    Parameters

    • resourceGroupName: string

      The name of the resource group. The name is case insensitive.

    • registryName: string

      The name of the container registry.

    • webhookName: string

      The name of the webhook.

    • Optionaloptions: WebhooksPingOptionalParams

      The options parameters.

    Returns Promise<EventInfo>