Update Resource Pool
Updates the configuration of a resource pool. if you do not have all of the privileges described as follows: - The resource ResourcePool referenced by the parameter resourcePool requires Resource.EditPool.
Request
URLURL
Path Parameters
Path Parameters
Identifier of the resource pool. 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"
Request Body
Specification for updating the configuration of 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 allocation for CPU. if unset or empty, the CPU allocation of the resource pool will not be changed.
Resource allocation for memory. if unset or empty, the memory allocation of the resource pool will not be changed.
Name of the resource pool. if unset or empty, the name of the resource pool will not be changed.
Authentication
Errors
Errors
com.vmware.vapi.std.errors.invalid_argument : If any of the specified parameters is invalid.
com.vmware.vapi.std.errors.unauthorized : If the user doesn’t have the required privileges.
com.vmware.vapi.std.errors.error : If the system reports an error while responding to the request. | com.vmware.vapi.std.errors.unable_to_allocate_resource : If any of the resources needed to reconfigure the resource pool could not be allocated.
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: patch
x-vmw-doc-deprecated-path: /rest/vcenter/resource-pool/{resource_pool}
x-vmw-doc-operation: update