Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

GetObjectReplicationPolicy

Using GetObjectReplicationPolicy

function getObjectReplicationPolicy(args: GetObjectReplicationPolicyArgs, opts?: InvokeOptions): Promise<GetObjectReplicationPolicyResult>
def get_object_replication_policy(account_name: Optional[str] = None, object_replication_policy_id: Optional[str] = None, resource_group_name: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetObjectReplicationPolicyResult
func LookupObjectReplicationPolicy(ctx *Context, args *LookupObjectReplicationPolicyArgs, opts ...InvokeOption) (*LookupObjectReplicationPolicyResult, error)

Note: This function is named LookupObjectReplicationPolicy in the Go SDK.

public static class GetObjectReplicationPolicy {
    public static Task<GetObjectReplicationPolicyResult> InvokeAsync(GetObjectReplicationPolicyArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

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

GetObjectReplicationPolicy Result

The following output properties are available:

DestinationAccount string
Required. Destination account name.
EnabledTime string
Indicates when the policy is enabled on the source account.
Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Name string
The name of the resource
PolicyId string
A unique id for object replication policy.
SourceAccount string
Required. Source account name.
Type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
Rules List<Pulumi.AzureNextGen.Storage.Outputs.ObjectReplicationPolicyRuleResponse>
The storage account object replication rules.
DestinationAccount string
Required. Destination account name.
EnabledTime string
Indicates when the policy is enabled on the source account.
Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Name string
The name of the resource
PolicyId string
A unique id for object replication policy.
SourceAccount string
Required. Source account name.
Type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
Rules []ObjectReplicationPolicyRuleResponse
The storage account object replication rules.
destinationAccount string
Required. Destination account name.
enabledTime string
Indicates when the policy is enabled on the source account.
id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name string
The name of the resource
policyId string
A unique id for object replication policy.
sourceAccount string
Required. Source account name.
type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
rules ObjectReplicationPolicyRuleResponse[]
The storage account object replication rules.
destination_account str
Required. Destination account name.
enabled_time str
Indicates when the policy is enabled on the source account.
id str
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name str
The name of the resource
policy_id str
A unique id for object replication policy.
source_account str
Required. Source account name.
type str
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
rules Sequence[ObjectReplicationPolicyRuleResponse]
The storage account object replication rules.

Supporting Types

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.

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.

Package Details

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