HP OneView REST API Reference

users
users.html[10/17/2013 10:35:59 AM]
DELETE Deletes user with name as testUser.
Request Header Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the
current release, this must be set to "X-API-Version:3"
Response Description
void
Response Codes
REST API Response Codes
Examples
DELETE https://{appl}/rest/users/{userName}
Example :
https://{app1}/rest/users/testUser
GET Gets details of the local user from the appliance.
Parameter Attributes Description
view Optional Return a specific subset of the attributes of the resource or collection
by specifying the name of a predefined view. The default view is
expand (show all attributes of the resource, and all elements of
collections or resources).
fields Optional
Request
Header
Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the
current release, this must be set to "X-API-Version:3"
Response Description
UserV2 Details of the user
Response Codes
REST API Response Codes
Examples
Example :
Gets details of the local user for the given user name
GET https://{appl}/rest/users/{userName}
Response Body:
{
"userName": "administrator",
"fullName": "Default appliance administrator",
"emailAddress": "",
"officePhone": "011-123456789",
"mobilePhone": "0119946053369",
"enabled": true