HP OneView REST API Reference

id-pools
id-pools.html[10/17/2013 10:35:17 AM]
The following example shows how to collect IDs to be returned
back to a pool resource whose identifier is {id}
PUT : https://{appl}/rest/id-pools/{id}/collector
Request Body:
{
"idList": [
"E2:89:E8:B0:00:00",
"E2:89:E8:B0:00:01",
"E2:89:E8:B0:00:02",
"E2:89:E8:B0:00:03",
"E2:89:E8:B0:00:04"
]
}
URI: /rest/id-pools/{id}/generate
Method API
GET Generates a random range and returns it. Used to generate a range for validation prior to actually
creating it.
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
Fragment The DTO containing the range start and end
Response Codes
REST API Response Codes
Examples
The following example shows how to generate IDs from a pool resource
whose identifier is {id}
GET : https://{appl}/rest/id-pools/{id}/generate
URI: /rest/id-pools/{id}/validate
Method API
PUT Validates a set of user specified IDs that you want to reserve in this pool. This API can be used to
check if the specified IDs can be allocated.
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
Allocator Required The DTO which specifies the list of IDs to be
validated.