1. Packages
  2. Azure Classic
  3. API Docs
  4. containerservice
  5. ConnectedRegistry

We recommend using Azure Native.

Azure Classic v5.43.0 published on Saturday, May 6, 2023 by Pulumi

azure.containerservice.ConnectedRegistry

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.43.0 published on Saturday, May 6, 2023 by Pulumi

    Manages a Container Connected Registry.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
        {
            Location = "West Europe",
        });
    
        var exampleRegistry = new Azure.ContainerService.Registry("exampleRegistry", new()
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            Sku = "Premium",
            DataEndpointEnabled = true,
        });
    
        var exampleRegistryScopeMap = new Azure.ContainerService.RegistryScopeMap("exampleRegistryScopeMap", new()
        {
            ContainerRegistryName = exampleRegistry.Name,
            ResourceGroupName = exampleRegistry.ResourceGroupName,
            Actions = new[]
            {
                "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",
            },
        });
    
        var exampleRegistryToken = new Azure.ContainerService.RegistryToken("exampleRegistryToken", new()
        {
            ContainerRegistryName = exampleRegistry.Name,
            ResourceGroupName = exampleRegistry.ResourceGroupName,
            ScopeMapId = exampleRegistryScopeMap.Id,
        });
    
        var exampleConnectedRegistry = new Azure.ContainerService.ConnectedRegistry("exampleConnectedRegistry", new()
        {
            ContainerRegistryId = exampleRegistry.Id,
            SyncTokenId = exampleRegistryToken.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/containerservice"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleRegistry, err := containerservice.NewRegistry(ctx, "exampleRegistry", &containerservice.RegistryArgs{
    			ResourceGroupName:   exampleResourceGroup.Name,
    			Location:            exampleResourceGroup.Location,
    			Sku:                 pulumi.String("Premium"),
    			DataEndpointEnabled: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		exampleRegistryScopeMap, err := containerservice.NewRegistryScopeMap(ctx, "exampleRegistryScopeMap", &containerservice.RegistryScopeMapArgs{
    			ContainerRegistryName: exampleRegistry.Name,
    			ResourceGroupName:     exampleRegistry.ResourceGroupName,
    			Actions: pulumi.StringArray{
    				pulumi.String("repositories/hello-world/content/delete"),
    				pulumi.String("repositories/hello-world/content/read"),
    				pulumi.String("repositories/hello-world/content/write"),
    				pulumi.String("repositories/hello-world/metadata/read"),
    				pulumi.String("repositories/hello-world/metadata/write"),
    				pulumi.String("gateway/examplecr/config/read"),
    				pulumi.String("gateway/examplecr/config/write"),
    				pulumi.String("gateway/examplecr/message/read"),
    				pulumi.String("gateway/examplecr/message/write"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleRegistryToken, err := containerservice.NewRegistryToken(ctx, "exampleRegistryToken", &containerservice.RegistryTokenArgs{
    			ContainerRegistryName: exampleRegistry.Name,
    			ResourceGroupName:     exampleRegistry.ResourceGroupName,
    			ScopeMapId:            exampleRegistryScopeMap.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = containerservice.NewConnectedRegistry(ctx, "exampleConnectedRegistry", &containerservice.ConnectedRegistryArgs{
    			ContainerRegistryId: exampleRegistry.ID(),
    			SyncTokenId:         exampleRegistryToken.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.RegistryScopeMap;
    import com.pulumi.azure.containerservice.RegistryScopeMapArgs;
    import com.pulumi.azure.containerservice.RegistryToken;
    import com.pulumi.azure.containerservice.RegistryTokenArgs;
    import com.pulumi.azure.containerservice.ConnectedRegistry;
    import com.pulumi.azure.containerservice.ConnectedRegistryArgs;
    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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
                .location("West Europe")
                .build());
    
            var exampleRegistry = new Registry("exampleRegistry", RegistryArgs.builder()        
                .resourceGroupName(exampleResourceGroup.name())
                .location(exampleResourceGroup.location())
                .sku("Premium")
                .dataEndpointEnabled(true)
                .build());
    
            var exampleRegistryScopeMap = new RegistryScopeMap("exampleRegistryScopeMap", RegistryScopeMapArgs.builder()        
                .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")
                .build());
    
            var exampleRegistryToken = new RegistryToken("exampleRegistryToken", RegistryTokenArgs.builder()        
                .containerRegistryName(exampleRegistry.name())
                .resourceGroupName(exampleRegistry.resourceGroupName())
                .scopeMapId(exampleRegistryScopeMap.id())
                .build());
    
            var exampleConnectedRegistry = new ConnectedRegistry("exampleConnectedRegistry", ConnectedRegistryArgs.builder()        
                .containerRegistryId(exampleRegistry.id())
                .syncTokenId(exampleRegistryToken.id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_registry = azure.containerservice.Registry("exampleRegistry",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        sku="Premium",
        data_endpoint_enabled=True)
    example_registry_scope_map = azure.containerservice.RegistryScopeMap("exampleRegistryScopeMap",
        container_registry_name=example_registry.name,
        resource_group_name=example_registry.resource_group_name,
        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",
        ])
    example_registry_token = azure.containerservice.RegistryToken("exampleRegistryToken",
        container_registry_name=example_registry.name,
        resource_group_name=example_registry.resource_group_name,
        scope_map_id=example_registry_scope_map.id)
    example_connected_registry = azure.containerservice.ConnectedRegistry("exampleConnectedRegistry",
        container_registry_id=example_registry.id,
        sync_token_id=example_registry_token.id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleRegistry = new azure.containerservice.Registry("exampleRegistry", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        sku: "Premium",
        dataEndpointEnabled: true,
    });
    const exampleRegistryScopeMap = new azure.containerservice.RegistryScopeMap("exampleRegistryScopeMap", {
        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("exampleRegistryToken", {
        containerRegistryName: exampleRegistry.name,
        resourceGroupName: exampleRegistry.resourceGroupName,
        scopeMapId: exampleRegistryScopeMap.id,
    });
    const exampleConnectedRegistry = new azure.containerservice.ConnectedRegistry("exampleConnectedRegistry", {
        containerRegistryId: exampleRegistry.id,
        syncTokenId: exampleRegistryToken.id,
    });
    
    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        properties:
          location: West Europe
      exampleRegistry:
        type: azure:containerservice:Registry
        properties:
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
          sku: Premium
          dataEndpointEnabled: true
      exampleRegistryScopeMap:
        type: azure:containerservice:RegistryScopeMap
        properties:
          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
      exampleRegistryToken:
        type: azure:containerservice:RegistryToken
        properties:
          containerRegistryName: ${exampleRegistry.name}
          resourceGroupName: ${exampleRegistry.resourceGroupName}
          scopeMapId: ${exampleRegistryScopeMap.id}
      exampleConnectedRegistry:
        type: azure:containerservice:ConnectedRegistry
        properties:
          containerRegistryId: ${exampleRegistry.id}
          syncTokenId: ${exampleRegistryToken.id}
    

    Create ConnectedRegistry Resource

    new ConnectedRegistry(name: string, args: ConnectedRegistryArgs, opts?: CustomResourceOptions);
    @overload
    def ConnectedRegistry(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          audit_log_enabled: Optional[bool] = None,
                          client_token_ids: Optional[Sequence[str]] = None,
                          container_registry_id: Optional[str] = None,
                          log_level: Optional[str] = None,
                          mode: Optional[str] = None,
                          name: Optional[str] = None,
                          notifications: Optional[Sequence[ConnectedRegistryNotificationArgs]] = None,
                          parent_registry_id: Optional[str] = None,
                          sync_message_ttl: Optional[str] = None,
                          sync_schedule: Optional[str] = None,
                          sync_token_id: Optional[str] = None,
                          sync_window: Optional[str] = None)
    @overload
    def ConnectedRegistry(resource_name: str,
                          args: ConnectedRegistryArgs,
                          opts: Optional[ResourceOptions] = None)
    func NewConnectedRegistry(ctx *Context, name string, args ConnectedRegistryArgs, opts ...ResourceOption) (*ConnectedRegistry, error)
    public ConnectedRegistry(string name, ConnectedRegistryArgs args, CustomResourceOptions? opts = null)
    public ConnectedRegistry(String name, ConnectedRegistryArgs args)
    public ConnectedRegistry(String name, ConnectedRegistryArgs args, CustomResourceOptions options)
    
    type: azure:containerservice:ConnectedRegistry
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ConnectedRegistryArgs
    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 ConnectedRegistryArgs
    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 ConnectedRegistryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConnectedRegistryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConnectedRegistryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ConnectedRegistry 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 ConnectedRegistry resource accepts the following input properties:

    ContainerRegistryId string

    The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created.

    SyncTokenId string

    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.

    AuditLogEnabled bool

    Should the log auditing be enabled?

    ClientTokenIds List<string>

    Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry.

    LogLevel string

    The verbosity of the logs. Possible values are None, Debug, Information, Warning and Error.

    Mode string

    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.

    Name string

    The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created.

    Notifications List<ConnectedRegistryNotificationArgs>

    One or more notification blocks as defined below.

    ParentRegistryId string

    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.

    SyncMessageTtl string

    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.

    SyncSchedule string

    The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to * * * * *.

    SyncWindow string

    The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from PT3H to P7D.

    ContainerRegistryId string

    The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created.

    SyncTokenId string

    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.

    AuditLogEnabled bool

    Should the log auditing be enabled?

    ClientTokenIds []string

    Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry.

    LogLevel string

    The verbosity of the logs. Possible values are None, Debug, Information, Warning and Error.

    Mode string

    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.

    Name string

    The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created.

    Notifications []ConnectedRegistryNotificationArgs

    One or more notification blocks as defined below.

    ParentRegistryId string

    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.

    SyncMessageTtl string

    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.

    SyncSchedule string

    The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to * * * * *.

    SyncWindow string

    The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from PT3H to P7D.

    containerRegistryId String

    The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created.

    syncTokenId String

    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.

    auditLogEnabled Boolean

    Should the log auditing be enabled?

    clientTokenIds List<String>

    Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry.

    logLevel String

    The verbosity of the logs. Possible values are None, Debug, Information, Warning and Error.

    mode String

    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.

    name String

    The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created.

    notifications List<ConnectedRegistryNotificationArgs>

    One or more notification blocks as defined below.

    parentRegistryId String

    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.

    syncMessageTtl String

    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.

    syncSchedule String

    The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to * * * * *.

    syncWindow String

    The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from PT3H to P7D.

    containerRegistryId string

    The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created.

    syncTokenId string

    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.

    auditLogEnabled boolean

    Should the log auditing be enabled?

    clientTokenIds string[]

    Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry.

    logLevel string

    The verbosity of the logs. Possible values are None, Debug, Information, Warning and Error.

    mode string

    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.

    name string

    The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created.

    notifications ConnectedRegistryNotificationArgs[]

    One or more notification blocks as defined below.

    parentRegistryId string

    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.

    syncMessageTtl string

    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.

    syncSchedule string

    The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to * * * * *.

    syncWindow string

    The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from PT3H to P7D.

    container_registry_id str

    The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created.

    sync_token_id str

    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.

    audit_log_enabled bool

    Should the log auditing be enabled?

    client_token_ids Sequence[str]

    Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry.

    log_level str

    The verbosity of the logs. Possible values are None, Debug, Information, Warning and Error.

    mode str

    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.

    name str

    The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created.

    notifications Sequence[ConnectedRegistryNotificationArgs]

    One or more notification blocks as defined below.

    parent_registry_id str

    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.

    sync_message_ttl str

    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.

    sync_schedule str

    The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to * * * * *.

    sync_window str

    The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from PT3H to P7D.

    containerRegistryId String

    The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created.

    syncTokenId String

    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.

    auditLogEnabled Boolean

    Should the log auditing be enabled?

    clientTokenIds List<String>

    Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry.

    logLevel String

    The verbosity of the logs. Possible values are None, Debug, Information, Warning and Error.

    mode String

    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.

    name String

    The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created.

    notifications List<Property Map>

    One or more notification blocks as defined below.

    parentRegistryId String

    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.

    syncMessageTtl String

    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.

    syncSchedule String

    The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to * * * * *.

    syncWindow String

    The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from PT3H to P7D.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ConnectedRegistry 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 ConnectedRegistry Resource

    Get an existing ConnectedRegistry 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?: ConnectedRegistryState, opts?: CustomResourceOptions): ConnectedRegistry
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            audit_log_enabled: Optional[bool] = None,
            client_token_ids: Optional[Sequence[str]] = None,
            container_registry_id: Optional[str] = None,
            log_level: Optional[str] = None,
            mode: Optional[str] = None,
            name: Optional[str] = None,
            notifications: Optional[Sequence[ConnectedRegistryNotificationArgs]] = None,
            parent_registry_id: Optional[str] = None,
            sync_message_ttl: Optional[str] = None,
            sync_schedule: Optional[str] = None,
            sync_token_id: Optional[str] = None,
            sync_window: Optional[str] = None) -> ConnectedRegistry
    func GetConnectedRegistry(ctx *Context, name string, id IDInput, state *ConnectedRegistryState, opts ...ResourceOption) (*ConnectedRegistry, error)
    public static ConnectedRegistry Get(string name, Input<string> id, ConnectedRegistryState? state, CustomResourceOptions? opts = null)
    public static ConnectedRegistry get(String name, Output<String> id, ConnectedRegistryState 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.
    The following state arguments are supported:
    AuditLogEnabled bool

    Should the log auditing be enabled?

    ClientTokenIds List<string>

    Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry.

    ContainerRegistryId string

    The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created.

    LogLevel string

    The verbosity of the logs. Possible values are None, Debug, Information, Warning and Error.

    Mode string

    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.

    Name string

    The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created.

    Notifications List<ConnectedRegistryNotificationArgs>

    One or more notification blocks as defined below.

    ParentRegistryId string

    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.

    SyncMessageTtl string

    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.

    SyncSchedule string

    The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to * * * * *.

    SyncTokenId string

    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.

    SyncWindow string

    The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from PT3H to P7D.

    AuditLogEnabled bool

    Should the log auditing be enabled?

    ClientTokenIds []string

    Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry.

    ContainerRegistryId string

    The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created.

    LogLevel string

    The verbosity of the logs. Possible values are None, Debug, Information, Warning and Error.

    Mode string

    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.

    Name string

    The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created.

    Notifications []ConnectedRegistryNotificationArgs

    One or more notification blocks as defined below.

    ParentRegistryId string

    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.

    SyncMessageTtl string

    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.

    SyncSchedule string

    The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to * * * * *.

    SyncTokenId string

    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.

    SyncWindow string

    The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from PT3H to P7D.

    auditLogEnabled Boolean

    Should the log auditing be enabled?

    clientTokenIds List<String>

    Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry.

    containerRegistryId String

    The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created.

    logLevel String

    The verbosity of the logs. Possible values are None, Debug, Information, Warning and Error.

    mode String

    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.

    name String

    The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created.

    notifications List<ConnectedRegistryNotificationArgs>

    One or more notification blocks as defined below.

    parentRegistryId String

    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.

    syncMessageTtl String

    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.

    syncSchedule String

    The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to * * * * *.

    syncTokenId String

    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.

    syncWindow String

    The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from PT3H to P7D.

    auditLogEnabled boolean

    Should the log auditing be enabled?

    clientTokenIds string[]

    Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry.

    containerRegistryId string

    The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created.

    logLevel string

    The verbosity of the logs. Possible values are None, Debug, Information, Warning and Error.

    mode string

    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.

    name string

    The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created.

    notifications ConnectedRegistryNotificationArgs[]

    One or more notification blocks as defined below.

    parentRegistryId string

    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.

    syncMessageTtl string

    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.

    syncSchedule string

    The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to * * * * *.

    syncTokenId string

    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.

    syncWindow string

    The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from PT3H to P7D.

    audit_log_enabled bool

    Should the log auditing be enabled?

    client_token_ids Sequence[str]

    Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry.

    container_registry_id str

    The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created.

    log_level str

    The verbosity of the logs. Possible values are None, Debug, Information, Warning and Error.

    mode str

    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.

    name str

    The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created.

    notifications Sequence[ConnectedRegistryNotificationArgs]

    One or more notification blocks as defined below.

    parent_registry_id str

    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.

    sync_message_ttl str

    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.

    sync_schedule str

    The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to * * * * *.

    sync_token_id str

    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.

    sync_window str

    The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from PT3H to P7D.

    auditLogEnabled Boolean

    Should the log auditing be enabled?

    clientTokenIds List<String>

    Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry.

    containerRegistryId String

    The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created.

    logLevel String

    The verbosity of the logs. Possible values are None, Debug, Information, Warning and Error.

    mode String

    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.

    name String

    The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created.

    notifications List<Property Map>

    One or more notification blocks as defined below.

    parentRegistryId String

    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.

    syncMessageTtl String

    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.

    syncSchedule String

    The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to * * * * *.

    syncTokenId String

    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.

    syncWindow String

    The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from PT3H to P7D.

    Supporting Types

    ConnectedRegistryNotification

    Action string

    The action of the artifact that wants to be subscribed for the Connected Registry. Possible values are push, delete and * (i.e. any).

    Name string

    The name of the artifact that wants to be subscribed for the Connected Registry.

    Digest string

    The digest of the artifact that wants to be subscribed for the Connected Registry.

    Tag string

    The tag of the artifact that wants to be subscribed for the Connected Registry.

    Action string

    The action of the artifact that wants to be subscribed for the Connected Registry. Possible values are push, delete and * (i.e. any).

    Name string

    The name of the artifact that wants to be subscribed for the Connected Registry.

    Digest string

    The digest of the artifact that wants to be subscribed for the Connected Registry.

    Tag string

    The tag of the artifact that wants to be subscribed for the Connected Registry.

    action String

    The action of the artifact that wants to be subscribed for the Connected Registry. Possible values are push, delete and * (i.e. any).

    name String

    The name of the artifact that wants to be subscribed for the Connected Registry.

    digest String

    The digest of the artifact that wants to be subscribed for the Connected Registry.

    tag String

    The tag of the artifact that wants to be subscribed for the Connected Registry.

    action string

    The action of the artifact that wants to be subscribed for the Connected Registry. Possible values are push, delete and * (i.e. any).

    name string

    The name of the artifact that wants to be subscribed for the Connected Registry.

    digest string

    The digest of the artifact that wants to be subscribed for the Connected Registry.

    tag string

    The tag of the artifact that wants to be subscribed for the Connected Registry.

    action str

    The action of the artifact that wants to be subscribed for the Connected Registry. Possible values are push, delete and * (i.e. any).

    name str

    The name of the artifact that wants to be subscribed for the Connected Registry.

    digest str

    The digest of the artifact that wants to be subscribed for the Connected Registry.

    tag str

    The tag of the artifact that wants to be subscribed for the Connected Registry.

    action String

    The action of the artifact that wants to be subscribed for the Connected Registry. Possible values are push, delete and * (i.e. any).

    name String

    The name of the artifact that wants to be subscribed for the Connected Registry.

    digest String

    The digest of the artifact that wants to be subscribed for the Connected Registry.

    tag String

    The tag of the artifact that wants to be subscribed for the Connected Registry.

    Import

    Container Connected Registries can be imported using the resource id, e.g.

     $ pulumi import azure:containerservice/connectedRegistry:ConnectedRegistry example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.ContainerRegistry/registries/registry1/connectedRegistries/registry1
    

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the azurerm Terraform Provider.

    azure logo

    We recommend using Azure Native.

    Azure Classic v5.43.0 published on Saturday, May 6, 2023 by Pulumi