Spectra Logic
1-800-833-1132 : 1-303-449-6400


Advanced Bucket Management Operations : Data Policy Operations : Modify Azure Data Replication Rule

Modify Azure Data Replication Rule
Description
Modify an Azure data replication rule for a data policy.
Note:
Requests
Syntax
PUT http[s]://{datapathDNSname}/_rest_/azure_data_replication_rule/{data replication rule UUID or other unique attribute}[&max_blob_part_size_in_bytes={64-bit integer}][replicate_deletes=TRUE|FALSE][&type=PERMANENT|RETIRED]
Request Parameters 
Values: Min: 100MB, Max: 1TB, Default: 1GB
TRUE (default) — Any delete received locally always replicates on the Azure target. If the local BlackPearl system cannot communicate with one or more targets, the delete fails.
FALSE— Any deletes received locally do not replicate to the target.
§
PERMANENT — A copy of the data is replicated to the target.
§
RETIRED — A copy of already replicated data is maintained, but the rule is not applied to new data.
Responses
Response Elements
<Data>
   <DataPolicyId>{
string}</DataPolicyId>
   <Id>{string}</Id>
   <MaxBlobPartSizeInBytes>
     {64-bit integer}
   </MaxBlobPartSizeInBytes>
   <ReplicateDeletes>TRUE|FALSE</ReplicateDeletes>
   <State>NORMAL</State>
   <TargetDataPolicy>{string}</TargetDataPolicy>
   <TargetId>{string}</TargetId>
   <Type>PERMANENT|RETIRED</Type>
</Data>
where the response elements are defined as follows:
Values: TRUE, FALSE
The state of the persistence rule. Value: NORMAL — The persistence rule is in a normal, included state.
§
PERMANENT — A copy of the data is replicated to the target.
§
RETIRED — A copy of already replicated data is maintained, but the rule is not applied to new data.
Example
Sample Request
This request retires the Azure replication rule with the UUID 34dde4ff-8603-4c44-b0e9-39150f9cc3ad.
POST http://blackpearl-hostname/_rest_/azure_data_replication_rule/34dde4ff-8603-4c44-b0e9-39150f9cc3ad?type=RETIRED HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <DataPolicyId>
      88832b42-731e-4a82-be8d-3d787117ca7d
   </DataPolicyId>
   <MaxBlobPartSizeInBytes>
     48321fc3-821f-5b73-fc3a-4a877241fb6a
   </MaxBlobPartSizeInBytes>
   <Id>34dde4ff-8603-4c44-b0e9-39150f9cc3ad</Id>
   <ReplicateDeletes>TRUE</ReplicateDeletes>
   <State>NORMAL</State>
   <TargetDataPolicy/>
   <TargetId>e4858769-57e0-4f34-a2d0-3f7ad57aa80f</TargetId>
   <Type>RETIRED</Type>
</Data>