Webhook Class
An object that represents a webhook for a container registry.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.mgmt.containerregistry.v2023_11_01_preview.models._models_py3.ResourceWebhook
Constructor
Webhook(*, location: str, tags: Dict[str, str] | None = None, status: str | _models.WebhookStatus | None = None, scope: str | None = None, actions: List[str | _models.WebhookAction] | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
location
|
The location of the resource. This cannot be changed after the resource is created. Required. |
tags
|
The tags of the resource. |
status
|
str or
WebhookStatus
The status of the webhook at the time the operation was called. Known values are: "enabled" and "disabled". |
scope
|
The scope of repositories where the event can be triggered. For example, 'foo:>>*<<' means events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'. Empty means all events. |
actions
|
The list of actions that trigger the webhook to post notifications. |
Variables
Name | Description |
---|---|
id
|
The resource ID. |
name
|
The name of the resource. |
type
|
The type of the resource. |
location
|
The location of the resource. This cannot be changed after the resource is created. Required. |
tags
|
The tags of the resource. |
system_data
|
Metadata pertaining to creation and last modification of the resource. |
status
|
str or
WebhookStatus
The status of the webhook at the time the operation was called. Known values are: "enabled" and "disabled". |
scope
|
The scope of repositories where the event can be triggered. For example, 'foo:>>*<<' means events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'. Empty means all events. |
actions
|
The list of actions that trigger the webhook to post notifications. |
provisioning_state
|
The provisioning state of the webhook at the time the operation was called. Known values are: "Creating", "Updating", "Deleting", "Succeeded", "Failed", and "Canceled". |
Azure SDK for Python