Get Resource Pool
If vSphere APIs begin with /rest (vs /api), any maps are consumed/returned instead as arrays of objects, each containing a key and a value property field.
Retrieves information about the resource pool indicated by resourcePool. if you do not have all of the privileges described as follows: - The resource ResourcePool referenced by the parameter resourcePool requires System.Read.
Request
URLURL
https://{api_host}/rest/vcenter/resource-pool/{resource_pool}
Parameters
Parameters
string
resource_pool
Required
Identifier of the resource pool for which information should be retrieved.
The parameter must be an identifier for the resource type: ResourcePool.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Example: b00db39f948d13ea1e59b4d6fce56389
Response
Response
Response BodyResponse Body
200 OK returns
ResourcePoolGetResponseBody
of type application/json
Information about the resource pool.
{
"value": {
"cpu_allocation": {
"expandable_reservation": false,
"limit": 0,
"reservation": 0,
"shares": {
"level": "enum",
"shares": 0
}
},
"memory_allocation": {
"expandable_reservation": false,
"limit": 0,
"reservation": 0,
"shares": {
"level": "enum",
"shares": 0
}
},
"name": "string",
"resource_pools": [
"string"
]
}
}
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/vcenter/resource-pool/{resource_pool}
Errors
401
com.vmware.vapi.std.errors.unauthenticated : If the user can not be authenticated. | com.vmware.vapi.std.errors.unauthorized : If the user doesn't have the required privileges.
404
com.vmware.vapi.std.errors.not_found : If the resource pool indicated by resourcePool does not exist.
503
com.vmware.vapi.std.errors.service_unavailable : If the system is unable to communicate with a service to complete the request.
Resource Pool Operations
post
patch
delete