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


Advanced Bucket Management Operations : Replication Target Operations : Get Azure Targets

Get Azure Targets
Description
Get information about all registered Azure targets. Use parameters as selection criteria to return a subset of the list.
Requests
Syntax
GET http[s]://{datapathDNSname}/_rest_/azure_target[?account_name={string}[&default_read_preference=MINIMUM_LATENCY|
AFTER_ONLINE_POOL|AFTER_NEARLINE_POOL|AFTER_NON_EJECTABLE_TAPE|
LAST_RESORT|NEVER][&https=TRUE|FALSE][&last_page][&name={string}][&page_length={32‑bit integer}][&page_offset={32‑bit integer}][&page_start_marker={string}][&permit_going_out_of_sync=TRUE|FALSE][&quiesced=NO|PENDING|YES][&state=ONLINE|LIMITED_ACCESS|OFFLINE]
Request Parameters 
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.
Values: TRUE, FALSE.
The name for the Azure target.
The maximum number of Azure targets to list.
Default: all items after page_offset.
The starting point for the first Azure targets to list.
Default: 0.
Notes:  
§
Specifying both page_offset and page_start_marker causes an error.
§
If neither page_offset, nor page_start_marker are specified, the page_offset default is used.
Whether the Azure target is in a temporarily inactive state. Values: NO, PENDING, YES
The state of the Azure target.
Values: ONLINE, OFFLINE, LIMITED_ACCESS
Responses
<Data>
   <AzureTarget>
     <AccountKey>{
string}</AccountKey>
     <AccountName>{string}</AccountName>
     <AutoVerifyFrequencyInDays>
        {
integer}
     </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>
   </AzureTarget>
...
</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 gets information about all Azure targets registered to the source BlackPearl system.
GET http[s]://blackpearl-hostname/_rest_/azure_target HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <AzureTarget>
     <AccountKey>Pq1N85c4a</AccountKey>
     <AccountName>BackupAdmin</AccountName>
     <AutoVerifyFrequencyInDays/>
     <CloudBucketPrefix/>
     <CloudBucketSuffix/>
     <DefaultReadPreference>LAST_RESORT</DefaultReadPreference>
     <Https>TRUE</Https>
     <Id>8ea4b134-8a51-463d-9fd8-1948d19f6a7b</Id>
     <LastFullyVerified/>
     <Name>Azure-ef4b345d-64c7-4582-95ab-d25845f97531</Name>
     <PermitGoingOutOfSync>FALSE</PermitGoingOutOfSync>
     <Quiesced>NO</Quiesced>
     <State>ONLINE</State>
   </AzureTarget>
   <AzureTarget>
     <AccountKey>Qllpsd52</AccountKey>
     <AccountName>BackupAdmin</AccountName>
     <AutoVerifyFrequencyInDays/>
     <CloudBucketPrefix/>
     <CloudBucketSuffix/>
     <DefaultReadPreference>LAST_RESORT</DefaultReadPreference>
     <Https>TRUE</Https>
     <Id>7b27f5bf-5ae7-4ce9-92e2-fd98092b2088</Id>
     <LastFullyVerified/>
     <Name>Azure-fda1b44d-0d30-47af-a0ff-25d7e6ac0dbd</Name>
     <PermitGoingOutOfSync>FALSE</PermitGoingOutOfSync>
     <Quiesced>NO</Quiesced>
     <State>ONLINE</State>
   </AzureTarget>
</Data>