Microsoft.ContainerRegistry registries/webhooks 2021-08-01-preview

Bicep resource definition

The registries/webhooks resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.ContainerRegistry/registries/webhooks resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.ContainerRegistry/registries/webhooks@2021-08-01-preview' = {
  parent: resourceSymbolicName
  location: 'string'
  name: 'string'
  properties: {
    actions: [
      'string'
    ]
    customHeaders: {
      {customized property}: 'string'
    }
    scope: 'string'
    serviceUri: 'string'
    status: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

Property values

Microsoft.ContainerRegistry/registries/webhooks

Name Description Value
location The location of the webhook. This cannot be changed after the resource is created. string (required)
name The resource name string

Constraints:
Min length = 5
Max length = 5
Pattern = ^[a-zA-Z0-9]*$ (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: registries
properties The properties that the webhook will be created with. WebhookPropertiesCreateParametersOrWebhookProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

WebhookCreateParametersTags

Name Description Value

WebhookPropertiesCreateParametersCustomHeaders

Name Description Value

WebhookPropertiesCreateParametersOrWebhookProperties

Name Description Value
actions The list of actions that trigger the webhook to post notifications. String array containing any of:
'chart_delete'
'chart_push'
'delete'
'push'
'quarantine' (required)
customHeaders Custom headers that will be added to the webhook notifications. WebhookPropertiesCreateParametersCustomHeaders
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. string
serviceUri The service URI for the webhook to post notifications. string

Constraints:
Sensitive value. Pass in as a secure parameter. (required)
status The status of the webhook at the time the operation was called. 'disabled'
'enabled'

ARM template resource definition

The registries/webhooks resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.ContainerRegistry/registries/webhooks resource, add the following JSON to your template.

{
  "type": "Microsoft.ContainerRegistry/registries/webhooks",
  "apiVersion": "2021-08-01-preview",
  "name": "string",
  "location": "string",
  "properties": {
    "actions": [ "string" ],
    "customHeaders": {
      "{customized property}": "string"
    },
    "scope": "string",
    "serviceUri": "string",
    "status": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property values

Microsoft.ContainerRegistry/registries/webhooks

Name Description Value
apiVersion The api version '2021-08-01-preview'
location The location of the webhook. This cannot be changed after the resource is created. string (required)
name The resource name string

Constraints:
Min length = 5
Max length = 5
Pattern = ^[a-zA-Z0-9]*$ (required)
properties The properties that the webhook will be created with. WebhookPropertiesCreateParametersOrWebhookProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.ContainerRegistry/registries/webhooks'

WebhookCreateParametersTags

Name Description Value

WebhookPropertiesCreateParametersCustomHeaders

Name Description Value

WebhookPropertiesCreateParametersOrWebhookProperties

Name Description Value
actions The list of actions that trigger the webhook to post notifications. String array containing any of:
'chart_delete'
'chart_push'
'delete'
'push'
'quarantine' (required)
customHeaders Custom headers that will be added to the webhook notifications. WebhookPropertiesCreateParametersCustomHeaders
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. string
serviceUri The service URI for the webhook to post notifications. string

Constraints:
Sensitive value. Pass in as a secure parameter. (required)
status The status of the webhook at the time the operation was called. 'disabled'
'enabled'

Terraform (AzAPI provider) resource definition

The registries/webhooks resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.ContainerRegistry/registries/webhooks resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ContainerRegistry/registries/webhooks@2021-08-01-preview"
  name = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      actions = [
        "string"
      ]
      customHeaders = {
        {customized property} = "string"
      }
      scope = "string"
      serviceUri = "string"
      status = "string"
    }
  })
}

Property values

Microsoft.ContainerRegistry/registries/webhooks

Name Description Value
location The location of the webhook. This cannot be changed after the resource is created. string (required)
name The resource name string

Constraints:
Min length = 5
Max length = 5
Pattern = ^[a-zA-Z0-9]*$ (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: registries
properties The properties that the webhook will be created with. WebhookPropertiesCreateParametersOrWebhookProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.ContainerRegistry/registries/webhooks@2021-08-01-preview"

WebhookCreateParametersTags

Name Description Value

WebhookPropertiesCreateParametersCustomHeaders

Name Description Value

WebhookPropertiesCreateParametersOrWebhookProperties

Name Description Value
actions The list of actions that trigger the webhook to post notifications. String array containing any of:
'chart_delete'
'chart_push'
'delete'
'push'
'quarantine' (required)
customHeaders Custom headers that will be added to the webhook notifications. WebhookPropertiesCreateParametersCustomHeaders
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. string
serviceUri The service URI for the webhook to post notifications. string

Constraints:
Sensitive value. Pass in as a secure parameter. (required)
status The status of the webhook at the time the operation was called. 'disabled'
'enabled'