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


Advanced Bucket Management Operations : Replication Target Operations : Get DS3 Target Read Preferences

Get DS3 Target Read Preferences
Description
Get information about the default read preference for all DS3 targets. Use parameters as selection criteria to return a subset of the list.
Requests
Syntax
GET http[s]://{datapathDNSname}/_rest_/ds3_target_read_preference/[&bucket_id={string}][&last_page][&page_length={32‑bit integer}][&page_offset={32‑bit integer}][&page_start_marker={string}][&read_preference=MINIMUM_LATENCY|AFTER_ONLINE_POOL| AFTER_NEARLINE_POOL|AFTER_NON_EJECTABLE_TAPE|LAST_RESORT|NEVER][&target_id={string}]
Request Parameters 
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.
Values: MINIMUM_LATENCY, AFTER_ONLINE_POOL, AFTER_NEARLINE_POOL, AFTER_NON_EJECTABLE_TAPE, LAST_RESORT, NEVER. See read_preference.
Responses
Response Elements
<Data>
   <Ds3TargetReadPreference>
      <BucketId>{
string}</BucketId>
      <Id>{string}</Id>
      <ReadPreference>
         MINIMUM_LATENCY|AFTER_ONLINE_POOL|AFTER_NEARLINE_POOL
         |AFTER_NON_EJECTABLE_TAPE|LAST_RESORT|NEVER
      </ReadPreference>
      <TargetId>{string}</TargetId>
   </Ds3TargetReadPreference>
</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.
 
Example
Sample Request
This request gets information about the read preference for each DS3 target registered to the source.
GET http://blackpearl-hostname/_rest_/ds3_target_read_preference/ HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <Ds3TargetReadPreference>
      <BucketId>306e0f35-aadd-4152-90eb-7fcf42df7a15</BucketId>
      <Id>8d0aae6a-2d72-486c-9142-f0542662776f</Id>
      <ReadPreference>MINIMUM_LATENCY</ReadPreference>
      <TargetId>3e0cd533-f062-4504-8063-c59c4e478549</TargetId>
   </Ds3TargetReadPreference>
   </Data>