你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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.v2023_05_01.models._models_py3.Resource
ObjectReplicationPolicy

Constructor

ObjectReplicationPolicy(*, source_account: str | None = None, destination_account: str | None = None, rules: List[_models.ObjectReplicationPolicyRule] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
source_account
str

Required. Source account name. It should be full resource id if allowCrossTenantReplication set to false.

destination_account
str

Required. Destination account name. It should be full resource id if allowCrossTenantReplication set to false.

rules

The storage account object replication rules.

Variables

Name Description
id
str

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long

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

Indicates when the policy is enabled on the source account.

source_account
str

Required. Source account name. It should be full resource id if allowCrossTenantReplication set to false.

destination_account
str

Required. Destination account name. It should be full resource id if allowCrossTenantReplication set to false.

rules

The storage account object replication rules.