azure-native.containerregistry.Replication
Explore with Pulumi AI
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:
- Registry
Name string - The name of the container registry.
- Resource
Group stringName - 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.
- Region
Endpoint boolEnabled - 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 string - The name of the replication.
- Dictionary<string, string>
- The tags of the resource.
- Zone
Redundancy string | Pulumi.Azure Native. Container Registry. Zone Redundancy - Whether or not zone redundancy is enabled for this container registry replication
- Registry
Name string - The name of the container registry.
- Resource
Group stringName - 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.
- Region
Endpoint boolEnabled - 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 string - The name of the replication.
- map[string]string
- The tags of the resource.
- Zone
Redundancy string | ZoneRedundancy - Whether or not zone redundancy is enabled for this container registry replication
- registry
Name String - The name of the container registry.
- resource
Group StringName - 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.
- region
Endpoint BooleanEnabled - 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 String - The name of the replication.
- Map<String,String>
- The tags of the resource.
- zone
Redundancy String | ZoneRedundancy - Whether or not zone redundancy is enabled for this container registry replication
- registry
Name string - The name of the container registry.
- resource
Group stringName - 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.
- region
Endpoint booleanEnabled - 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 string - The name of the replication.
- {[key: string]: string}
- The tags of the resource.
- zone
Redundancy 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_ strname - 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_ boolenabled - 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.
- Mapping[str, str]
- The tags of the resource.
- zone_
redundancy str | ZoneRedundancy - Whether or not zone redundancy is enabled for this container registry replication
- registry
Name String - The name of the container registry.
- resource
Group StringName - 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.
- region
Endpoint BooleanEnabled - 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 String - The name of the replication.
- Map<String>
- The tags of the resource.
- zone
Redundancy 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.
- Provisioning
State string - The provisioning state of the replication at the time the operation was called.
- Status
Pulumi.
Azure Native. Container Registry. Outputs. Status Response - The status of the replication at the time the operation was called.
- System
Data Pulumi.Azure Native. Container Registry. Outputs. System Data Response - 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.
- Provisioning
State string - The provisioning state of the replication at the time the operation was called.
- Status
Status
Response - The status of the replication at the time the operation was called.
- System
Data SystemData Response - 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.
- provisioning
State String - The provisioning state of the replication at the time the operation was called.
- status
Status
Response - The status of the replication at the time the operation was called.
- system
Data SystemData Response - 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.
- provisioning
State string - The provisioning state of the replication at the time the operation was called.
- status
Status
Response - The status of the replication at the time the operation was called.
- system
Data SystemData Response - 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
Status
Response - The status of the replication at the time the operation was called.
- system_
data SystemData Response - 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.
- provisioning
State 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.
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource.
Supporting Types
StatusResponse, StatusResponseArgs
- Display
Status 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 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 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 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.
- display
Status 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
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource modification (UTC).
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource modification (UTC).
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource modification (UTC).
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource modification (UTC).
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource modification (UTC).
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource modification (UTC).
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
ZoneRedundancy, ZoneRedundancyArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Zone
Redundancy Enabled - Enabled
- Zone
Redundancy Disabled - 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