HP OneView REST API Reference

racks
racks.html[10/17/2013 10:35:42 AM]
REST API Response Codes
Examples
GET https://{appl}/rest/racks/schema
URI: /rest/racks/{id}
Method API
GET Gets a single rack resource based upon its uri.
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
Rack The requested resource.
Response Codes
REST API Response Codes
Examples
Each rack has a representation which can be retrieved with the
following
GET request https://{appl}/rest/racks/{id}.
PUT Updates the resource for the specified {id}. The properties that are omitted (not included as part of
the the request body) are reset to their respective default values. The id and uuid properties are
required and cannot be changed. To update existing racks first perform a GET request to retrieve
the current properties, update the desired properties, and then PUT the request body containing
the new representation of the resource.
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"
Request
Body
Attributes Description
Rack Required
Response Description
Rack The resource as updated in the persistence layer.
Response Codes
REST API Response Codes