beautypg.com

Uri: aml/physicallibrary/segments – HP StoreEver ESL G3 Tape Libraries User Manual

Page 42

background image

Range parameters:

start—0-n

length—1-n or -1 for all media.

frame—0- maximum number of frames

rack—1 or 2

So to retrieve all elements in one call,
aml/physicalLibrary/elements?start=0&length=-1

which is the

default if no range is specified.

To retrieve all elements belonging to partition named TEST
aml/physicalLibrary/elements?partition=TEST

.

To retrieve all ie elements that contain media
aml/physicalLibrary/elements?type=ie&state=full

.

Response Code

200, 401, and 500

XML Response

See

“URI: aml/physicalLibrary/elements” (page 85)

for the XML Response

code.

URI: aml/physicalLibrary/segments

Method

GET

Description

Retrieve the segment resource instances.

Media Type

Request: N/A

Response: application/xml and application/json

Parameters

Query parameters names are partition, status, type, start, length, frame, and
rack with the following valid values:

partition—name of partition

status—owned by a partition or not

available

used

type—storage, ie, drive, or xie

Range parameters:

start—0-n

length—1-n or -1 for all media.

frame—0- maximum number of frames

rack—1 or 2

So to retrieve all elements in one call,
aml/physicalLibrary/segments?start=0&length=-1

which is the

default if no range is specified.

To retrieve all elements belonging to partition named LL1
aml/physicalLibrary/segments?partition=LL1

.

To retrieve all ie segments aml/physicalLibrary/segments?type=ie.

Response Code

200, 401, and 500

XML Response

See

“URI: aml/physicalLibrary/segments” (page 86)

for the XML Response

code.

42

Resource