次の方法で共有


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.Model
WebhookCreateParameters

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
str

The location of the webhook. This cannot be changed after the resource is created. Required.

service_uri
str

The service URI for the webhook to post notifications.

custom_headers

Custom headers that will be added to the webhook notifications.

status

The status of the webhook at the time the operation was called. Known values are: "enabled" and "disabled".

scope
str

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
str

The location of the webhook. This cannot be changed after the resource is created. Required.

service_uri
str

The service URI for the webhook to post notifications.

custom_headers

Custom headers that will be added to the webhook notifications.

status

The status of the webhook at the time the operation was called. Known values are: "enabled" and "disabled".

scope
str

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.