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


Hardware Operations : Tape Library and Component Operations : Get Tape Partitions

Get Tape Partitions
Description
Get information about all tape partitions. Use parameters as selection criteria to return a subset of the list.
Requests
Syntax
GET http[s]://{datapathDNSname}/_rest_/tape_partition/[?full_details][&import_export_configuration=NOT_SUPPORTED| SUPPORTED][&last_page][&library_id={string}][&name={string}]
[&page_length={32-bit integer}][&page_offset={32-bit integer}] [&page_start_marker={string}][&quiesced=NO|PENDING|YES] [&serial_number={string}][&state=ONLINE|OFFLINE]
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>
   <TapePartition>
      <DriveType>LTO5|LTO6|LTO7|TS1140|TS1150|UNKNOWN</DriveType>
      <ErrorMessage>{string}</ErrorMessage>
      <Id>{string}</Id>
      <ImportExportConfiguration>
         SUPPORTED|NOT_SUPPORTED
      </ImportExportConfiguration>
      <LibraryId>{string}</LibraryId>
      <Name>{string}</Name>
      <Quiesced>NO|PENDING|YES</Quiesced>
      <SerialNumber>{string}</SerialNumber>
      <State>ONLINE|OFFLINE</State>
      <TapeTypes> (only if full_details is included)
         LTO5|LTO6|LTO7|LTO_CLEANING_TAPE|TS_JC|TS_JD|TS_JK|TS_JL|          TS_JY|TS_JZ|TS_CLEANING_TAPE|UNKNOWN|FORBIDDEN
      </TapeTypes>
   </TapePartition>
   ...
</Data>
where the response elements are defined as follows:
Values: LTO5, LTO6, LTO7, TS1140, TS1150, UNKNOWN
The tape format and generation of the tape cartridge.
Values:
LTO5, LTO6, LTO7, LTO_CLEANING_TAPE, TS_JC, TS_JD, TS_JK, TS_JL, TS_JY, TS_JZ, TS_CLEANING_TAPE, UNKNOWN, FORBIDDEN
Example
Sample Request
This request retrieves a list of tape partitions.
GET http://blackpearl-hostname/_rest_/tape_partition/ HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <TapePartition>
      <ErrorMessage/>
      <Id>9a0a67cd-9e42-43fc-afa6-95cb3f630251</Id>
      <ImportExportConfiguration>
         SUPPORTED
      </ImportExportConfiguration>
      <LibraryId>ab5b482f-1119-4a96-ab72-9e8ceda7d22f</LibraryId>
      <Name>Tape partition</Name>
      <Quiesced>NO</Quiesced>
      <SerialNumber>9110002CB5</SerialNumber>
      <State>ONLINE</State>
   </TapePartition>
   ...
</Data>