RegistryWebookArgs

data class RegistryWebookArgs constructor(val actions: Output<List<String>>? = null, val customHeaders: Output<Map<String, String>>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val registryName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scope: Output<String>? = null, val serviceUri: Output<String>? = null, val status: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<RegistryWebookArgs>

Manages an Azure Container Registry Webhook.

Example Usage

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()
.location("West Europe")
.build());
var acr = new Registry("acr", RegistryArgs.builder()
.resourceGroupName(example.name())
.location(example.location())
.sku("Standard")
.adminEnabled(false)
.build());
var webhook = new RegistryWebhook("webhook", RegistryWebhookArgs.builder()
.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());
}
}

Import

Container Registry Webhooks can be imported using the resource id, e.g.

$ pulumi import azure:containerservice/registryWebook:RegistryWebook example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ContainerRegistry/registries/myregistry1/webHooks/mywebhook1

Constructors

Link copied to clipboard
fun RegistryWebookArgs(actions: Output<List<String>>? = null, customHeaders: Output<Map<String, String>>? = null, location: Output<String>? = null, name: Output<String>? = null, registryName: Output<String>? = null, resourceGroupName: Output<String>? = null, scope: Output<String>? = null, serviceUri: Output<String>? = null, status: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): RegistryWebookArgs

Properties

Link copied to clipboard
val actions: Output<List<String>>? = null

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

Link copied to clipboard
val customHeaders: Output<Map<String, String>>? = null

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

Link copied to clipboard
val location: Output<String>? = null

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

Link copied to clipboard
val name: Output<String>? = null

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

Link copied to clipboard
val registryName: Output<String>? = null

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

Link copied to clipboard
val resourceGroupName: Output<String>? = null

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

Link copied to clipboard
val scope: Output<String>? = null

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. Defaults to "".

Link copied to clipboard
val serviceUri: Output<String>? = null

Specifies the service URI for the Webhook to post notifications.

Link copied to clipboard
val status: Output<String>? = null

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

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource.