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


Hardware Operations : Tape Library and Component Operations : Clean Tape Drive

Clean Tape Drive
Description
Clean the specified tape drive.
Requests
Syntax
PUT http[s]://{datapathDNSname}/_rest_/tape_drive/{tape_drive_id}/?operation=CLEAN
To determine the UUID for a tape drive, see Get Tape Drives.
Request Parameters
Responses
Response Elements
<Data>
   <ErrorMessage>{
string}</ErrorMessage>
   <ForceTapeRemoval>TRUE|FALSE</ForceTapeRemoval>
   <Id>{string}</Id>
   <LastCleaned>{YYYY-MM-DDThh:mm:ss.xxxZ}</LastCleaned>
   <PartitionId>{string}</PartitionId>
   <SerialNumber>{string}</SerialNumber>
   <State>NORMAL|ERROR</State>
   <TapeId>{string}</TapeId>
   <Type>LTO5|LTO6|LTO7|TS1140|TS1150|UNKNOWN</Type>
</Data>
where the response elements are defined as follows:
The tape format and generation of the tape drive.
Values:
LTO5, LTO6, LTO7, TS1140, TS1150, UNKNOWN
Example
Sample Request
This request cleans the tape drive with the UUID ab9146b8-feca-4023-8c45-0d60268ad115.
PUT http://blackpearl-hostname/_rest_/tape_drive/ab9146b8-feca-4023-8c45-0d60268ad115/?operation=CLEAN HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <ErrorMessage/>
   <ForceTapeRemoval>FALSE</ForceTapeRemoval>
   <Id>ab9146b8-feca-4023-8c45-0d60268ad115</Id>
   <LastCleaned/>
   <PartitionId>703a0ad2-a86d-4d2a-97c9-56c2a59a718f</PartitionId>
   <SerialNumber>68001883</SerialNumber>
   <State>NORMAL</State>
   <TapeId/>
   <Type>UNKNOWN</Type>
</Data>