Partager via


ObjectReplicationPolicy Class

Definition

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

[Microsoft.Rest.Serialization.JsonTransformation]
public class ObjectReplicationPolicy : Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type ObjectReplicationPolicy = class
    inherit Resource
Public Class ObjectReplicationPolicy
Inherits Resource
Inheritance
ObjectReplicationPolicy
Attributes

Constructors

ObjectReplicationPolicy()

Initializes a new instance of the ObjectReplicationPolicy class.

ObjectReplicationPolicy(String, String, String, String, String, String, Nullable<DateTime>, IList<ObjectReplicationPolicyRule>)

Initializes a new instance of the ObjectReplicationPolicy class.

Properties

DestinationAccount

Gets or sets required. Destination account name.

EnabledTime

Gets indicates when the policy is enabled on the source account.

Id

Gets fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

(Inherited from Resource)
Name

Gets the name of the resource

(Inherited from Resource)
PolicyId

Gets a unique id for object replication policy.

Rules

Gets or sets the storage account object replication rules.

SourceAccount

Gets or sets required. Source account name.

Type

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

(Inherited from Resource)

Methods

Validate()

Validate the object.

Applies to