HP OneView REST API Reference

racks
racks.html[10/17/2013 10:35:42 AM]
Examples
Each rack resource has a uri representation in the form of
https://{appl}/rest/racks/{id}
Update rack name and size, reset the omitted properties to their
default
values:
https://{appl}/rest/racks/4b4b87e2-eea8-4c90-8eca-b92eaaeecfff
Request body:
{
"id":"4b4b87e2-eea8-4c90-8eca-b92eaaeecfff",
"uuid":"4b4b87e2-eea8-4c90-8eca-b92eaaeecfff",
"name":"MyRack",
"depth":20,
"height":30,
"width":20
}
DELETE Deletes the resource specified by {id}.
Parameter Attributes Description
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
String Returns no content.
Response Codes
REST API Response Codes
Examples
Each rack has a uri representation in the form of
https://{appl}/rest/racks/{id}.
Delete the rack with id 123:
https://{appl}/rest/racks/123
URI: /rest/racks/{id}/deviceTopology
Method API
GET Retrieves the topology information for the rack resource specified by id.
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"