Get Resource Pool
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
Path Parameters
Path Parameters
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
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Response
Response BodyResponse Body
Information about the resource pool.
{
"cpu_allocation": {
"expandable_reservation": false,
"limit": 0,
"reservation": 0,
"shares": {
"level": "LOW",
"shares": 0
}
},
"memory_allocation": {
"expandable_reservation": false,
"limit": 0,
"reservation": 0,
"shares": {
"level": "LOW",
"shares": 0
}
},
"name": "string",
"resource_pools": [
"string"
]
}
Name of the vCenter Server resource pool.
Identifiers of the child resource pools contained in this resource pool. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: ResourcePool. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: ResourcePool.
Resource allocation information for CPU. This field is optional because it was added in a newer version than its parent node.
Resource allocation information for memory. This field is optional because it was added in a newer version than its parent node.
Errors
com.vmware.vapi.std.errors.unauthorized : If the user doesn’t have the required privileges.
com.vmware.vapi.std.errors.not_found : If the resource pool indicated by resourcePool does not exist.
com.vmware.vapi.std.errors.service_unavailable : If the system is unable to communicate with a service to complete the request.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: get
x-vmw-doc-deprecated-path: /rest/vcenter/resource-pool/{resource_pool}
x-vmw-doc-operation: get