Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
- Ultimissimo
- 2026-03-01-anteprima
- Anteprima 2026-01-01-
- 2025-11-01
- 2025-06-01-preview
- Anteprima 2025-05-01
- 2025-04-01
- 2025-03-01-anteprima
- 2024-11-01-anteprima
- 11-01-preview 2023
- 2023-08-01-anteprima
- 2023-07-01
- 2023-06-01-anteprima
- 01-01-2023
- 2022-12-01
- Anteprima 2022-02-01
- Anteprima 2021-12-01
- 2021-09-01
- Anteprima 2021-08-01
- 2021-06-01-anteprima
- 11-01-preview 2020
- 12-01-preview 2019
- 2019-05-01
- 2017-10-01
Definizione di risorsa Bicep
Il tipo di risorsa registries/webhooks può essere distribuito con operazioni destinate a:
Resource groups - Vediresource group
Per un elenco delle proprietà modificate in ogni versione dell'API, vedere log delle modifiche.
Esempi di utilizzo
Esempi bicep
Un esempio base di distribuzione di Registro Azure Container Webhook.
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource registry 'Microsoft.ContainerRegistry/registries@2021-08-01-preview' = {
name: resourceName
location: location
sku: {
name: 'Standard'
tier: 'Standard'
}
properties: {
adminUserEnabled: false
anonymousPullEnabled: false
dataEndpointEnabled: false
encryption: {
status: 'disabled'
}
networkRuleBypassOptions: 'AzureServices'
policies: {
exportPolicy: {
status: 'enabled'
}
quarantinePolicy: {
status: 'disabled'
}
retentionPolicy: {
status: 'disabled'
}
trustPolicy: {
status: 'disabled'
}
}
publicNetworkAccess: 'Enabled'
zoneRedundancy: 'Disabled'
}
}
resource webHook 'Microsoft.ContainerRegistry/registries/webHooks@2021-08-01-preview' = {
name: resourceName
location: location
parent: registry
properties: {
actions: [
'push'
]
customHeaders: {}
scope: ''
serviceUri: 'https://mywebhookreceiver.example/mytag'
status: 'enabled'
}
}
Formato risorsa
Per creare una risorsa Microsoft.ContainerRegistry/registries/webhooks, aggiungere il bicep seguente al modello.
resource symbolicname 'Microsoft.ContainerRegistry/registries/webhooks@2026-03-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'
}
}
Valori delle proprietà
Microsoft.ContainerRegistry/registri/webhook
| Nome | Descrizione | Valore |
|---|---|---|
| ubicazione | Percorso del webhook. Questa operazione non può essere modificata dopo la creazione della risorsa. | stringa (obbligatorio) |
| nome | Nome della risorsa | corda Vincoli: Lunghezza minima = 5 Lunghezza massima = 50 Pattern = ^[a-zA-Z0-9]*$ (obbligatorio) |
| genitore | In Bicep è possibile specificare la risorsa padre per una risorsa figlio. È necessario aggiungere questa proprietà solo quando la risorsa figlio viene dichiarata all'esterno della risorsa padre. Per ulteriori informazioni, vedi Risorsa figlio esterna risorsa genitore. |
Nome simbolico per la risorsa di tipo: registri |
| proprietà | Le proprietà con cui verrà creato il webhook. | WebhookPropertiesCreateParametersOrWebhookProperties |
| etichette | Tag delle risorse | Dizionario di nomi e valori di tag. Vedi tag nei template |
WebhookCreateParametersTags
| Nome | Descrizione | Valore |
|---|
WebhookProprietàCreateParametersCustomHeaders
| Nome | Descrizione | Valore |
|---|
WebhookPropertiesCreateParametersOrWebhookProperties
| Nome | Descrizione | Valore |
|---|---|---|
| Azioni | Elenco di azioni che attivano il webhook per pubblicare le notifiche. | Matrice di stringhe contenente uno dei seguenti elementi: 'chart_delete' 'chart_push' 'cancellare' 'spingere' 'quarantine' (obbligatorio) |
| customHeaders | Intestazioni personalizzate che verranno aggiunte alle notifiche del webhook. | WebhookProprietàCreateParametersCustomHeaders |
| scopo | Ambito dei repository in cui è possibile attivare l'evento. Ad esempio, 'foo:*' significa eventi per tutti i tag nel repository 'foo'. 'foo:bar' significa eventi solo per 'foo:bar'. 'foo' equivale a 'foo:latest'. Vuoto indica tutti gli eventi. | corda |
| serviceUri | URI del servizio per il webhook per la pubblicazione di notifiche. | corda Vincoli: Valore sensibile. Passare come parametro sicuro. (obbligatorio) |
| stato | Stato del webhook al momento della chiamata dell'operazione. | 'disabilitato' 'abilitato' |
Definizione di risorsa del modello di Resource Manager
Il tipo di risorsa registries/webhooks può essere distribuito con operazioni destinate a:
- Gruppi di risorse - Vedi comandi di distribuzione dei gruppi di risorse Per un elenco delle proprietà modificate in ciascuna versione API, vedi registro delle modifiche.
Esempi di utilizzo
Formato risorsa
Per creare una risorsa Microsoft.ContainerRegistry/registries/webhooks, aggiungere il codice JSON seguente al modello.
{
"type": "Microsoft.ContainerRegistry/registries/webhooks",
"apiVersion": "2026-03-01-preview",
"name": "string",
"location": "string",
"properties": {
"actions": [ "string" ],
"customHeaders": {
"{customized property}": "string"
},
"scope": "string",
"serviceUri": "string",
"status": "string"
},
"tags": {
"{customized property}": "string"
}
}
Valori delle proprietà
Microsoft.ContainerRegistry/registri/webhook
| Nome | Descrizione | Valore |
|---|---|---|
| versione dell'API | Versione dell'API | 'Anteprima 2026-03-01' |
| ubicazione | Percorso del webhook. Questa operazione non può essere modificata dopo la creazione della risorsa. | stringa (obbligatorio) |
| nome | Nome della risorsa | corda Vincoli: Lunghezza minima = 5 Lunghezza massima = 50 Pattern = ^[a-zA-Z0-9]*$ (obbligatorio) |
| proprietà | Le proprietà con cui verrà creato il webhook. | WebhookPropertiesCreateParametersOrWebhookProperties |
| etichette | Tag delle risorse | Dizionario di nomi e valori di tag. Vedi tag nei template |
| tipo | Tipo di risorsa | 'Microsoft.ContainerRegistry/registri/webhook' |
WebhookCreateParametersTags
| Nome | Descrizione | Valore |
|---|
WebhookProprietàCreateParametersCustomHeaders
| Nome | Descrizione | Valore |
|---|
WebhookPropertiesCreateParametersOrWebhookProperties
| Nome | Descrizione | Valore |
|---|---|---|
| Azioni | Elenco di azioni che attivano il webhook per pubblicare le notifiche. | Matrice di stringhe contenente uno dei seguenti elementi: 'chart_delete' 'chart_push' 'cancellare' 'spingere' 'quarantine' (obbligatorio) |
| customHeaders | Intestazioni personalizzate che verranno aggiunte alle notifiche del webhook. | WebhookProprietàCreateParametersCustomHeaders |
| scopo | Ambito dei repository in cui è possibile attivare l'evento. Ad esempio, 'foo:*' significa eventi per tutti i tag nel repository 'foo'. 'foo:bar' significa eventi solo per 'foo:bar'. 'foo' equivale a 'foo:latest'. Vuoto indica tutti gli eventi. | corda |
| serviceUri | URI del servizio per il webhook per la pubblicazione di notifiche. | corda Vincoli: Valore sensibile. Passare come parametro sicuro. (obbligatorio) |
| stato | Stato del webhook al momento della chiamata dell'operazione. | 'disabilitato' 'abilitato' |
Definizione di risorsa Terraform (provider AzAPI)
Il tipo di risorsa registries/webhooks può essere distribuito con operazioni destinate a:
- Gruppi di risorse Per un elenco delle proprietà modificate in ogni versione dell'API, vedi il registro modifiche.
Esempi di utilizzo
Esempi di Terraform
Un esempio base di distribuzione di Registro Azure Container Webhook.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "registry" {
type = "Microsoft.ContainerRegistry/registries@2021-08-01-preview"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
adminUserEnabled = false
anonymousPullEnabled = false
dataEndpointEnabled = false
encryption = {
status = "disabled"
}
networkRuleBypassOptions = "AzureServices"
policies = {
exportPolicy = {
status = "enabled"
}
quarantinePolicy = {
status = "disabled"
}
retentionPolicy = {
status = "disabled"
}
trustPolicy = {
status = "disabled"
}
}
publicNetworkAccess = "Enabled"
zoneRedundancy = "Disabled"
}
sku = {
name = "Standard"
tier = "Standard"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "webHook" {
type = "Microsoft.ContainerRegistry/registries/webHooks@2021-08-01-preview"
parent_id = azapi_resource.registry.id
name = var.resource_name
location = var.location
body = {
properties = {
actions = [
"push",
]
customHeaders = {
}
scope = ""
serviceUri = "https://mywebhookreceiver.example/mytag"
status = "enabled"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
Formato risorsa
Per creare una risorsa Microsoft.ContainerRegistry/registries/webhooks, aggiungere il codice Terraform seguente al modello.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.ContainerRegistry/registries/webhooks@2026-03-01-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
actions = [
"string"
]
customHeaders = {
{customized property} = "string"
}
scope = "string"
serviceUri = "string"
status = "string"
}
}
}
Valori delle proprietà
Microsoft.ContainerRegistry/registri/webhook
| Nome | Descrizione | Valore |
|---|---|---|
| ubicazione | Percorso del webhook. Questa operazione non può essere modificata dopo la creazione della risorsa. | stringa (obbligatorio) |
| nome | Nome della risorsa | corda Vincoli: Lunghezza minima = 5 Lunghezza massima = 50 Pattern = ^[a-zA-Z0-9]*$ (obbligatorio) |
| parent_id | ID della risorsa padre per questa risorsa. | ID per la risorsa di tipo: registri |
| proprietà | Le proprietà con cui verrà creato il webhook. | WebhookPropertiesCreateParametersOrWebhookProperties |
| etichette | Tag delle risorse | Dizionario di nomi e valori di tag. |
| tipo | Tipo di risorsa | "Microsoft. ContainerRegistry/registries/webhooks@2026-03-01-preview" |
WebhookCreateParametersTags
| Nome | Descrizione | Valore |
|---|
WebhookProprietàCreateParametersCustomHeaders
| Nome | Descrizione | Valore |
|---|
WebhookPropertiesCreateParametersOrWebhookProperties
| Nome | Descrizione | Valore |
|---|---|---|
| Azioni | Elenco di azioni che attivano il webhook per pubblicare le notifiche. | Matrice di stringhe contenente uno dei seguenti elementi: 'chart_delete' 'chart_push' 'cancellare' 'spingere' 'quarantine' (obbligatorio) |
| customHeaders | Intestazioni personalizzate che verranno aggiunte alle notifiche del webhook. | WebhookProprietàCreateParametersCustomHeaders |
| scopo | Ambito dei repository in cui è possibile attivare l'evento. Ad esempio, 'foo:*' significa eventi per tutti i tag nel repository 'foo'. 'foo:bar' significa eventi solo per 'foo:bar'. 'foo' equivale a 'foo:latest'. Vuoto indica tutti gli eventi. | corda |
| serviceUri | URI del servizio per il webhook per la pubblicazione di notifiche. | corda Vincoli: Valore sensibile. Passare come parametro sicuro. (obbligatorio) |
| stato | Stato del webhook al momento della chiamata dell'operazione. | 'disabilitato' 'abilitato' |