Page tree

Gets locations of all tapes.

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
curl --request POST \
	 --url https://<Director_IP_address>:4443/c/router \
	 --header "content-type: application/json" \
	 --cookie @cookies.txt \
	 --data "{
		"action": "TapeLocationManagement",
		"method": "getLocations",
		"type": "rpc",
		"tid": 1}"

Request Fields

Field
Type
Value(s)
actionstring

TapeLocationManagement

methodstring

getLocations

typestringrpc
tidint1

Response Sample

{
    "action": "TapeLocationManagement",
    "method": "getLocations",
    "tid": "1",
    "type": "rpc",
    "message": null,
    "where": null,
    "cause": null,
    "data": [
        {
            "id": 2,
            "name": "Japan",
            "description": "location in japan"
        },
        {
            "id": 1,
            "name": "My office",
            "description": "My office"
        }
            ]
}

Response Fields

Field
Value
Description
messagestringMessage if the request failed
wherestringReference to the method where the problem occurred
causestringCause of failure

data

Json

Tape locations info. See the table below

data.children

Single tape location info.

Field

Value

Description

id

long

Tape location ID

name

string

Tape location name

description

string

Tape location description

  • No labels