ObjectReplicationPolicy Class

The replication policy between two storage accounts. Multiple rules can be defined in one policy.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.storage.v2021_02_01.models._models_py3.Resource
ObjectReplicationPolicy

Constructor

ObjectReplicationPolicy(*, source_account: Optional[str] = None, destination_account: Optional[str] = None, rules: Optional[List[azure.mgmt.storage.v2021_02_01.models._models_py3.ObjectReplicationPolicyRule]] = None, **kwargs)

Variables

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.

type
str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

policy_id
str

A unique id for object replication policy.

enabled_time
datetime

Indicates when the policy is enabled on the source account.

source_account
str

Required. Source account name.

destination_account
str

Required. Destination account name.

rules
list[ObjectReplicationPolicyRule]

The storage account object replication rules.