HP OneView REST API Reference

datacenters
datacenters.html[10/17/2013 10:35:40 AM]
Add a data center including an existing rack:
https://{appl}/rest/datacenters
Request body:
{
"name":"MyDatacenter",
"width":4000,
"depth":5000,
"contents":[{
"resourceUri": "/rest/racks/c14294e3",
"x":1000,
"y":1000
}
]
}
DELETE Deletes the set of datacenters according to the specified parameters. A filter is required to identify
the set of resources to be deleted. The actual deletion will proceed asynchronously. Use the
returned task resource to track the completion and any errors that may occur.
Parameter Attributes Description
filter Experimental This parameter is experimental for this release: While generally
functional when used in simple cases, restrictions might be noted in
the implementation description.
A general filter/query string that narrows the list of resources
returned by a multi-resource GET (read) request and DELETE
(delete) request. The default is no filter (all resources are returned).
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
TaskResourceV2 A task resource used to track the progress of the
delete operation.
Response Codes
REST API Response Codes
Examples
Each data center resource has a uri representation in the form of
https://{appl}/rest/datacenters.
Deletes all data centers with names beginning with 'XYZ':
https://{appl}/rest/datacenters?filter="name matches 'XYZ%25'"
Deletes all data center resources:
https://{appl}/rest/datacenters?filter="id matches '%25'"