Page tree

Protects or unprotects a tape cartridge. Allows processing several tape cartridges.

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": "TapeCartridgeManagement",
			"method": "protect",
			"data": [false, [2],[6]],
			"type": "rpc",
			"tid": 1
           }"

Request Fields

Field
Type
Value(s)
actionstring

TapeCartridgeManagement

methodstring

protect

dataarray

Data of tape cartridges. See the table below

typestringrpc
tidint1

data

Field
Type
Description

isProtect

boolean

true for protecting the tape cartridge(s) from data overwriting. false for unprotecting the tape cartridge(s)

ids

array of int

Tape cartridge ID(s)

Response Sample

{
	"action": "TapeCartridgeManagement"
    "method": "protect"
    "cause": null
    "data": null
    "message": null
    "tid": 1
    "type": "rpc"
    "where": null
}

Response Fields

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