Page tree

Gets all tape media pools.

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": "TapeMediaPoolManagement",
		"method": "getMediaPools",
		"type": "rpc",
		"tid": 1}"

Request Fields

Field
Type
Value(s)
actionstring

TapeMediaPoolManagement

methodstring

getMediaPools

typestringrpc
tidinteger1

Response Sample

{
    "action": "TapeMediaPoolManagement",
    "method": "getMediaPools",
    "tid": "1",
    "type": "rpc",
    "message": null,
    "where": null,
    "cause": null,
    "data": [
        {
            "id": 1,
            "name": "MDA",
            "description": "",
            "defaultOfflineLocationId": 1,
            "autoAddFreeTapes": false
        },
        {
            "id": 33,
            "name": "MDA",
            "description": "Description for MP",
            "defaultOfflineLocationId": 2,
            "autoAddFreeTapes": true
        }
            ]
}

Response Fields

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

data

Json

Tape media pools info. See the table below

data.children

Single tape media pool info.

Field

Value

Description

id

long

Tape media pool ID

name

string

Tape media pool name

description

string

Description of a tape media pool

defaultOfflineLocationId

long

Default offline location ID

autoAddFreeTapes

boolean

true if free tapes will be added to this tape media pool automatically when required

  • No labels