import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Container Connected Registry. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-rg", * location: "West Europe", * }); * const exampleRegistry = new azure.containerservice.Registry("example", { * name: "exampleacr", * resourceGroupName: example.name, * location: example.location, * sku: "Premium", * dataEndpointEnabled: true, * }); * const exampleRegistryScopeMap = new azure.containerservice.RegistryScopeMap("example", { * name: "examplescopemap", * containerRegistryName: exampleRegistry.name, * resourceGroupName: exampleRegistry.resourceGroupName, * actions: [ * "repositories/hello-world/content/delete", * "repositories/hello-world/content/read", * "repositories/hello-world/content/write", * "repositories/hello-world/metadata/read", * "repositories/hello-world/metadata/write", * "gateway/examplecr/config/read", * "gateway/examplecr/config/write", * "gateway/examplecr/message/read", * "gateway/examplecr/message/write", * ], * }); * const exampleRegistryToken = new azure.containerservice.RegistryToken("example", { * name: "exampletoken", * containerRegistryName: exampleRegistry.name, * resourceGroupName: exampleRegistry.resourceGroupName, * scopeMapId: exampleRegistryScopeMap.id, * }); * const exampleConnectedRegistry = new azure.containerservice.ConnectedRegistry("example", { * name: "examplecr", * containerRegistryId: exampleRegistry.id, * syncTokenId: exampleRegistryToken.id, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ContainerRegistry` - 2025-11-01 * * ## Import * * Container Connected Registries can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:containerservice/connectedRegistry:ConnectedRegistry example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.ContainerRegistry/registries/registry1/connectedRegistries/registry1 * ``` */ export declare class ConnectedRegistry extends pulumi.CustomResource { /** * Get an existing ConnectedRegistry 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?: ConnectedRegistryState, opts?: pulumi.CustomResourceOptions): ConnectedRegistry; /** * Returns true if the given object is an instance of ConnectedRegistry. 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 ConnectedRegistry; /** * Should the log auditing be enabled? */ readonly auditLogEnabled: pulumi.Output; /** * Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry. */ readonly clientTokenIds: pulumi.Output; /** * The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created. * * > **Note:** If `parentRegistryId` is not specified, the Connected Registry will be connected to the Container Registry identified by `containerRegistryId`. */ readonly containerRegistryId: pulumi.Output; /** * The verbosity of the logs. Possible values are `None`, `Debug`, `Information`, `Warning` and `Error`. Defaults to `None`. */ readonly logLevel: pulumi.Output; /** * The mode of the Connected Registry. Possible values are `Mirror`, `ReadOnly`, `ReadWrite` and `Registry`. Changing this forces a new Container Connected Registry to be created. Defaults to `ReadWrite`. */ readonly mode: pulumi.Output; /** * The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created. */ readonly name: pulumi.Output; /** * One or more `notification` blocks as defined below. */ readonly notifications: pulumi.Output; /** * The ID of the parent registry. This can be either a Container Registry ID or a Connected Registry ID. Changing this forces a new Container Connected Registry to be created. */ readonly parentRegistryId: pulumi.Output; /** * The period of time (in form of ISO8601) for which a message is available to sync before it is expired. Allowed range is from `P1D` to `P90D`. Defaults to `P1D`. */ readonly syncMessageTtl: pulumi.Output; /** * The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to `* * * * *`. */ readonly syncSchedule: pulumi.Output; /** * The ID of the Container Registry Token which is used for synchronizing the Connected Registry. Changing this forces a new Container Connected Registry to be created. */ readonly syncTokenId: pulumi.Output; /** * The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from `PT3H` to `P7D`. */ readonly syncWindow: pulumi.Output; /** * Create a ConnectedRegistry 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: ConnectedRegistryArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ConnectedRegistry resources. */ export interface ConnectedRegistryState { /** * Should the log auditing be enabled? */ auditLogEnabled?: pulumi.Input; /** * Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry. */ clientTokenIds?: pulumi.Input[]>; /** * The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created. * * > **Note:** If `parentRegistryId` is not specified, the Connected Registry will be connected to the Container Registry identified by `containerRegistryId`. */ containerRegistryId?: pulumi.Input; /** * The verbosity of the logs. Possible values are `None`, `Debug`, `Information`, `Warning` and `Error`. Defaults to `None`. */ logLevel?: pulumi.Input; /** * The mode of the Connected Registry. Possible values are `Mirror`, `ReadOnly`, `ReadWrite` and `Registry`. Changing this forces a new Container Connected Registry to be created. Defaults to `ReadWrite`. */ mode?: pulumi.Input; /** * The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created. */ name?: pulumi.Input; /** * One or more `notification` blocks as defined below. */ notifications?: pulumi.Input[]>; /** * The ID of the parent registry. This can be either a Container Registry ID or a Connected Registry ID. Changing this forces a new Container Connected Registry to be created. */ parentRegistryId?: pulumi.Input; /** * The period of time (in form of ISO8601) for which a message is available to sync before it is expired. Allowed range is from `P1D` to `P90D`. Defaults to `P1D`. */ syncMessageTtl?: pulumi.Input; /** * The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to `* * * * *`. */ syncSchedule?: pulumi.Input; /** * The ID of the Container Registry Token which is used for synchronizing the Connected Registry. Changing this forces a new Container Connected Registry to be created. */ syncTokenId?: pulumi.Input; /** * The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from `PT3H` to `P7D`. */ syncWindow?: pulumi.Input; } /** * The set of arguments for constructing a ConnectedRegistry resource. */ export interface ConnectedRegistryArgs { /** * Should the log auditing be enabled? */ auditLogEnabled?: pulumi.Input; /** * Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry. */ clientTokenIds?: pulumi.Input[]>; /** * The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created. * * > **Note:** If `parentRegistryId` is not specified, the Connected Registry will be connected to the Container Registry identified by `containerRegistryId`. */ containerRegistryId: pulumi.Input; /** * The verbosity of the logs. Possible values are `None`, `Debug`, `Information`, `Warning` and `Error`. Defaults to `None`. */ logLevel?: pulumi.Input; /** * The mode of the Connected Registry. Possible values are `Mirror`, `ReadOnly`, `ReadWrite` and `Registry`. Changing this forces a new Container Connected Registry to be created. Defaults to `ReadWrite`. */ mode?: pulumi.Input; /** * The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created. */ name?: pulumi.Input; /** * One or more `notification` blocks as defined below. */ notifications?: pulumi.Input[]>; /** * The ID of the parent registry. This can be either a Container Registry ID or a Connected Registry ID. Changing this forces a new Container Connected Registry to be created. */ parentRegistryId?: pulumi.Input; /** * The period of time (in form of ISO8601) for which a message is available to sync before it is expired. Allowed range is from `P1D` to `P90D`. Defaults to `P1D`. */ syncMessageTtl?: pulumi.Input; /** * The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to `* * * * *`. */ syncSchedule?: pulumi.Input; /** * The ID of the Container Registry Token which is used for synchronizing the Connected Registry. Changing this forces a new Container Connected Registry to be created. */ syncTokenId: pulumi.Input; /** * The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from `PT3H` to `P7D`. */ syncWindow?: pulumi.Input; }