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


Spectra S3 Bucket, Object, and Job Operations : Spectra S3 Bucket Operations : Get Buckets - Spectra S3

Get Buckets - Spectra S3
Description
Shows information, such as logical used capacity and data policy, about all buckets configured on the BlackPearl system. Use parameters as selection criteria to return information for a subset of all buckets.
Requests
Syntax
GET http[s]://{datapathDNSname}/_rest_/bucket[?data_policy_id={string}][&last_page][&name={string}][&page_length={32‑bit integer}][&page_offset={32‑bit integer}][&page_start_marker={string}][&user_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.
a.
Responses
Response Elements
<Data>
   <Bucket>
      <CreationDate>{
YYYY-MM-DDThh:mm:ss.xxxZ}</CreationDate>
      <DataPolicyId>{string}</DataPolicyId>
      <Id>{string}</Id>
      <LastPreferredChunkSizeInBytes>
         {64‑bit integer}
      </LastPreferredChunkSizeInBytes>
      <LogicalUsedCapacity>{64‑bit integer}</LogicalUsedCapacity>
      <Name>{string}</Name>
      <UserId>{string}</UserId>
   </Bucket>
   ...
</Data>
where the response elements are defined as follows:
Example
Sample Request
This request gets data policy and logical used capacity information for all buckets.
GET http://blackpearl-hostname/_rest_/bucket/ HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <Bucket>
      <CreationDate>2015-07-22 14:22:50.284</CreationDate>
      <DataPolicyId>
         704401b4-03a1-4752-9329-08e8c77fce23
      </DataPolicyId>
      <Id>ccef9b22-aa77-449e-9f4f-3fe6ecc4be03</Id>
      <LastPreferredChunkSizeInBytes/>
      <LogicalUsedCapacity>1024</LogicalUsedCapacity>
      <Name>bucket1</Name>
      <UserId>7bd66b10-1d8e-49ce-b7ef-c680432dbfc8</UserId>
   </Bucket>
   ...
</Data>