Get Single Tape Library
Gets info of a single tape library by its ID.
Endpoint
https://<Director_IP_address>:4443/c/router
Tenant Endpoint
For tenants of the multi-tenant product the endpoint must be:https://<Director_IP_address>:4443/t/<tenant_UUID>/c/router
Request Example
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie @cookies.txt \
--data "{
"action": "TapeLibraryManagement",
"method": "getLibrary",
"data": [3],
"type": "rpc",
"tid": 1
}"
Request Fields
Field
|
Type
|
Value(s)
|
---|---|---|
action
|
string |
|
method
|
string |
|
data
|
array |
ID of the tape library |
type
|
string | rpc
|
tid
|
int | 1 |
Response Sample
{
"action": "TapeLibraryManagement",
"method": "getLibrary",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": {
"id": 3,
"name": "VTl",
"transporterId": 1,
"transporterName": "1.1.1.1",
"compression": "HARDWARE_BASED",
"blockSize": 262144,
"locationId": 1,
"locationName": "My office",
"mediaPoolId": null,
"mediaPoolName": null,
"offlineLocationId": 1,
"offlineLocationName": "My office",
"changer": {
"id": 1,
"deviceName": "HP-Compag-5000",
"scsiAddress": "1:1:1:1",
"serialNumber": "qMB3XTGEZdaRjfMT",
"path": "library_2",
"uuid": "67453fce-e58d-4ed1-a926-65b8ff16202",
"drives": [
{
"id": 1,
"uuid": "10453fce-e58d-4ed1-a926-65b28f17001",
"path": "library_2_drive_0",
"index": 0,
"deviceName": null,
"scsiAddress": "1:1:1:2",
"serialNumber": "df46KWKPsayeFocu" },
{
"id": 2,
"uuid": "00653fce-e58d-4ed1-28hj-65b28f17555",
"path": "library_2_drive_1",
"index": 1,
"deviceName": null,
"scsiAddress": "1:1:1:2",
"serialNumber": "mapurxrowxb3d9dy" }
],
"discovered": false,
"checked": false
},
"lockReasons": []
}
}
Response Fields
Field
|
Value
|
Description
|
---|---|---|
message
|
string | Message if the request failed |
where
|
string | Reference to the method where the problem occurred |
cause
|
string | Cause of failure |
|
Json |
Tape library info. See the table below |
data
Field |
Type |
Description |
---|---|---|
|
string |
Compression level of the tape device. Possible values: |
|
int |
Tape library ID. For the |
|
string |
Tape library name |
|
long |
ID of the assigned Transporter |
|
string |
Name of the assigned Transporter |
|
int |
Block size of the current tape device. Default value: 256 KB |
|
int |
ID of the location of a tape library |
|
string |
Name of the location of the tape library. Default value: "My office" |
|
int |
ID of the media pool of tape library |
|
string |
Name of the media pool of tape library |
|
int |
ID of the location for tapes ejected from this tape library |
|
string |
Name of the location for tapes ejected from this tape library |
|
|
|
|
long |
Changer ID |
|
string |
Tape device name |
|
string |
SCSI address |
|
string |
Changer serial number |
|
string |
Path of the changer |
|
string |
Changer UUID |
|
boolean |
|
|
boolean |
|
|
|
|
|
string |
Tape library drive UUID |
|
long |
Tape library drive ID |
|
string |
Tape library drive name |
|
string |
Path of the tape library drive |
|
string |
SCSI address |
|
string |
Tape library drive serial number |