REST API drive up
How to use the REST API to start drive up tasks.
- Request URLs
-
/ibmsa/v2/drives/up /ibmsa/v2/drive/up
- Method
- PUT
- Request data
-
- drive: <string>
-
The serial number of the tape drive to get up.
- library: <string>
-
The name of the tape library where the tape drive is installed. In a single tape library configuration, this option can be omitted.
- Response data
-
- status: <string>
- If the task got created successfully, it will return accepted.
- task_id: <number>
- The ID of the task created, monitor its progress using REST API task information.
- Example
-
- Drive up
-
PUT /v2/drives/up -d '{"drive":"VDRIVE0000", "library":"LIBLL0"}' -b cookies.txt-H 'Content-Type:application/json'