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


Advanced Bucket Management Operations : Replication Target Operations : Register Azure Target

Register Azure Target
Description
Connect to and register the specified Azure target as a replication target for the BlackPearl system.
Requests
Syntax
POST http[s]://{datapathDNSname}/_rest_/azure_target?account_key={string}&account_name={string}&name={string}[&auto_verify_freqency_in_days={integer}][&cloud_bucket_prefix={string}][&cloud_bucket_suffix={string}][&default_read_preference=MINIMUM_LATENCY|AFTER_ONLINE_POOL|AFTER_NEARLINE_POOL|AFTER_NON_EJECTABLE_TAPE|LAST_RESORT|NEVER][&https={string}][&permit_going_out_of_sync=TRUE|FALSE]
Request Parameters 
The name for the Azure target.
When it is preferable to read from the Azure target rather than the replication source.
Values: MINIMUM_LATENCY, AFTER_ONLINE_POOL, AFTER_NEARLINE_POOL, AFTER_NON_EJECTABLE_TAPE, LAST_RESORT, NEVER. See read_preference.
Responses
Response Elements
<Data>
   <AccountKey>{
string}</AccountKey>
   <AccountName>{string}</AccountName>
   <AutoVerifyFrequencyInDays>{string}</AutoVerifyFrequencyInDays>
   <CloudBucketPrefix>{string}</CloudBucketPrefix>
   <CloudBucketSuffix>{string}</CloudBucketSuffix>
   <DefaultReadPreference>
      MINIMUM_LATENCY|AFTER_ONLINE_POOL|AFTER_NEARLINE_POOL
      |AFTER_NON_EJECTABLE_TAPE|LAST_RESORT|NEVER
   </DefaultReadPreference>
   <Https>TRUE|FALSE</Https>
   <Id>{
string}</Id>
   <LastFullyVerified/>
   <Name>{
string}</Name>
   <PermitGoingOutOfSync>TRUE|FALSE</PermitGoingOutOfSync>
   <Quiesced>NO|PENDING|YES</Quiesced>
   <State>ONLINE|OFFLINE|LIMITED_ACCESS</State>
</Data>
where the response elements are defined as follows:
Values: MINIMUM_LATENCY, AFTER_ONLINE_POOL, AFTER_NEARLINE_POOL, AFTER_NON_EJECTABLE_TAPE, LAST_RESORT, NEVER. See read_preference.
Values: TRUE , FALSE.
The state of the Azure target.
Values: ONLINE, OFFLINE, LIMITED_ACCESS
Example
Sample Request
This request registers an Azure target with the Administrator S3 Access Id ‘BackupAdmin’, the Administrator S3 Secret Key ‘d7pJBeAN’, and the name ‘TargetAzure’ to use a default read preference of MINIMUM_LATENCY as a replication target for the BlackPearl system.
POST http[s]://blackpearl-hostname/_rest_/azure_target?account_name=Backupdmin&account_key=d7pJBeAN&name=TargetAzure&default_read_preference=MINIMUM_LATENCY HTTP/1.1
Sample Response
HTTP/1.1 201 CREATED
<Data>
   <AccountKey>d7pJBeAN</AccountKey>
   <AccountName>BackupAdmin</AccountName>
   <AutoVerifyFrequencyInDays/>
   <CloudBucketPrefix/>
   <CloudBucketSuffix/>
   <DefaultReadPreference>MINIMUM_LATENCY</DefaultReadPreference>
   <Https>TRUE</Https>
   <Id>3918b938-05e2-482b-b010-bdb24e2283f7</Id>
   <LastFullyVerified/>
   <Name>TargetAzure</Name>
   <PermitGoingOutOfSync>FALSE</PermitGoingOutOfSync>
   <Quiesced>NO</Quiesced>
   <State>ONLINE</State>
</Data>