Show / Hide Table of Contents

Class RegistryWebook

Manages an Azure Container Registry Webhook.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var rg = new Azure.Core.ResourceGroup("rg", new Azure.Core.ResourceGroupArgs
    {
        Location = "West US",
    });
    var acr = new Azure.ContainerService.Registry("acr", new Azure.ContainerService.RegistryArgs
    {
        ResourceGroupName = rg.Name,
        Location = rg.Location,
        Sku = "Standard",
        AdminEnabled = false,
    });
    var webhook = new Azure.ContainerService.RegistryWebhook("webhook", new Azure.ContainerService.RegistryWebhookArgs
    {
        ResourceGroupName = rg.Name,
        RegistryName = acr.Name,
        Location = rg.Location,
        ServiceUri = "https://mywebhookreceiver.example/mytag",
        Status = "enabled",
        Scope = "mytag:*",
        Actions = 
        {
            "push",
        },
        CustomHeaders = 
        {
            { "Content-Type", "application/json" },
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
RegistryWebook
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.ContainerService
Assembly: Pulumi.Azure.dll
Syntax
[Obsolete("azure.containerservice.RegistryWebook has been deprecated in favor of azure.containerservice.RegistryWebhook")]
public class RegistryWebook : CustomResource

Constructors

View Source

RegistryWebook(String, RegistryWebookArgs, CustomResourceOptions)

Create a RegistryWebook resource with the given unique name, arguments, and options.

Declaration
public RegistryWebook(string name, RegistryWebookArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

RegistryWebookArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Actions

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

Declaration
public Output<ImmutableArray<string>> Actions { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

CustomHeaders

Custom headers that will be added to the webhook notifications request.

Declaration
public Output<ImmutableDictionary<string, string>> CustomHeaders { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>
View Source

Location

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Declaration
public Output<string> Location { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

Specifies the name of the Container Registry Webhook. Changing this forces a new resource to be created.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

RegistryName

The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created.

Declaration
public Output<string> RegistryName { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupName

The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created.

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

Scope

Specifies the scope of repositories that can trigger an event. 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.

Declaration
public Output<string> Scope { get; }
Property Value
Type Description
Output<System.String>
View Source

ServiceUri

Specifies the service URI for the Webhook to post notifications.

Declaration
public Output<string> ServiceUri { get; }
Property Value
Type Description
Output<System.String>
View Source

Status

Specifies if this Webhook triggers notifications or not. Valid values: enabled and disabled. Default is enabled.

Declaration
public Output<string> Status { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>

Methods

View Source

Get(String, Input<String>, RegistryWebookState, CustomResourceOptions)

Get an existing RegistryWebook resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static RegistryWebook Get(string name, Input<string> id, RegistryWebookState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

RegistryWebookState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
RegistryWebook
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.