HP OneView REST API Reference

id-pools
id-pools.html[10/17/2013 10:35:17 AM]
URI: /rest/id-pools/{id}/allocator
Method API
PUT Allocates one or more IDs from a pool. The allocator returned contains the list of allocated ids.
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
Response Description
Allocator the Allocator DTO with the allocated Ids
Response Codes
REST API Response Codes
Examples
The following example shows how to allocate IDs from a pool resource
whose identifier is {id}
PUT : https://{appl}/rest/id-pools/{id}/allocator
Request Body: {"count":5}
URI: /rest/id-pools/{id}/collector
Method API
PUT Collects one or more IDs to be returned to a pool. The collector DTO that is returned contains the
list of collected IDs
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
Collector Required
Response Description
Collector the Collector DTO with the count of IDs collected
Response Codes
REST API Response Codes
Examples