Create Standalone Tape Drive
Creates a new standalone tape drive.
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
This is an example of creating a standalone tape drive in a local folder on the assigned Transporter host.
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie @cookies.txt \
--data "{
"action": "TapeDriveManagement",
"method": "create",
"data": [{
"id": null,
"blockSize": 32768,
"compression": "HARDWARE_BASED",
"locationId": 1,
"locationName": "",
"lockReasons": null,
"mediaPoolId": null,
"mediaPoolName": null,
"name": "Standalone_Drive_2",
"offlineLocationId": 1,
"offlineLocationName": null,
"text": "",
"transporterId": 1,
"transporterName": "",
"drive": {
"checked": false,
"deviceName": "stdrive_2",
"disabledCheck": false,
"discovered": false,
"icon": "",
"iconCls": "iconTd24 icon24_0",
"index": "",
"path": "stdrive_2",
"previousIndex": "",
"scsiAddress": "2:2:2:2",
"serialNumber": "TQLUmG5pEiNuE3JW",
"text": "",
"uuid": "17453fce-e58d-4ed1-a926-65b8ff171002" }
}],
"type": "rpc",
"tid": 1
}"
Request Fields
Field
|
Type
|
Value(s)
|
Description |
---|---|---|---|
action
|
string |
|
The action that is invoked |
method
|
string |
|
The method that is invoked |
data
|
array |
|
Data of a tape drive to be created |
type
|
string | rpc
|
Type of communication protocol |
tid
|
int | 1
|
Transaction ID. Used to identify the request by both the client and the server |
data
Field
|
Type
|
Description
|
---|---|---|
|
string |
Compression level of the tape device. Possible values: |
|
int |
Standalone tape drive ID. For the |
|
string |
Standalone tape drive name |
|
long |
ID of the assigned Transporter |
|
string |
Name of the assigned Transporter. |
|
int |
Block size of the current tape device. Default value: |
|
int |
ID of the location of standalone tape drive |
|
string |
Name of the location of standalone tape drive. Default value: " |
|
int |
ID of the media pool of tape standalone drive |
|
string |
Name of the media pool |
|
int |
ID of the location for tape ejected from this standalone tape drive |
|
string |
Name of the location for tape ejected from this standalone tape drive |
drive |
|
|
|
string |
The standalone tape drive UUID |
|
string |
The standalone tape drive name |
|
boolean |
Used only for handling the product GUI: |
|
boolean |
Used only for handling the product GUI: |
|
string |
Path of the standalone tape drive |
|
string |
SCSI address of the standalone tape drive |
|
string |
The standalone tape drive serial number |
Response Sample
{
"action": "TapeDriveManagement",
"method": "create",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": 66
}
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 |
|
long |
ID of the standalone tape drive, which is created |