HP StoreEver ESL G3 Tape Libraries User Manual
Page 37

available, use the following URI:
aml/physicalLibrary/segments” (page 42)
Example 1. To add a drive to a partition you would send
the request shown below.
Example 2. Add two storage segments and one IE segment.
Example 3. The above two requests combined into one
single request.
Media Type
Request: N/Aapplication/xml and
application/octet-stream
Response: application/xml and
application/octet-stream
Parameters
N/A
Response Code
200, 401, 403, 404, and 500
XML Request Data (Example 1)
<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
<ns2:segmentList
xmlns:ns2="http://automatedMediaLibrary/">
<segment>
<coordinate>
<frame>1</frame>
<rack>1</rack>
<section>2</section>
<column>1</column>
<row>1</row>
<type>4</type>
</coordinate>
</segment>
</ns2:segmentList>
XML Request Data (Example 2)
<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
<ns2:segmentList
xmlns:ns2="http://automatedMediaLibrary/">
<segment>
<coordinate>
<frame>0</frame>
<rack>1</rack>
<section>7</section>
<column>3</column>
<row>1</row>
<type>2</type>
</coordinate>
</segment>
<segment>
<coordinate>
<frame>0</frame>
<rack>1</rack>
<section>8</section>
<column>3</column>
<row>1</row>
<type>2</type>
</coordinate>
</segment>
<segment>
<coordinate>
<frame>1</frame>
<rack>2</rack>
<section>2</section>
<column>3</column>
URI: aml/partition/{name}/segments
37