WebhookCreateParameters Class

The parameters for creating a webhook.

All required parameters must be populated in order to send to Azure.

Inheritance
WebhookCreateParameters

Constructor

WebhookCreateParameters(*, location: str, tags: Optional[Dict[str, str]] = None, service_uri: Optional[str] = None, custom_headers: Optional[Dict[str, str]] = None, status: Optional[Union[str, azure.mgmt.containerregistry.v2021_08_01_preview.models._container_registry_management_client_enums.WebhookStatus]] = None, scope: Optional[str] = None, actions: Optional[List[Union[str, azure.mgmt.containerregistry.v2021_08_01_preview.models._container_registry_management_client_enums.WebhookAction]]] = None, **kwargs)

Variables

tags
dict[str, str]

A set of tags. The tags for the webhook.

location
str

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

service_uri
str

The service URI for the webhook to post notifications.

custom_headers
dict[str, str]

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. Possible values include: "enabled", "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
list[str or WebhookAction]

The list of actions that trigger the webhook to post notifications.