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


Miscellaneous Operations : Capacity Operations : Get Bucket Capacity Summary

Get Bucket Capacity Summary
Description
Get the capacity summary for the specified bucket on the specified storage domain. Use parameters as selection criteria to return capacity information for a portion of the bucket.
Requests
Syntax
GET http[s]://{datapathDNSname}/_rest_/capacity_summary?bucket_id={string}&storage_domain_id={string}[&pool_health=OK|DEGRADED][&pool_state=BLANK|NORMAL|LOST|FOREIGN|IMPORT_PENDING|IMPORT_IN_PROGRESS][&pool_type=NEARLINE|ONLINE][&tape_state=NORMAL|BAD|BAR_CODE_MISSING|DATA_CHECKPOINT_MISSING| EJECT_FROM_EE_PENDING|EJECT_TO_EE_IN_PROGRESS|EJECTED|FOREIGN| FORMAT_IN_PROGRESS|FORMAT_PENDING|IMPORT_IN_PROGRESS|INCOMPATIBLE|INSPECTION_PENDING|LOST|LTFS_WITH_FOREIGN_DATA|OFFLINE| ONLINE_IN_PROGRESS|ONLINE_PENDING|SERIAL_NUMBER_MISMATCH|UNKNOWN][&tape_type=LTO5|LTO6|LTO7|LTO8|LTOM8|LTO_CLEANING_TAPE|TS_JC| TS_JY| TS_JK|TS_JD|TS_JZ|TS_JL|TS_CLEANING_TAPE|UNKNOWN|FORBIDDEN]
Request Parameters
The type of pool.
Values:
NEARLINE (ArcticBlue), ONLINE (SAS)
The tape format and generation of the tape cartridge.
Values:
LTO5, LTO6, LTO7, LTO8, LTOM8, LTO_CLEANING_TAPE, TS_JC, TS_JD, TS_JK, TS_JL, TS_JY, TS_JZ, TS_CLEANING_TAPE, UNKNOWN, FORBIDDEN
Responses
Response Elements
<Data>
   <Pool>
      <PhysicalAllocated>{
64‑bit integer}</PhysicalAllocated>
      <PhysicalFree>{64‑bit integer}</PhysicalFree>
      <PhysicalUsed>{64‑bit integer}</PhysicalUsed>
   </Pool>
   <Tape>
      <PhysicalAllocated>{64‑bit integer}</PhysicalAllocated>
      <PhysicalFree>{64‑bit integer}</PhysicalFree>
      <PhysicalUsed>{64‑bit integer}</PhysicalUsed>
   </Tape>
</Data>
where the response elements are defined as follows:
Example
Sample Request
This request gets the capacity summary for the bucket named “bucket1” on the storage domain named “LTO-5Tape”.
GET http://blackpearl-hostname/_rest_/capacity_summary?bucket_id=bucket1&storage_domain_id=LTO-5Tape HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <Pool>
      <PhysicalAllocated>0</PhysicalAllocated>
      <PhysicalFree>0</PhysicalFree>
      <PhysicalUsed>0</PhysicalUsed>
   </Pool>
   <Tape>
      <PhysicalAllocated>800</PhysicalAllocated>
      <PhysicalFree>200</PhysicalFree>
      <PhysicalUsed>600</PhysicalUsed>
   </Tape>
</Data>