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


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

Create Azure Data Replication Rule
Description
Create an Azure data replication rule for a data policy. An Azure data replication rule targets a specified Microsoft Azure cloud platform.
You cannot specify the same Azure target multiple times in different replication rules applied to the same data policy. You can reference the same Azure target across different data policies.
You must create the data policy and register the Azure target before creating the replication rule. See Create Data Policy and Register DS3 Target.
Requests
Syntax
POST http[s]://{datapathDNSname}/_rest_/azure_data_replication_rule?data_policy_id={string}
&target_id={string}&type=PERMANENT [&max_blob_part_size_in_bytes={64-bit integer}][&replicate_deletes=TRUE|FALSE]
Request Parameters 
Note: Replication rules can be modified to have a type of RETIRED, but cannot be created as RETIRED.
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.
Responses
Response Elements
<Data>
   <DataPolicyId>{
string}</DataPolicyId>
   <Id>{string}</Id>
   <MaxBlobPartSizeInBytes>
     {64-bit integer}
   </MaxBlobPartSizeInBytes>
   <ReplicateDeletes>TRUE|FALSE</ReplicateDeletes>
   <State>NORMAL</State>
   <TargetId>{string}</TargetId>
   <Type>PERMANENT</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.
Values: PERMANENT
Example
Sample Request
This request creates a permanent Azure data replication rule for the data policy named “datapolicy1” for the Azure target with the name “azuretarget1”.
POST http://blackpearl-hostname/_rest_/azure_data_replication_rule?data_policy_id=datapolicy1&target_id=azuretarget1&type=PERMANENT HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <DataPolicyId>
     5d6fc2b5-169f-4863-8d7f-14e93dec01ec
   </DataPolicyId>
   <Id>dcba2d02-4f2c-4c9a-9b72-9c92fb9da36f</Id>
   <MaxBlobPartSizeInBytes>
     b1c814cc-71e4-55fb-c7da-142c52b644b1
   </MaxBlobPartSizeInBytes>
   <ReplicateDeletes>TRUE</ReplicateDeletes>
   <State>NORMAL</State>
   <TargetId>a0d900bc-60d3-45ec-b6de-023d61a517c0</TargetId>
   <Type>PERMANENT</Type>
</Data>