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


Hardware Operations : Tape Library and Component Operations : Get Tape

Get Tape
Description
Get information about the specified tape.
Requests
Syntax
GET http[s]://{datapathDNSname}/_rest_/tape/{tape UUID or barcode}/[?full_details]
To determine the UUID for a tape, see Get Tapes.
Request Parameters
Responses
Response Elements
<Data>
   <AssignedToStorageDomain>TRUE|FALSE</AssignedToStorageDomain>
   <AvailableRawCapacity>{
64-bit integer}</AvailableRawCapacity>
   <BarCode>{string}</BarCode>
   <BucketId>{string}</BucketId>
   <DescriptionForIdentification>
      {string}
   </DescriptionForIdentification>
   <EjectDate>{YYYY-MM-DDThh:mm:ss.xxxZ}</EjectDate>
   <EjectLabel>{string}</EjectLabel>
   <EjectLocation>{string}</EjectLocation>
   <EjectPending>{YYYY-MM-DDThh:mm:ss.xxxZ}</EjectPending>
   <FullOfData>TRUE|FALSE</FullOfData>
   <Id>{string}</Id>
   <LastAccessed>{YYYY-MM-DDThh:mm:ss.xxxZ}</LastAccessed>
   <LastCheckpoint>{string}</LastCheckpoint>
   <LastModified>{YYYY-MM-DDThh:mm:ss.xxxZ}</LastModified>
   <LastVerified>{YYYY-MM-DDThh:mm:ss.xxxZ}</LastVerified>
   <MostRecentFailure> (only if full_details is included)
      <Date>{YYYY-MM-DDThh:mm:ss.xxxZ}</Date>
      <ErrorMessage>{string}</ErrorMessage>
      <Id>{string}</Id>
      <TapeDriveId>{string}</TapeDriveId>
      <TapeId>{string}</TapeId>
      <Type>
         BAR_CODE_CHANGED|BAR_CODE_DUPLICATE|BLOB_READ_FAILED|
         DATA_CHECKPOINT_FAILURE|
         DATA_CHECKPOINT_FAILURE_DUE_TO_READ_ONLY|
         DATA_CHECKPOINT_MISSING|DELAYED_OWNERSHIP_FAILURE|
         DRIVE_CLEAN_FAILED|DRIVE_CLEANED|FORMAT_FAILED|
         GET_TAPE_INFORMATION_FAILED|IMPORT_FAILED|
         IMPORT_FAILED_DUE_TO_TAKE_OWNERSHIP_FAILURE|
         IMPORT_FAILED_DUE_TO_DATA_INTEGRITY|INSPECT_FAILED|
         READ_FAILED| REIMPORT_REQUIRED|SERIAL_NUMBER_MISMATCH|
         VERIFY_FAILED| WRITE_FAILED
      </Type>
   </MostRecentFailure>
   <PartitionId>{string}</PartitionId>
   <PreviousState>
      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|LOST|LTFS_WITH_FOREIGN_DATA|
      OFFLINE|ONLINE_IN_PROGRESS|ONLINE_PENDING|
      PENDING_INSPECTION|SERIAL_NUMBER_MISMATCH|UNKNOWN
   </PreviousState>
   <SerialNumber>{string}</SerialNumber>
   <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|LOST|LTFS_WITH_FOREIGN_DATA|
      OFFLINE|ONLINE_IN_PROGRESS|ONLINE_PENDING|
      PENDING_INSPECTION|SERIAL_NUMBER_MISMATCH|UNKNOWN
   </State>
   <StorageDomainId>{string}</StorageDomainId>
   <TakeOwnershipPending>TRUE|FALSE</TakeOwnershipPending>
   <TotalRawCapacity>{64-bit integer}</TotalRawCapacity>
   <Type>
      LTO5|LTO6|LTO7|LTO_CLEANING_TAPE|TS_JC|TS_JD|TS_JK|TS_JL|
      TS_JY|TS_JZ|TS_CLEANING_TAPE|UNKNOWN|FORBIDDEN
   </Type>
   <VerifyPending>
      CRITICAL|URGENT|HIGH|NORMAL|LOW|BACKGROUND
   </VerifyPending>
   <WriteProtected>TRUE|FALSE</WriteProtected>
</Data>
where the response elements are defined as follows:
The date and time that the BlackPearl gateway discovered that the tape was ejected, in the format YYYY-MM-DDThh:mm:ss.xxxZ. If the parameter is empty, the tape has not been ejected.
The date and time that the tape was put in the queue to be ejected in the format YYYY-MM-DDThh:mm:ss.xxxZ. If the parameter is empty, the tape has not been queued to be ejected or the eject has started and is no longer cancelable.
The last manufacturer-assigned in the format YYYY-MM-DDThh:mm:ss.xxxZ. If this attribute is null, then the object has not yet been completely received into cache.
The type of tape error message. Values: BAR_CODE_CHANGED, BAR_CODE_DUPLICATE, BLOB_READ_FAILED, DATA_CHECKPOINT_FAILURE, DATA_CHECKPOINT_FAILURE_DUE_TO_READ_ONLY, DATA_CHECKPOINT_MISSING, DELAYED_OWNERSHIP_FAILURE, DRIVE_CLEAN_FAILED, DRIVE_CLEANED, FORMAT_FAILED, GET_TAPE_INFORMATION_FAILED, IMPORT_FAILED, IMPORT_FAILED_DUE_TO_TAKE_OWNERSHIP_FAILURE, IMPORT_FAILED_DUE_TO_DATA_INTEGRITY, INSPECT_FAILED, READ_FAILED, REIMPORT_REQUIRED, SERIAL_NUMBER_MISMATCH, VERIFY_FAILED, WRITE_FAILED
§
TRUE — The foreign tape was imported when WriteProtected was TRUE, preventing the tape from being owned.
§
FALSE — The tape was imported successfully.
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 information about the tape with the UUID 0571b314-7f9d-4a9f-9e4b-98252c7b5266.
GET http://blackpearl-hostname/_rest_/tape/0571b314-7f9d-4a9f-9e4b-98252c7b5266/ HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <AssignedToStorageDomain>FALSE</AssignedToStorageDomain>
   <AvailableRawCapacity>10000</AvailableRawCapacity>
   <BarCode>018375L5</BarCode>
   <BucketId/>
   <DescriptionForIdentification/>
   <EjectDate/>
   <EjectLabel/>
   <EjectLocation/>
   <EjectPending/>
   <FullOfData>FALSE</FullOfData>
   <Id>0571b314-7f9d-4a9f-9e4b-98252c7b5266</Id>
   <LastAccessed/>
   <LastCheckpoint>
      83f811df-927b-4543-8dc8-8ca2ed002fcb:3
   </LastCheckpoint>
   <LastModified/>
   <LastVerified/>
   <PartitionId>26ef24cd-15f7-4aa0-aead-34abed82c60b</PartitionId>
   <PreviousState/>
   <SerialNumber/>
   <State>NORMAL</State>
   <StorageDomainId/>
   <TakeOwnershipPending>FALSE</TakeOwnershipPending>
   <TotalRawCapacity>1425000103936</TotalRawCapacity>
   <Type>LTO5</Type>
   <VerifyPending/>
   <WriteProtected>FALSE</WriteProtected>
</Data>