WebhookCreateParameters Class
The parameters for creating a webhook.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.mgmt.containerregistry._serialization.ModelWebhookCreateParameters
Constructor
WebhookCreateParameters(*, location: str, tags: Dict[str, str] | None = None, service_uri: str | None = None, custom_headers: 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 |
---|---|
tags
|
The tags for the webhook. |
location
|
The location of the webhook. This cannot be changed after the resource is created. Required. |
service_uri
|
The service URI for the webhook to post notifications. |
custom_headers
|
Custom headers that will be added to the webhook notifications. |
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 |
---|---|
tags
|
The tags for the webhook. |
location
|
The location of the webhook. This cannot be changed after the resource is created. Required. |
service_uri
|
The service URI for the webhook to post notifications. |
custom_headers
|
Custom headers that will be added to the webhook notifications. |
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. |
Azure SDK for Python