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


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

Get Tape Drives
Description
Get information about all tape drives. Use parameters as selection criteria to return a subset of the list.
Requests
Syntax
GET http[s]://{datapathDNSname}/_rest_/tape_drive[?last_page][&page_length={32‑bit integer}][&page_offset={32‑bit integer}][&page_start_marker={string}][&partition_id={string}][&reserved_task_type=ANY|READ|WRITE][&serial_number={string}][&state=ERROR|NORMAL| NOT_COMPATIBLE_IN_PARTITION_DUE_TO_NEWER_TAPE_DRIVES|OFFLINE][&type=LTO5|LTO6|LTO7|LTO8|LTOM8|TS1140|TS1150|TS1155|UNKNOWN]
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.
The status of the tape drive. Values: ERROR, NORMAL, NOT_COMPATIBLE_IN_PARTITION_DUE_TO_NEWER_TAPE_DRIVES, OFFLINE
The tape format and generation of the tape drive.
Values:
LTO5, LTO6, LTO7, LTO8, TS1140, TS1150, TS1155, UNKNOWN
a.
Responses
Response Elements
<Data>
   <TapeDrive>
      <CleaningRequired>TRUE|FALSE</CleaningRequired>
      <ErrorMessage>{
string}</ErrorMessage>
      <ForceTapeRemoval>TRUE|FALSE</ForceTapeRemoval>
      <Id>{string}</Id>
      <LastCleaned>{YYYY-MM-DDThh:mm:ss.xxxZ}</LastCleaned>
      <PartitionId>{string}</PartitionId>
      <Quiesced>NO|PENDING|YES</Quiesced>
      <ReservedTaskType>ANY|READ|WRITE</ReservedTaskType>
      <SerialNumber>{string}</SerialNumber>
      <State>
         ERROR|NORMAL|
         NOT_COMPATIBLE_IN_PARTITION_DUE_TO_NEWER_TAPE_DRIVES|
         OFFLINE
      </State>
      <TapeId>{string}</TapeId>
      <Type>
         LTO5|LTO6|LTO7|LTO8|LTOM8|TS1140|TS1150|TS1155|UNKNOWN
      </Type>
   </TapeDrive>
   ...
</Data>
where the response elements are defined as follows:
The status of the tape drive. Values: ERROR, NORMAL, NOT_COMPATIBLE_IN_PARTITION_DUE_TO_NEWER_TAPE_DRIVES, OFFLINE
The tape format and generation of the tape drive.
Values:
LTO5, LTO6, LTO7, LTO8, TS1140, TS1150, TS1155, UNKNOWN
Example
Sample Request
This request retrieves information about all tape drives connected to the Converged Storage System.
GET http://blackpearl-hostname/_rest_/tape_drive/ HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <TapeDrive>
      <CleaningRequired>FALSE</CleaningRequired>
      <ErrorMessage/>
      <ForceTapeRemoval>FALSE</ForceTapeRemoval>
      <Id>63d3dbd4-baa8-4e8f-a40d-42a6c3e3bf95</Id>
      <LastCleaned/>
      <PartitionId>
         4e848fa9-6cf5-45c4-ade2-16d96377401f
      </PartitionId>
      <Quiesced>NO</Quiesced>
      <ReservedTaskType>ANY</ReservedTaskType>
      <SerialNumber>68001883</SerialNumber>
      <State>NORMAL</State>
      <TapeId>2d4a2794-8617-4cdc-9e8f-0530fa1abbf2</TapeId>
      <Type>LTO5</Type>
   </TapeDrive>
   ...
</Data>