1. Packages
  2. Azure Native v1
  3. API Docs
  4. containerregistry
  5. Replication
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.containerregistry.Replication

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    An object that represents a replication for a container registry. API Version: 2019-05-01.

    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"
    	"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
    

    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,
                    replication_name: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = 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",
        ReplicationName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := containerregistry.NewReplication(ctx, "replicationResource", &containerregistry.ReplicationArgs{
    	RegistryName:      "string",
    	ResourceGroupName: "string",
    	Location:          "string",
    	ReplicationName:   "string",
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    })
    
    var replicationResource = new Replication("replicationResource", ReplicationArgs.builder()
        .registryName("string")
        .resourceGroupName("string")
        .location("string")
        .replicationName("string")
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    replication_resource = azure_native.containerregistry.Replication("replicationResource",
        registry_name=string,
        resource_group_name=string,
        location=string,
        replication_name=string,
        tags={
            string: string,
        })
    
    const replicationResource = new azure_native.containerregistry.Replication("replicationResource", {
        registryName: "string",
        resourceGroupName: "string",
        location: "string",
        replicationName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:containerregistry:Replication
    properties:
        location: string
        registryName: string
        replicationName: string
        resourceGroupName: string
        tags:
            string: 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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Replication resource accepts the following input properties:

    RegistryName string
    The name of the container registry.
    ResourceGroupName string
    The name of the resource group to which the container registry belongs.
    Location string
    The location of the resource. This cannot be changed after the resource is created.
    ReplicationName string
    The name of the replication.
    Tags Dictionary<string, string>
    The tags of the resource.
    RegistryName string
    The name of the container registry.
    ResourceGroupName string
    The name of the resource group to which the container registry belongs.
    Location string
    The location of the resource. This cannot be changed after the resource is created.
    ReplicationName string
    The name of the replication.
    Tags map[string]string
    The tags of the resource.
    registryName String
    The name of the container registry.
    resourceGroupName String
    The name of the resource group to which the container registry belongs.
    location String
    The location of the resource. This cannot be changed after the resource is created.
    replicationName String
    The name of the replication.
    tags Map<String,String>
    The tags of the resource.
    registryName string
    The name of the container registry.
    resourceGroupName string
    The name of the resource group to which the container registry belongs.
    location string
    The location of the resource. This cannot be changed after the resource is created.
    replicationName string
    The name of the replication.
    tags {[key: string]: string}
    The tags of the resource.
    registry_name str
    The name of the container registry.
    resource_group_name str
    The name of the resource group to which the container registry belongs.
    location str
    The location of the resource. This cannot be changed after the resource is created.
    replication_name str
    The name of the replication.
    tags Mapping[str, str]
    The tags of the resource.
    registryName String
    The name of the container registry.
    resourceGroupName String
    The name of the resource group to which the container registry belongs.
    location String
    The location of the resource. This cannot be changed after the resource is created.
    replicationName String
    The name of the replication.
    tags Map<String>
    The tags of the resource.

    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.
    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.
    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.
    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.
    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.
    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.
    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.

    Import

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

    $ pulumi import azure-native:containerregistry:Replication myReplication /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/replications/myReplication 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi