HP OneView REST API Reference

enclosures
enclosures.html[10/17/2013 10:35:21 AM]
Header
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
EnclosureList Returns a list of enclosure resources.
Response Codes
REST API Response Codes
Examples
Get a subset of enclosures based on default sorting and filtering. The
subset starts at the 11th enclosure, and returns up to 10 enclosures.
GET https://{appl}/rest/enclosures?start=10&count=10
Get a list of enclosures that have OA firmware version less
than 4.00, sorted by name.
GET https://{appl}/rest/enclosures?
start=5&count=7&filter="firmwareVersion<'4.00'"&sort="name:asc"
URI: /rest/enclosures/schema
Method API
GET Gets the JSON schema of the enclosure 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 enclosure resource.
Response Codes
REST API Response Codes
Examples
GET https://{appl}/rest/enclosures/schema
URI: /rest/enclosures/{id}
Method API
GET Gets the enclosure resource with the specified 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"