Users Guide

Resources
System
Get the current REST API version
GET /apiversion
Description
The REST API version used in this software release.
Responses
Table 55. Responses
HTTP Code Description Schema
200 OK Response 200
500 Error occurred at operation. “Error” on page 201
Response 200
Table 56. Response 200
Name Schema
version
required
string
Example HTTP response
{
'version" : "1.1.10"
}
Login Request
POST /login
Description
*Required* Initial request to get authenticated against the tape library. The user roles/names of the
library are used. This API command returns after a successful authentication a session-based Bearer
token, which must be attached in the "Authorization" header of every following API command during a
session.
Example using curl:
curl -X GET 'https://<library-ip>:3031/rest/library/baseinfo' -H 'accept:
application/json' -H 'Authorization: Bearer token' "
Parameters
Appendix D. REST API for scalable tape libraries
169