HP OneView REST API Reference

datacenters
datacenters.html[10/17/2013 10:35:40 AM]
URI: /rest/datacenters/schema
Method API
GET Gets a JSON-formatted schema describing the resource.
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
JsonSchema The JSON schema of the resource.
Response Codes
REST API Response Codes
Examples
GET https://{appl}/rest/datacenters/schema
URI: /rest/datacenters/{id}
Method API
GET Gets a single data center 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
Datacenter The requested resource.
Response Codes
REST API Response Codes
Examples
Each data center has a representation which can be
retrieved with the following
GET request https://{appl}/rest/datacenters/{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 datacenters 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