Use Pulumi's new import command to generate code from existing cloud resources. Learn More

ObjectReplicationPolicy

The replication policy between two storage accounts. Multiple rules can be defined in one policy. Latest API Version: 2019-06-01.

Example Usage

StorageAccountCreateObjectReplicationPolicyOnDestination

using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;

class MyStack : Stack
{
    public MyStack()
    {
        var objectReplicationPolicy = new AzureNextGen.Storage.Latest.ObjectReplicationPolicy("objectReplicationPolicy", new AzureNextGen.Storage.Latest.ObjectReplicationPolicyArgs
        {
            AccountName = "dst112",
            DestinationAccount = "dst112",
            ObjectReplicationPolicyId = "default",
            ResourceGroupName = "res7687",
            Rules = 
            {
                new AzureNextGen.Storage.Latest.Inputs.ObjectReplicationPolicyRuleArgs
                {
                    DestinationContainer = "dcont139",
                    Filters = new AzureNextGen.Storage.Latest.Inputs.ObjectReplicationPolicyFilterArgs
                    {
                        PrefixMatch = 
                        {
                            "blobA",
                            "blobB",
                        },
                    },
                    SourceContainer = "scont139",
                },
            },
            SourceAccount = "src1122",
        });
    }

}
package main

import (
    storage "github.com/pulumi/pulumi-azure-nextgen/sdk/go/azure/storage/latest"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := storage.NewObjectReplicationPolicy(ctx, "objectReplicationPolicy", &storage.ObjectReplicationPolicyArgs{
            AccountName:               pulumi.String("dst112"),
            DestinationAccount:        pulumi.String("dst112"),
            ObjectReplicationPolicyId: pulumi.String("default"),
            ResourceGroupName:         pulumi.String("res7687"),
            Rules: storage.ObjectReplicationPolicyRuleArray{
                &storage.ObjectReplicationPolicyRuleArgs{
                    DestinationContainer: pulumi.String("dcont139"),
                    Filters: &storage.ObjectReplicationPolicyFilterArgs{
                        PrefixMatch: pulumi.StringArray{
                            pulumi.String("blobA"),
                            pulumi.String("blobB"),
                        },
                    },
                    SourceContainer: pulumi.String("scont139"),
                },
            },
            SourceAccount: pulumi.String("src1122"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen

object_replication_policy = azure_nextgen.storage.latest.ObjectReplicationPolicy("objectReplicationPolicy",
    account_name="dst112",
    destination_account="dst112",
    object_replication_policy_id="default",
    resource_group_name="res7687",
    rules=[azure_nextgen.storage.latest.ObjectReplicationPolicyRuleArgs(
        destination_container="dcont139",
        filters=azure_nextgen.storage.latest.ObjectReplicationPolicyFilterArgs(
            prefix_match=[
                "blobA",
                "blobB",
            ],
        ),
        source_container="scont139",
    )],
    source_account="src1122")
import * as pulumi from "@pulumi/pulumi";
import * as azure_nextgen from "@pulumi/azure-nextgen";

const objectReplicationPolicy = new azure_nextgen.storage.latest.ObjectReplicationPolicy("objectReplicationPolicy", {
    accountName: "dst112",
    destinationAccount: "dst112",
    objectReplicationPolicyId: "default",
    resourceGroupName: "res7687",
    rules: [{
        destinationContainer: "dcont139",
        filters: {
            prefixMatch: [
                "blobA",
                "blobB",
            ],
        },
        sourceContainer: "scont139",
    }],
    sourceAccount: "src1122",
});

StorageAccountCreateObjectReplicationPolicyOnSource

using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;

class MyStack : Stack
{
    public MyStack()
    {
        var objectReplicationPolicy = new AzureNextGen.Storage.Latest.ObjectReplicationPolicy("objectReplicationPolicy", new AzureNextGen.Storage.Latest.ObjectReplicationPolicyArgs
        {
            AccountName = "src1122",
            DestinationAccount = "dst112",
            ObjectReplicationPolicyId = "2a20bb73-5717-4635-985a-5d4cf777438f",
            ResourceGroupName = "res7687",
            Rules = 
            {
                new AzureNextGen.Storage.Latest.Inputs.ObjectReplicationPolicyRuleArgs
                {
                    DestinationContainer = "dcont139",
                    Filters = new AzureNextGen.Storage.Latest.Inputs.ObjectReplicationPolicyFilterArgs
                    {
                        MinCreationTime = "2020-02-19T16:05:00Z",
                        PrefixMatch = 
                        {
                            "blobA",
                            "blobB",
                        },
                    },
                    RuleId = "d5d18a48-8801-4554-aeaa-74faf65f5ef9",
                    SourceContainer = "scont139",
                },
            },
            SourceAccount = "src1122",
        });
    }

}
package main

import (
    storage "github.com/pulumi/pulumi-azure-nextgen/sdk/go/azure/storage/latest"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := storage.NewObjectReplicationPolicy(ctx, "objectReplicationPolicy", &storage.ObjectReplicationPolicyArgs{
            AccountName:               pulumi.String("src1122"),
            DestinationAccount:        pulumi.String("dst112"),
            ObjectReplicationPolicyId: pulumi.String("2a20bb73-5717-4635-985a-5d4cf777438f"),
            ResourceGroupName:         pulumi.String("res7687"),
            Rules: storage.ObjectReplicationPolicyRuleArray{
                &storage.ObjectReplicationPolicyRuleArgs{
                    DestinationContainer: pulumi.String("dcont139"),
                    Filters: &storage.ObjectReplicationPolicyFilterArgs{
                        MinCreationTime: pulumi.String("2020-02-19T16:05:00Z"),
                        PrefixMatch: pulumi.StringArray{
                            pulumi.String("blobA"),
                            pulumi.String("blobB"),
                        },
                    },
                    RuleId:          pulumi.String("d5d18a48-8801-4554-aeaa-74faf65f5ef9"),
                    SourceContainer: pulumi.String("scont139"),
                },
            },
            SourceAccount: pulumi.String("src1122"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen

object_replication_policy = azure_nextgen.storage.latest.ObjectReplicationPolicy("objectReplicationPolicy",
    account_name="src1122",
    destination_account="dst112",
    object_replication_policy_id="2a20bb73-5717-4635-985a-5d4cf777438f",
    resource_group_name="res7687",
    rules=[azure_nextgen.storage.latest.ObjectReplicationPolicyRuleArgs(
        destination_container="dcont139",
        filters=azure_nextgen.storage.latest.ObjectReplicationPolicyFilterArgs(
            min_creation_time="2020-02-19T16:05:00Z",
            prefix_match=[
                "blobA",
                "blobB",
            ],
        ),
        rule_id="d5d18a48-8801-4554-aeaa-74faf65f5ef9",
        source_container="scont139",
    )],
    source_account="src1122")
import * as pulumi from "@pulumi/pulumi";
import * as azure_nextgen from "@pulumi/azure-nextgen";

const objectReplicationPolicy = new azure_nextgen.storage.latest.ObjectReplicationPolicy("objectReplicationPolicy", {
    accountName: "src1122",
    destinationAccount: "dst112",
    objectReplicationPolicyId: "2a20bb73-5717-4635-985a-5d4cf777438f",
    resourceGroupName: "res7687",
    rules: [{
        destinationContainer: "dcont139",
        filters: {
            minCreationTime: "2020-02-19T16:05:00Z",
            prefixMatch: [
                "blobA",
                "blobB",
            ],
        },
        ruleId: "d5d18a48-8801-4554-aeaa-74faf65f5ef9",
        sourceContainer: "scont139",
    }],
    sourceAccount: "src1122",
});

StorageAccountUpdateObjectReplicationPolicyOnDestination

using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;

class MyStack : Stack
{
    public MyStack()
    {
        var objectReplicationPolicy = new AzureNextGen.Storage.Latest.ObjectReplicationPolicy("objectReplicationPolicy", new AzureNextGen.Storage.Latest.ObjectReplicationPolicyArgs
        {
            AccountName = "dst112",
            DestinationAccount = "dst112",
            ObjectReplicationPolicyId = "2a20bb73-5717-4635-985a-5d4cf777438f",
            ResourceGroupName = "res7687",
            Rules = 
            {
                new AzureNextGen.Storage.Latest.Inputs.ObjectReplicationPolicyRuleArgs
                {
                    DestinationContainer = "dcont139",
                    Filters = new AzureNextGen.Storage.Latest.Inputs.ObjectReplicationPolicyFilterArgs
                    {
                        PrefixMatch = 
                        {
                            "blobA",
                            "blobB",
                        },
                    },
                    RuleId = "d5d18a48-8801-4554-aeaa-74faf65f5ef9",
                    SourceContainer = "scont139",
                },
                new AzureNextGen.Storage.Latest.Inputs.ObjectReplicationPolicyRuleArgs
                {
                    DestinationContainer = "dcont179",
                    SourceContainer = "scont179",
                },
            },
            SourceAccount = "src1122",
        });
    }

}
package main

import (
    storage "github.com/pulumi/pulumi-azure-nextgen/sdk/go/azure/storage/latest"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := storage.NewObjectReplicationPolicy(ctx, "objectReplicationPolicy", &storage.ObjectReplicationPolicyArgs{
            AccountName:               pulumi.String("dst112"),
            DestinationAccount:        pulumi.String("dst112"),
            ObjectReplicationPolicyId: pulumi.String("2a20bb73-5717-4635-985a-5d4cf777438f"),
            ResourceGroupName:         pulumi.String("res7687"),
            Rules: storage.ObjectReplicationPolicyRuleArray{
                &storage.ObjectReplicationPolicyRuleArgs{
                    DestinationContainer: pulumi.String("dcont139"),
                    Filters: &storage.ObjectReplicationPolicyFilterArgs{
                        PrefixMatch: pulumi.StringArray{
                            pulumi.String("blobA"),
                            pulumi.String("blobB"),
                        },
                    },
                    RuleId:          pulumi.String("d5d18a48-8801-4554-aeaa-74faf65f5ef9"),
                    SourceContainer: pulumi.String("scont139"),
                },
                &storage.ObjectReplicationPolicyRuleArgs{
                    DestinationContainer: pulumi.String("dcont179"),
                    SourceContainer:      pulumi.String("scont179"),
                },
            },
            SourceAccount: pulumi.String("src1122"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen

object_replication_policy = azure_nextgen.storage.latest.ObjectReplicationPolicy("objectReplicationPolicy",
    account_name="dst112",
    destination_account="dst112",
    object_replication_policy_id="2a20bb73-5717-4635-985a-5d4cf777438f",
    resource_group_name="res7687",
    rules=[
        azure_nextgen.storage.latest.ObjectReplicationPolicyRuleArgs(
            destination_container="dcont139",
            filters=azure_nextgen.storage.latest.ObjectReplicationPolicyFilterArgs(
                prefix_match=[
                    "blobA",
                    "blobB",
                ],
            ),
            rule_id="d5d18a48-8801-4554-aeaa-74faf65f5ef9",
            source_container="scont139",
        ),
        azure_nextgen.storage.latest.ObjectReplicationPolicyRuleArgs(
            destination_container="dcont179",
            source_container="scont179",
        ),
    ],
    source_account="src1122")
import * as pulumi from "@pulumi/pulumi";
import * as azure_nextgen from "@pulumi/azure-nextgen";

const objectReplicationPolicy = new azure_nextgen.storage.latest.ObjectReplicationPolicy("objectReplicationPolicy", {
    accountName: "dst112",
    destinationAccount: "dst112",
    objectReplicationPolicyId: "2a20bb73-5717-4635-985a-5d4cf777438f",
    resourceGroupName: "res7687",
    rules: [
        {
            destinationContainer: "dcont139",
            filters: {
                prefixMatch: [
                    "blobA",
                    "blobB",
                ],
            },
            ruleId: "d5d18a48-8801-4554-aeaa-74faf65f5ef9",
            sourceContainer: "scont139",
        },
        {
            destinationContainer: "dcont179",
            sourceContainer: "scont179",
        },
    ],
    sourceAccount: "src1122",
});

StorageAccountUpdateObjectReplicationPolicyOnSource

using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;

class MyStack : Stack
{
    public MyStack()
    {
        var objectReplicationPolicy = new AzureNextGen.Storage.Latest.ObjectReplicationPolicy("objectReplicationPolicy", new AzureNextGen.Storage.Latest.ObjectReplicationPolicyArgs
        {
            AccountName = "src1122",
            DestinationAccount = "dst112",
            ObjectReplicationPolicyId = "2a20bb73-5717-4635-985a-5d4cf777438f",
            ResourceGroupName = "res7687",
            Rules = 
            {
                new AzureNextGen.Storage.Latest.Inputs.ObjectReplicationPolicyRuleArgs
                {
                    DestinationContainer = "dcont139",
                    Filters = new AzureNextGen.Storage.Latest.Inputs.ObjectReplicationPolicyFilterArgs
                    {
                        PrefixMatch = 
                        {
                            "blobA",
                            "blobB",
                        },
                    },
                    RuleId = "d5d18a48-8801-4554-aeaa-74faf65f5ef9",
                    SourceContainer = "scont139",
                },
                new AzureNextGen.Storage.Latest.Inputs.ObjectReplicationPolicyRuleArgs
                {
                    DestinationContainer = "dcont179",
                    RuleId = "cfbb4bc2-8b60-429f-b05a-d1e0942b33b2",
                    SourceContainer = "scont179",
                },
            },
            SourceAccount = "src1122",
        });
    }

}
package main

import (
    storage "github.com/pulumi/pulumi-azure-nextgen/sdk/go/azure/storage/latest"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := storage.NewObjectReplicationPolicy(ctx, "objectReplicationPolicy", &storage.ObjectReplicationPolicyArgs{
            AccountName:               pulumi.String("src1122"),
            DestinationAccount:        pulumi.String("dst112"),
            ObjectReplicationPolicyId: pulumi.String("2a20bb73-5717-4635-985a-5d4cf777438f"),
            ResourceGroupName:         pulumi.String("res7687"),
            Rules: storage.ObjectReplicationPolicyRuleArray{
                &storage.ObjectReplicationPolicyRuleArgs{
                    DestinationContainer: pulumi.String("dcont139"),
                    Filters: &storage.ObjectReplicationPolicyFilterArgs{
                        PrefixMatch: pulumi.StringArray{
                            pulumi.String("blobA"),
                            pulumi.String("blobB"),
                        },
                    },
                    RuleId:          pulumi.String("d5d18a48-8801-4554-aeaa-74faf65f5ef9"),
                    SourceContainer: pulumi.String("scont139"),
                },
                &storage.ObjectReplicationPolicyRuleArgs{
                    DestinationContainer: pulumi.String("dcont179"),
                    RuleId:               pulumi.String("cfbb4bc2-8b60-429f-b05a-d1e0942b33b2"),
                    SourceContainer:      pulumi.String("scont179"),
                },
            },
            SourceAccount: pulumi.String("src1122"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen

object_replication_policy = azure_nextgen.storage.latest.ObjectReplicationPolicy("objectReplicationPolicy",
    account_name="src1122",
    destination_account="dst112",
    object_replication_policy_id="2a20bb73-5717-4635-985a-5d4cf777438f",
    resource_group_name="res7687",
    rules=[
        azure_nextgen.storage.latest.ObjectReplicationPolicyRuleArgs(
            destination_container="dcont139",
            filters=azure_nextgen.storage.latest.ObjectReplicationPolicyFilterArgs(
                prefix_match=[
                    "blobA",
                    "blobB",
                ],
            ),
            rule_id="d5d18a48-8801-4554-aeaa-74faf65f5ef9",
            source_container="scont139",
        ),
        azure_nextgen.storage.latest.ObjectReplicationPolicyRuleArgs(
            destination_container="dcont179",
            rule_id="cfbb4bc2-8b60-429f-b05a-d1e0942b33b2",
            source_container="scont179",
        ),
    ],
    source_account="src1122")
import * as pulumi from "@pulumi/pulumi";
import * as azure_nextgen from "@pulumi/azure-nextgen";

const objectReplicationPolicy = new azure_nextgen.storage.latest.ObjectReplicationPolicy("objectReplicationPolicy", {
    accountName: "src1122",
    destinationAccount: "dst112",
    objectReplicationPolicyId: "2a20bb73-5717-4635-985a-5d4cf777438f",
    resourceGroupName: "res7687",
    rules: [
        {
            destinationContainer: "dcont139",
            filters: {
                prefixMatch: [
                    "blobA",
                    "blobB",
                ],
            },
            ruleId: "d5d18a48-8801-4554-aeaa-74faf65f5ef9",
            sourceContainer: "scont139",
        },
        {
            destinationContainer: "dcont179",
            ruleId: "cfbb4bc2-8b60-429f-b05a-d1e0942b33b2",
            sourceContainer: "scont179",
        },
    ],
    sourceAccount: "src1122",
});

Create a ObjectReplicationPolicy Resource

new ObjectReplicationPolicy(name: string, args: ObjectReplicationPolicyArgs, opts?: CustomResourceOptions);
def ObjectReplicationPolicy(resource_name: str, opts: Optional[ResourceOptions] = None, account_name: Optional[str] = None, destination_account: Optional[str] = None, object_replication_policy_id: Optional[str] = None, resource_group_name: Optional[str] = None, rules: Optional[Sequence[ObjectReplicationPolicyRuleArgs]] = None, source_account: Optional[str] = None)
func NewObjectReplicationPolicy(ctx *Context, name string, args ObjectReplicationPolicyArgs, opts ...ResourceOption) (*ObjectReplicationPolicy, error)
public ObjectReplicationPolicy(string name, ObjectReplicationPolicyArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ObjectReplicationPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ObjectReplicationPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ObjectReplicationPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ObjectReplicationPolicy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ObjectReplicationPolicy resource accepts the following input properties:

AccountName string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
DestinationAccount string
Required. Destination account name.
ObjectReplicationPolicyId string
The ID of object replication policy or ‘default’ if the policy ID is unknown.
ResourceGroupName string
The name of the resource group within the user’s subscription. The name is case insensitive.
SourceAccount string
Required. Source account name.
Rules List<Pulumi.AzureNextGen.Storage.Inputs.ObjectReplicationPolicyRuleArgs>
The storage account object replication rules.
AccountName string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
DestinationAccount string
Required. Destination account name.
ObjectReplicationPolicyId string
The ID of object replication policy or ‘default’ if the policy ID is unknown.
ResourceGroupName string
The name of the resource group within the user’s subscription. The name is case insensitive.
SourceAccount string
Required. Source account name.
Rules []ObjectReplicationPolicyRule
The storage account object replication rules.
accountName string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
destinationAccount string
Required. Destination account name.
objectReplicationPolicyId string
The ID of object replication policy or ‘default’ if the policy ID is unknown.
resourceGroupName string
The name of the resource group within the user’s subscription. The name is case insensitive.
sourceAccount string
Required. Source account name.
rules ObjectReplicationPolicyRule[]
The storage account object replication rules.
account_name str
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
destination_account str
Required. Destination account name.
object_replication_policy_id str
The ID of object replication policy or ‘default’ if the policy ID is unknown.
resource_group_name str
The name of the resource group within the user’s subscription. The name is case insensitive.
source_account str
Required. Source account name.
rules Sequence[ObjectReplicationPolicyRuleArgs]
The storage account object replication rules.

Outputs

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

EnabledTime string
Indicates when the policy is enabled on the source account.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
PolicyId string
A unique id for object replication policy.
Type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
EnabledTime string
Indicates when the policy is enabled on the source account.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
PolicyId string
A unique id for object replication policy.
Type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
enabledTime string
Indicates when the policy is enabled on the source account.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
policyId string
A unique id for object replication policy.
type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
enabled_time str
Indicates when the policy is enabled on the source account.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
policy_id str
A unique id for object replication policy.
type str
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”

Supporting Types

ObjectReplicationPolicyFilter

MinCreationTime string
Blobs created after the time will be replicated to the destination. It must be in datetime format ‘yyyy-MM-ddTHH:mm:ssZ’. Example: 2020-02-19T16:05:00Z
PrefixMatch List<string>
Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.
MinCreationTime string
Blobs created after the time will be replicated to the destination. It must be in datetime format ‘yyyy-MM-ddTHH:mm:ssZ’. Example: 2020-02-19T16:05:00Z
PrefixMatch []string
Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.
minCreationTime string
Blobs created after the time will be replicated to the destination. It must be in datetime format ‘yyyy-MM-ddTHH:mm:ssZ’. Example: 2020-02-19T16:05:00Z
prefixMatch string[]
Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.
min_creation_time str
Blobs created after the time will be replicated to the destination. It must be in datetime format ‘yyyy-MM-ddTHH:mm:ssZ’. Example: 2020-02-19T16:05:00Z
prefix_match Sequence[str]
Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.

ObjectReplicationPolicyFilterResponse

MinCreationTime string
Blobs created after the time will be replicated to the destination. It must be in datetime format ‘yyyy-MM-ddTHH:mm:ssZ’. Example: 2020-02-19T16:05:00Z
PrefixMatch List<string>
Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.
MinCreationTime string
Blobs created after the time will be replicated to the destination. It must be in datetime format ‘yyyy-MM-ddTHH:mm:ssZ’. Example: 2020-02-19T16:05:00Z
PrefixMatch []string
Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.
minCreationTime string
Blobs created after the time will be replicated to the destination. It must be in datetime format ‘yyyy-MM-ddTHH:mm:ssZ’. Example: 2020-02-19T16:05:00Z
prefixMatch string[]
Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.
min_creation_time str
Blobs created after the time will be replicated to the destination. It must be in datetime format ‘yyyy-MM-ddTHH:mm:ssZ’. Example: 2020-02-19T16:05:00Z
prefix_match Sequence[str]
Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.

ObjectReplicationPolicyRule

DestinationContainer string
Required. Destination container name.
SourceContainer string
Required. Source container name.
Filters Pulumi.AzureNextGen.Storage.Inputs.ObjectReplicationPolicyFilterArgs
Optional. An object that defines the filter set.
RuleId string
Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account.
DestinationContainer string
Required. Destination container name.
SourceContainer string
Required. Source container name.
Filters ObjectReplicationPolicyFilter
Optional. An object that defines the filter set.
RuleId string
Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account.
destinationContainer string
Required. Destination container name.
sourceContainer string
Required. Source container name.
filters ObjectReplicationPolicyFilter
Optional. An object that defines the filter set.
ruleId string
Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account.
destination_container str
Required. Destination container name.
source_container str
Required. Source container name.
filters ObjectReplicationPolicyFilterArgs
Optional. An object that defines the filter set.
rule_id str
Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account.

ObjectReplicationPolicyRuleResponse

DestinationContainer string
Required. Destination container name.
SourceContainer string
Required. Source container name.
Filters Pulumi.AzureNextGen.Storage.Inputs.ObjectReplicationPolicyFilterResponseArgs
Optional. An object that defines the filter set.
RuleId string
Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account.
DestinationContainer string
Required. Destination container name.
SourceContainer string
Required. Source container name.
Filters ObjectReplicationPolicyFilterResponse
Optional. An object that defines the filter set.
RuleId string
Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account.
destinationContainer string
Required. Destination container name.
sourceContainer string
Required. Source container name.
filters ObjectReplicationPolicyFilterResponse
Optional. An object that defines the filter set.
ruleId string
Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account.
destination_container str
Required. Destination container name.
source_container str
Required. Source container name.
filters ObjectReplicationPolicyFilterResponseArgs
Optional. An object that defines the filter set.
rule_id str
Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account.

Import

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

$ pulumi import azure-nextgen:storage/latest:ObjectReplicationPolicy 2a20bb73-5717-4635-985a-5d4cf777438f /subscriptions/{subscription-id}/resourceGroups/res7687/providers/Microsoft.Storage/storageAccounts/src1122/objectReplicationPolicies/2a20bb73-5717-4635-985a-5d4cf777438f 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-nextgen
License
Apache-2.0