We recommend using Azure Native.
azure.containerservice.RegistryWebhook
Explore with Pulumi AI
Manages an Azure Container Registry Webhook.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const acr = new azure.containerservice.Registry("acr", {
name: "containerRegistry1",
resourceGroupName: example.name,
location: example.location,
sku: "Standard",
adminEnabled: false,
});
const webhook = new azure.containerservice.RegistryWebhook("webhook", {
name: "mywebhook",
resourceGroupName: example.name,
registryName: acr.name,
location: example.location,
serviceUri: "https://mywebhookreceiver.example/mytag",
status: "enabled",
scope: "mytag:*",
actions: ["push"],
customHeaders: {
"Content-Type": "application/json",
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
acr = azure.containerservice.Registry("acr",
name="containerRegistry1",
resource_group_name=example.name,
location=example.location,
sku="Standard",
admin_enabled=False)
webhook = azure.containerservice.RegistryWebhook("webhook",
name="mywebhook",
resource_group_name=example.name,
registry_name=acr.name,
location=example.location,
service_uri="https://mywebhookreceiver.example/mytag",
status="enabled",
scope="mytag:*",
actions=["push"],
custom_headers={
"Content-Type": "application/json",
})
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
acr, err := containerservice.NewRegistry(ctx, "acr", &containerservice.RegistryArgs{
Name: pulumi.String("containerRegistry1"),
ResourceGroupName: example.Name,
Location: example.Location,
Sku: pulumi.String("Standard"),
AdminEnabled: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = containerservice.NewRegistryWebhook(ctx, "webhook", &containerservice.RegistryWebhookArgs{
Name: pulumi.String("mywebhook"),
ResourceGroupName: example.Name,
RegistryName: acr.Name,
Location: example.Location,
ServiceUri: pulumi.String("https://mywebhookreceiver.example/mytag"),
Status: pulumi.String("enabled"),
Scope: pulumi.String("mytag:*"),
Actions: pulumi.StringArray{
pulumi.String("push"),
},
CustomHeaders: pulumi.StringMap{
"Content-Type": pulumi.String("application/json"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var acr = new Azure.ContainerService.Registry("acr", new()
{
Name = "containerRegistry1",
ResourceGroupName = example.Name,
Location = example.Location,
Sku = "Standard",
AdminEnabled = false,
});
var webhook = new Azure.ContainerService.RegistryWebhook("webhook", new()
{
Name = "mywebhook",
ResourceGroupName = example.Name,
RegistryName = acr.Name,
Location = example.Location,
ServiceUri = "https://mywebhookreceiver.example/mytag",
Status = "enabled",
Scope = "mytag:*",
Actions = new[]
{
"push",
},
CustomHeaders =
{
{ "Content-Type", "application/json" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.containerservice.Registry;
import com.pulumi.azure.containerservice.RegistryArgs;
import com.pulumi.azure.containerservice.RegistryWebhook;
import com.pulumi.azure.containerservice.RegistryWebhookArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var acr = new Registry("acr", RegistryArgs.builder()
.name("containerRegistry1")
.resourceGroupName(example.name())
.location(example.location())
.sku("Standard")
.adminEnabled(false)
.build());
var webhook = new RegistryWebhook("webhook", RegistryWebhookArgs.builder()
.name("mywebhook")
.resourceGroupName(example.name())
.registryName(acr.name())
.location(example.location())
.serviceUri("https://mywebhookreceiver.example/mytag")
.status("enabled")
.scope("mytag:*")
.actions("push")
.customHeaders(Map.of("Content-Type", "application/json"))
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
acr:
type: azure:containerservice:Registry
properties:
name: containerRegistry1
resourceGroupName: ${example.name}
location: ${example.location}
sku: Standard
adminEnabled: false
webhook:
type: azure:containerservice:RegistryWebhook
properties:
name: mywebhook
resourceGroupName: ${example.name}
registryName: ${acr.name}
location: ${example.location}
serviceUri: https://mywebhookreceiver.example/mytag
status: enabled
scope: mytag:*
actions:
- push
customHeaders:
Content-Type: application/json
Create RegistryWebhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RegistryWebhook(name: string, args: RegistryWebhookArgs, opts?: CustomResourceOptions);
@overload
def RegistryWebhook(resource_name: str,
args: RegistryWebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RegistryWebhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[str]] = None,
registry_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
service_uri: Optional[str] = None,
custom_headers: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
scope: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewRegistryWebhook(ctx *Context, name string, args RegistryWebhookArgs, opts ...ResourceOption) (*RegistryWebhook, error)
public RegistryWebhook(string name, RegistryWebhookArgs args, CustomResourceOptions? opts = null)
public RegistryWebhook(String name, RegistryWebhookArgs args)
public RegistryWebhook(String name, RegistryWebhookArgs args, CustomResourceOptions options)
type: azure:containerservice:RegistryWebhook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RegistryWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RegistryWebhookArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RegistryWebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegistryWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RegistryWebhookArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var registryWebhookResource = new Azure.ContainerService.RegistryWebhook("registryWebhookResource", new()
{
Actions = new[]
{
"string",
},
RegistryName = "string",
ResourceGroupName = "string",
ServiceUri = "string",
CustomHeaders =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Scope = "string",
Status = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := containerservice.NewRegistryWebhook(ctx, "registryWebhookResource", &containerservice.RegistryWebhookArgs{
Actions: pulumi.StringArray{
pulumi.String("string"),
},
RegistryName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ServiceUri: pulumi.String("string"),
CustomHeaders: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Scope: pulumi.String("string"),
Status: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var registryWebhookResource = new RegistryWebhook("registryWebhookResource", RegistryWebhookArgs.builder()
.actions("string")
.registryName("string")
.resourceGroupName("string")
.serviceUri("string")
.customHeaders(Map.of("string", "string"))
.location("string")
.name("string")
.scope("string")
.status("string")
.tags(Map.of("string", "string"))
.build());
registry_webhook_resource = azure.containerservice.RegistryWebhook("registryWebhookResource",
actions=["string"],
registry_name="string",
resource_group_name="string",
service_uri="string",
custom_headers={
"string": "string",
},
location="string",
name="string",
scope="string",
status="string",
tags={
"string": "string",
})
const registryWebhookResource = new azure.containerservice.RegistryWebhook("registryWebhookResource", {
actions: ["string"],
registryName: "string",
resourceGroupName: "string",
serviceUri: "string",
customHeaders: {
string: "string",
},
location: "string",
name: "string",
scope: "string",
status: "string",
tags: {
string: "string",
},
});
type: azure:containerservice:RegistryWebhook
properties:
actions:
- string
customHeaders:
string: string
location: string
name: string
registryName: string
resourceGroupName: string
scope: string
serviceUri: string
status: string
tags:
string: string
RegistryWebhook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The RegistryWebhook resource accepts the following input properties:
- Actions List<string>
- A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are:
push
,delete
,quarantine
,chart_push
,chart_delete
- Registry
Name string - The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created.
- Service
Uri string - Specifies the service URI for the Webhook to post notifications.
- Custom
Headers Dictionary<string, string> - Custom headers that will be added to the webhook notifications request.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- Scope string
- Specifies the scope of repositories that can trigger an event. For example,
foo:*
means events for all tags under repositoryfoo
.foo:bar
means events for 'foo:bar' only.foo
is equivalent tofoo:latest
. Empty means all events. Defaults to""
. - Status string
- Specifies if this Webhook triggers notifications or not. Valid values:
enabled
anddisabled
. Default isenabled
. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Actions []string
- A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are:
push
,delete
,quarantine
,chart_push
,chart_delete
- Registry
Name string - The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created.
- Service
Uri string - Specifies the service URI for the Webhook to post notifications.
- Custom
Headers map[string]string - Custom headers that will be added to the webhook notifications request.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- Scope string
- Specifies the scope of repositories that can trigger an event. For example,
foo:*
means events for all tags under repositoryfoo
.foo:bar
means events for 'foo:bar' only.foo
is equivalent tofoo:latest
. Empty means all events. Defaults to""
. - Status string
- Specifies if this Webhook triggers notifications or not. Valid values:
enabled
anddisabled
. Default isenabled
. - map[string]string
- A mapping of tags to assign to the resource.
- actions List<String>
- A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are:
push
,delete
,quarantine
,chart_push
,chart_delete
- registry
Name String - The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created.
- service
Uri String - Specifies the service URI for the Webhook to post notifications.
- custom
Headers Map<String,String> - Custom headers that will be added to the webhook notifications request.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- scope String
- Specifies the scope of repositories that can trigger an event. For example,
foo:*
means events for all tags under repositoryfoo
.foo:bar
means events for 'foo:bar' only.foo
is equivalent tofoo:latest
. Empty means all events. Defaults to""
. - status String
- Specifies if this Webhook triggers notifications or not. Valid values:
enabled
anddisabled
. Default isenabled
. - Map<String,String>
- A mapping of tags to assign to the resource.
- actions string[]
- A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are:
push
,delete
,quarantine
,chart_push
,chart_delete
- registry
Name string - The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created.
- service
Uri string - Specifies the service URI for the Webhook to post notifications.
- custom
Headers {[key: string]: string} - Custom headers that will be added to the webhook notifications request.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- scope string
- Specifies the scope of repositories that can trigger an event. For example,
foo:*
means events for all tags under repositoryfoo
.foo:bar
means events for 'foo:bar' only.foo
is equivalent tofoo:latest
. Empty means all events. Defaults to""
. - status string
- Specifies if this Webhook triggers notifications or not. Valid values:
enabled
anddisabled
. Default isenabled
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- actions Sequence[str]
- A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are:
push
,delete
,quarantine
,chart_push
,chart_delete
- registry_
name str - The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created.
- service_
uri str - Specifies the service URI for the Webhook to post notifications.
- custom_
headers Mapping[str, str] - Custom headers that will be added to the webhook notifications request.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- scope str
- Specifies the scope of repositories that can trigger an event. For example,
foo:*
means events for all tags under repositoryfoo
.foo:bar
means events for 'foo:bar' only.foo
is equivalent tofoo:latest
. Empty means all events. Defaults to""
. - status str
- Specifies if this Webhook triggers notifications or not. Valid values:
enabled
anddisabled
. Default isenabled
. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- actions List<String>
- A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are:
push
,delete
,quarantine
,chart_push
,chart_delete
- registry
Name String - The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created.
- service
Uri String - Specifies the service URI for the Webhook to post notifications.
- custom
Headers Map<String> - Custom headers that will be added to the webhook notifications request.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- scope String
- Specifies the scope of repositories that can trigger an event. For example,
foo:*
means events for all tags under repositoryfoo
.foo:bar
means events for 'foo:bar' only.foo
is equivalent tofoo:latest
. Empty means all events. Defaults to""
. - status String
- Specifies if this Webhook triggers notifications or not. Valid values:
enabled
anddisabled
. Default isenabled
. - Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the RegistryWebhook resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing RegistryWebhook Resource
Get an existing RegistryWebhook resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RegistryWebhookState, opts?: CustomResourceOptions): RegistryWebhook
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[str]] = None,
custom_headers: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
registry_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
scope: Optional[str] = None,
service_uri: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> RegistryWebhook
func GetRegistryWebhook(ctx *Context, name string, id IDInput, state *RegistryWebhookState, opts ...ResourceOption) (*RegistryWebhook, error)
public static RegistryWebhook Get(string name, Input<string> id, RegistryWebhookState? state, CustomResourceOptions? opts = null)
public static RegistryWebhook get(String name, Output<String> id, RegistryWebhookState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Actions List<string>
- A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are:
push
,delete
,quarantine
,chart_push
,chart_delete
- Custom
Headers Dictionary<string, string> - Custom headers that will be added to the webhook notifications request.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- Registry
Name string - The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created.
- Scope string
- Specifies the scope of repositories that can trigger an event. For example,
foo:*
means events for all tags under repositoryfoo
.foo:bar
means events for 'foo:bar' only.foo
is equivalent tofoo:latest
. Empty means all events. Defaults to""
. - Service
Uri string - Specifies the service URI for the Webhook to post notifications.
- Status string
- Specifies if this Webhook triggers notifications or not. Valid values:
enabled
anddisabled
. Default isenabled
. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Actions []string
- A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are:
push
,delete
,quarantine
,chart_push
,chart_delete
- Custom
Headers map[string]string - Custom headers that will be added to the webhook notifications request.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- Registry
Name string - The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created.
- Scope string
- Specifies the scope of repositories that can trigger an event. For example,
foo:*
means events for all tags under repositoryfoo
.foo:bar
means events for 'foo:bar' only.foo
is equivalent tofoo:latest
. Empty means all events. Defaults to""
. - Service
Uri string - Specifies the service URI for the Webhook to post notifications.
- Status string
- Specifies if this Webhook triggers notifications or not. Valid values:
enabled
anddisabled
. Default isenabled
. - map[string]string
- A mapping of tags to assign to the resource.
- actions List<String>
- A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are:
push
,delete
,quarantine
,chart_push
,chart_delete
- custom
Headers Map<String,String> - Custom headers that will be added to the webhook notifications request.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- registry
Name String - The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created.
- scope String
- Specifies the scope of repositories that can trigger an event. For example,
foo:*
means events for all tags under repositoryfoo
.foo:bar
means events for 'foo:bar' only.foo
is equivalent tofoo:latest
. Empty means all events. Defaults to""
. - service
Uri String - Specifies the service URI for the Webhook to post notifications.
- status String
- Specifies if this Webhook triggers notifications or not. Valid values:
enabled
anddisabled
. Default isenabled
. - Map<String,String>
- A mapping of tags to assign to the resource.
- actions string[]
- A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are:
push
,delete
,quarantine
,chart_push
,chart_delete
- custom
Headers {[key: string]: string} - Custom headers that will be added to the webhook notifications request.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- registry
Name string - The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created.
- scope string
- Specifies the scope of repositories that can trigger an event. For example,
foo:*
means events for all tags under repositoryfoo
.foo:bar
means events for 'foo:bar' only.foo
is equivalent tofoo:latest
. Empty means all events. Defaults to""
. - service
Uri string - Specifies the service URI for the Webhook to post notifications.
- status string
- Specifies if this Webhook triggers notifications or not. Valid values:
enabled
anddisabled
. Default isenabled
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- actions Sequence[str]
- A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are:
push
,delete
,quarantine
,chart_push
,chart_delete
- custom_
headers Mapping[str, str] - Custom headers that will be added to the webhook notifications request.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- registry_
name str - The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created.
- scope str
- Specifies the scope of repositories that can trigger an event. For example,
foo:*
means events for all tags under repositoryfoo
.foo:bar
means events for 'foo:bar' only.foo
is equivalent tofoo:latest
. Empty means all events. Defaults to""
. - service_
uri str - Specifies the service URI for the Webhook to post notifications.
- status str
- Specifies if this Webhook triggers notifications or not. Valid values:
enabled
anddisabled
. Default isenabled
. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- actions List<String>
- A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are:
push
,delete
,quarantine
,chart_push
,chart_delete
- custom
Headers Map<String> - Custom headers that will be added to the webhook notifications request.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- registry
Name String - The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created.
- scope String
- Specifies the scope of repositories that can trigger an event. For example,
foo:*
means events for all tags under repositoryfoo
.foo:bar
means events for 'foo:bar' only.foo
is equivalent tofoo:latest
. Empty means all events. Defaults to""
. - service
Uri String - Specifies the service URI for the Webhook to post notifications.
- status String
- Specifies if this Webhook triggers notifications or not. Valid values:
enabled
anddisabled
. Default isenabled
. - Map<String>
- A mapping of tags to assign to the resource.
Import
Container Registry Webhooks can be imported using the resource id
, e.g.
$ pulumi import azure:containerservice/registryWebhook:RegistryWebhook example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ContainerRegistry/registries/myregistry1/webHooks/mywebhook1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.