Uri: aml/user, Uri: aml/users, Uri: aml/user uri: aml/users – HP StoreEver ESL G3 Tape Libraries User Manual
Page 52

Description
Update a user resource instance with the username represented by the
parameter name.
Media Type
Request: application/xml and application/json
Response: application/xml and application/json
Parameters
N/A
Response Code
200, 401, 403, 404, and 500
XML Request Data
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:user xmlns:ns2=”http://automatedMediaLibrary/”>
<role>1</role>
<partitionAccess>Partition Name</partitionAccess>
</ns2:user>
Method
DELETE
Description
Delete the user resource instance whose username is represented by the
URI path template “name”.
Media Type
Request: N/A
Response: application/xml and application/json
Parameters
N/A
Response Code
200, 401, 404, and 500
XML Response
See
“URI: aml/user_name” (page 102)
for the XML Response code.
URI: aml/user
Method
GET
Description
Retrieve the user resource instance based on the cookie header parameter.
Media Type
Request: N/A
Response: application/xml and application/json
Parameters
N/A
Response Code
200, 401, and 500
XML Response
See
for the XML Response code.
URI: aml/users
Method
GET
Description
Retrieve the user resource instances.
Media Type
Request: N/A
Response: application/xml and application/json
Parameters
N/A
Response Code
200, 401, and 500
Method
POST
Description
Create a new user resource instance. You must specify the name,
password, and role. The valid user roles are 0 (ADMIN) or 1 (USER).
If you do not specify a role element an ADMIN user will be created.
Media Type
Request: application/xml and application/json
Response: application/xml and application/json
Parameters
N/A
Response Code
200, 401, 403, and 500
52
Resource