HP OneView REST API Reference

id-pools/vmac/ranges
id-pools-vmac-ranges.html[10/17/2013 10:35:17 AM]
REST API Response Codes
Examples
The following example shows how to get a vmac range whose identifier is
{range-id}
GET https://{appl}/rest/id-pools/vmac/ranges/{range-id}
PUT Enables or disables a vmac range.
Parameter Attributes Description
force Optional If set to true, the operation completes even if there are network
connectivity issues or resource errors. The default is false.
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
IdRange Required
Response Description
IdRange The DTO describing the range.
Response Codes
REST API Response Codes
Examples
The following example shows how to update a vmac range whose identifier
is {range-id}
PUT https://{appl}/rest/id-pools/vmac/ranges/{range-id}
Request Body:
{
"type": "Range",
"enabled": true
}
URI: /rest/id-pools/vmac/ranges/{id}/allocated-fragments
Method API
GET Returns all fragments that have been allocated from a vmac range.
Parameter Attributes Description
start Optional The 0-based index of the first resource to return (start=0 starts with
the first available resource). If the specified count does not return all
resources within the maximum allowed time (see count), use the
start parameter to view additional resource pages. The default value
for start is 0 (first available resource).