import * as pulumi from "@pulumi/pulumi"; /** * Manages an Azure Container Registry token associated to a scope map. For more information on scope maps and their tokens see the [product documentation](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-repository-scoped-permissions). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resource-group", * location: "West Europe", * }); * const exampleRegistry = new azure.containerservice.Registry("example", { * name: "example", * resourceGroupName: example.name, * location: example.location, * sku: "Basic", * adminEnabled: false, * georeplications: [ * { * location: "East US", * }, * { * location: "West Europe", * }, * ], * }); * const exampleRegistryScopeMap = new azure.containerservice.RegistryScopeMap("example", { * name: "example-scope-map", * containerRegistryName: exampleRegistry.name, * resourceGroupName: example.name, * actions: [ * "repositories/repo1/content/read", * "repositories/repo1/content/write", * ], * }); * const exampleRegistryToken = new azure.containerservice.RegistryToken("example", { * name: "exampletoken", * containerRegistryName: exampleRegistry.name, * resourceGroupName: example.name, * scopeMapId: exampleRegistryScopeMap.id, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ContainerRegistry` - 2025-11-01 * * ## Import * * Container Registries can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:containerservice/registryToken:RegistryToken example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ContainerRegistry/registries/myregistry1/tokens/token1 * ``` */ export declare class RegistryToken extends pulumi.CustomResource { /** * Get an existing RegistryToken resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: RegistryTokenState, opts?: pulumi.CustomResourceOptions): RegistryToken; /** * Returns true if the given object is an instance of RegistryToken. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is RegistryToken; /** * The name of the Container Registry. Changing this forces a new resource to be created. */ readonly containerRegistryName: pulumi.Output; /** * Should the Container Registry token be enabled? Defaults to `true`. */ readonly enabled: pulumi.Output; /** * Specifies the name of the token. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the resource group in which to create the Container Registry token. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * The ID of the Container Registry Scope Map associated with the token. */ readonly scopeMapId: pulumi.Output; /** * Create a RegistryToken resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: RegistryTokenArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RegistryToken resources. */ export interface RegistryTokenState { /** * The name of the Container Registry. Changing this forces a new resource to be created. */ containerRegistryName?: pulumi.Input; /** * Should the Container Registry token be enabled? Defaults to `true`. */ enabled?: pulumi.Input; /** * Specifies the name of the token. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the resource group in which to create the Container Registry token. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * The ID of the Container Registry Scope Map associated with the token. */ scopeMapId?: pulumi.Input; } /** * The set of arguments for constructing a RegistryToken resource. */ export interface RegistryTokenArgs { /** * The name of the Container Registry. Changing this forces a new resource to be created. */ containerRegistryName: pulumi.Input; /** * Should the Container Registry token be enabled? Defaults to `true`. */ enabled?: pulumi.Input; /** * Specifies the name of the token. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the resource group in which to create the Container Registry token. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * The ID of the Container Registry Scope Map associated with the token. */ scopeMapId: pulumi.Input; }