1. Packages
  2. Azure Native
  3. API Docs
  4. containerregistry
  5. Replication
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.containerregistry.Replication

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

    An object that represents a replication for a container registry. Azure REST API version: 2022-12-01. Prior API version in Azure Native 1.x: 2019-05-01.

    Other available API versions: 2023-01-01-preview, 2023-06-01-preview, 2023-07-01, 2023-08-01-preview, 2023-11-01-preview.

    Example Usage

    ReplicationCreate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var replication = new AzureNative.ContainerRegistry.Replication("replication", new()
        {
            Location = "eastus",
            RegistryName = "myRegistry",
            ReplicationName = "myReplication",
            ResourceGroupName = "myResourceGroup",
            Tags = 
            {
                { "key", "value" },
            },
        });
    
    });
    
    package main
    
    import (
    	containerregistry "github.com/pulumi/pulumi-azure-native-sdk/containerregistry/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := containerregistry.NewReplication(ctx, "replication", &containerregistry.ReplicationArgs{
    			Location:          pulumi.String("eastus"),
    			RegistryName:      pulumi.String("myRegistry"),
    			ReplicationName:   pulumi.String("myReplication"),
    			ResourceGroupName: pulumi.String("myResourceGroup"),
    			Tags: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    		})
    		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.azurenative.containerregistry.Replication;
    import com.pulumi.azurenative.containerregistry.ReplicationArgs;
    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 replication = new Replication("replication", ReplicationArgs.builder()
                .location("eastus")
                .registryName("myRegistry")
                .replicationName("myReplication")
                .resourceGroupName("myResourceGroup")
                .tags(Map.of("key", "value"))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    replication = azure_native.containerregistry.Replication("replication",
        location="eastus",
        registry_name="myRegistry",
        replication_name="myReplication",
        resource_group_name="myResourceGroup",
        tags={
            "key": "value",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const replication = new azure_native.containerregistry.Replication("replication", {
        location: "eastus",
        registryName: "myRegistry",
        replicationName: "myReplication",
        resourceGroupName: "myResourceGroup",
        tags: {
            key: "value",
        },
    });
    
    resources:
      replication:
        type: azure-native:containerregistry:Replication
        properties:
          location: eastus
          registryName: myRegistry
          replicationName: myReplication
          resourceGroupName: myResourceGroup
          tags:
            key: value
    

    ReplicationCreateZoneRedundant

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var replication = new AzureNative.ContainerRegistry.Replication("replication", new()
        {
            Location = "eastus",
            RegionEndpointEnabled = true,
            RegistryName = "myRegistry",
            ReplicationName = "myReplication",
            ResourceGroupName = "myResourceGroup",
            Tags = 
            {
                { "key", "value" },
            },
            ZoneRedundancy = AzureNative.ContainerRegistry.ZoneRedundancy.Enabled,
        });
    
    });
    
    package main
    
    import (
    	containerregistry "github.com/pulumi/pulumi-azure-native-sdk/containerregistry/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := containerregistry.NewReplication(ctx, "replication", &containerregistry.ReplicationArgs{
    			Location:              pulumi.String("eastus"),
    			RegionEndpointEnabled: pulumi.Bool(true),
    			RegistryName:          pulumi.String("myRegistry"),
    			ReplicationName:       pulumi.String("myReplication"),
    			ResourceGroupName:     pulumi.String("myResourceGroup"),
    			Tags: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    			ZoneRedundancy: pulumi.String(containerregistry.ZoneRedundancyEnabled),
    		})
    		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.azurenative.containerregistry.Replication;
    import com.pulumi.azurenative.containerregistry.ReplicationArgs;
    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 replication = new Replication("replication", ReplicationArgs.builder()
                .location("eastus")
                .regionEndpointEnabled(true)
                .registryName("myRegistry")
                .replicationName("myReplication")
                .resourceGroupName("myResourceGroup")
                .tags(Map.of("key", "value"))
                .zoneRedundancy("Enabled")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    replication = azure_native.containerregistry.Replication("replication",
        location="eastus",
        region_endpoint_enabled=True,
        registry_name="myRegistry",
        replication_name="myReplication",
        resource_group_name="myResourceGroup",
        tags={
            "key": "value",
        },
        zone_redundancy=azure_native.containerregistry.ZoneRedundancy.ENABLED)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const replication = new azure_native.containerregistry.Replication("replication", {
        location: "eastus",
        regionEndpointEnabled: true,
        registryName: "myRegistry",
        replicationName: "myReplication",
        resourceGroupName: "myResourceGroup",
        tags: {
            key: "value",
        },
        zoneRedundancy: azure_native.containerregistry.ZoneRedundancy.Enabled,
    });
    
    resources:
      replication:
        type: azure-native:containerregistry:Replication
        properties:
          location: eastus
          regionEndpointEnabled: true
          registryName: myRegistry
          replicationName: myReplication
          resourceGroupName: myResourceGroup
          tags:
            key: value
          zoneRedundancy: Enabled
    

    Create Replication Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Replication(name: string, args: ReplicationArgs, opts?: CustomResourceOptions);
    @overload
    def Replication(resource_name: str,
                    args: ReplicationArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Replication(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    registry_name: Optional[str] = None,
                    resource_group_name: Optional[str] = None,
                    location: Optional[str] = None,
                    region_endpoint_enabled: Optional[bool] = None,
                    replication_name: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    zone_redundancy: Optional[Union[str, ZoneRedundancy]] = None)
    func NewReplication(ctx *Context, name string, args ReplicationArgs, opts ...ResourceOption) (*Replication, error)
    public Replication(string name, ReplicationArgs args, CustomResourceOptions? opts = null)
    public Replication(String name, ReplicationArgs args)
    public Replication(String name, ReplicationArgs args, CustomResourceOptions options)
    
    type: azure-native:containerregistry:Replication
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ReplicationArgs
    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 ReplicationArgs
    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 ReplicationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReplicationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var replicationResource = new AzureNative.ContainerRegistry.Replication("replicationResource", new()
    {
        RegistryName = "string",
        ResourceGroupName = "string",
        Location = "string",
        RegionEndpointEnabled = false,
        ReplicationName = "string",
        Tags = 
        {
            { "string", "string" },
        },
        ZoneRedundancy = "string",
    });
    
    example, err := containerregistry.NewReplication(ctx, "replicationResource", &containerregistry.ReplicationArgs{
    	RegistryName:          pulumi.String("string"),
    	ResourceGroupName:     pulumi.String("string"),
    	Location:              pulumi.String("string"),
    	RegionEndpointEnabled: pulumi.Bool(false),
    	ReplicationName:       pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ZoneRedundancy: pulumi.String("string"),
    })
    
    var replicationResource = new Replication("replicationResource", ReplicationArgs.builder()
        .registryName("string")
        .resourceGroupName("string")
        .location("string")
        .regionEndpointEnabled(false)
        .replicationName("string")
        .tags(Map.of("string", "string"))
        .zoneRedundancy("string")
        .build());
    
    replication_resource = azure_native.containerregistry.Replication("replicationResource",
        registry_name="string",
        resource_group_name="string",
        location="string",
        region_endpoint_enabled=False,
        replication_name="string",
        tags={
            "string": "string",
        },
        zone_redundancy="string")
    
    const replicationResource = new azure_native.containerregistry.Replication("replicationResource", {
        registryName: "string",
        resourceGroupName: "string",
        location: "string",
        regionEndpointEnabled: false,
        replicationName: "string",
        tags: {
            string: "string",
        },
        zoneRedundancy: "string",
    });
    
    type: azure-native:containerregistry:Replication
    properties:
        location: string
        regionEndpointEnabled: false
        registryName: string
        replicationName: string
        resourceGroupName: string
        tags:
            string: string
        zoneRedundancy: string
    

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

    RegistryName string
    The name of the container registry.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Location string
    The location of the resource. This cannot be changed after the resource is created.
    RegionEndpointEnabled bool
    Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.
    ReplicationName string
    The name of the replication.
    Tags Dictionary<string, string>
    The tags of the resource.
    ZoneRedundancy string | Pulumi.AzureNative.ContainerRegistry.ZoneRedundancy
    Whether or not zone redundancy is enabled for this container registry replication
    RegistryName string
    The name of the container registry.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Location string
    The location of the resource. This cannot be changed after the resource is created.
    RegionEndpointEnabled bool
    Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.
    ReplicationName string
    The name of the replication.
    Tags map[string]string
    The tags of the resource.
    ZoneRedundancy string | ZoneRedundancy
    Whether or not zone redundancy is enabled for this container registry replication
    registryName String
    The name of the container registry.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    location String
    The location of the resource. This cannot be changed after the resource is created.
    regionEndpointEnabled Boolean
    Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.
    replicationName String
    The name of the replication.
    tags Map<String,String>
    The tags of the resource.
    zoneRedundancy String | ZoneRedundancy
    Whether or not zone redundancy is enabled for this container registry replication
    registryName string
    The name of the container registry.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    location string
    The location of the resource. This cannot be changed after the resource is created.
    regionEndpointEnabled boolean
    Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.
    replicationName string
    The name of the replication.
    tags {[key: string]: string}
    The tags of the resource.
    zoneRedundancy string | ZoneRedundancy
    Whether or not zone redundancy is enabled for this container registry replication
    registry_name str
    The name of the container registry.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    location str
    The location of the resource. This cannot be changed after the resource is created.
    region_endpoint_enabled bool
    Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.
    replication_name str
    The name of the replication.
    tags Mapping[str, str]
    The tags of the resource.
    zone_redundancy str | ZoneRedundancy
    Whether or not zone redundancy is enabled for this container registry replication
    registryName String
    The name of the container registry.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    location String
    The location of the resource. This cannot be changed after the resource is created.
    regionEndpointEnabled Boolean
    Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.
    replicationName String
    The name of the replication.
    tags Map<String>
    The tags of the resource.
    zoneRedundancy String | "Enabled" | "Disabled"
    Whether or not zone redundancy is enabled for this container registry replication

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Replication resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource.
    ProvisioningState string
    The provisioning state of the replication at the time the operation was called.
    Status Pulumi.AzureNative.ContainerRegistry.Outputs.StatusResponse
    The status of the replication at the time the operation was called.
    SystemData Pulumi.AzureNative.ContainerRegistry.Outputs.SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The type of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource.
    ProvisioningState string
    The provisioning state of the replication at the time the operation was called.
    Status StatusResponse
    The status of the replication at the time the operation was called.
    SystemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The type of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource.
    provisioningState String
    The provisioning state of the replication at the time the operation was called.
    status StatusResponse
    The status of the replication at the time the operation was called.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type String
    The type of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource.
    provisioningState string
    The provisioning state of the replication at the time the operation was called.
    status StatusResponse
    The status of the replication at the time the operation was called.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type string
    The type of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource.
    provisioning_state str
    The provisioning state of the replication at the time the operation was called.
    status StatusResponse
    The status of the replication at the time the operation was called.
    system_data SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type str
    The type of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource.
    provisioningState String
    The provisioning state of the replication at the time the operation was called.
    status Property Map
    The status of the replication at the time the operation was called.
    systemData Property Map
    Metadata pertaining to creation and last modification of the resource.
    type String
    The type of the resource.

    Supporting Types

    StatusResponse, StatusResponseArgs

    DisplayStatus string
    The short label for the status.
    Message string
    The detailed message for the status, including alerts and error messages.
    Timestamp string
    The timestamp when the status was changed to the current value.
    DisplayStatus string
    The short label for the status.
    Message string
    The detailed message for the status, including alerts and error messages.
    Timestamp string
    The timestamp when the status was changed to the current value.
    displayStatus String
    The short label for the status.
    message String
    The detailed message for the status, including alerts and error messages.
    timestamp String
    The timestamp when the status was changed to the current value.
    displayStatus string
    The short label for the status.
    message string
    The detailed message for the status, including alerts and error messages.
    timestamp string
    The timestamp when the status was changed to the current value.
    display_status str
    The short label for the status.
    message str
    The detailed message for the status, including alerts and error messages.
    timestamp str
    The timestamp when the status was changed to the current value.
    displayStatus String
    The short label for the status.
    message String
    The detailed message for the status, including alerts and error messages.
    timestamp String
    The timestamp when the status was changed to the current value.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource modification (UTC).
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource modification (UTC).
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource modification (UTC).
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource modification (UTC).
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource modification (UTC).
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource modification (UTC).
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    ZoneRedundancy, ZoneRedundancyArgs

    Enabled
    Enabled
    Disabled
    Disabled
    ZoneRedundancyEnabled
    Enabled
    ZoneRedundancyDisabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    ENABLED
    Enabled
    DISABLED
    Disabled
    "Enabled"
    Enabled
    "Disabled"
    Disabled

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:containerregistry:Replication myReplication /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi