Create Resource Pool
Creates a resource pool. if you do not have all of the privileges described as follows: - The resource ResourcePool referenced by the attribute ResourcePool.CreateSpec.parent requires Resource.CreatePool.
Request
URLURL
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
Specification of the new resource pool to be created, see ResourcePool.CreateSpec.
{
"name": "string",
"parent": "string"
}
Name of the resource pool.
Parent of the created resource pool. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: ResourcePool. When operations return a value of this structure as a result, the field will be an identifier for the resource type: ResourcePool.
Resource allocation for CPU. if unset or empty, use the default CPU allocation specification.
Resource allocation for memory. if unset or empty, use the default memory allocation specification.
Authentication
Response
Response BodyResponse Body
The identifier of the newly created resource pool. The result will be an identifier for the resource type: ResourcePool.
Errors
com.vmware.vapi.std.errors.invalid_argument : If a parameter passed in the spec is invalid.
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 specified in parent could not be found
com.vmware.vapi.std.errors.error : If the system reports an error while responding to the request. | com.vmware.vapi.std.errors.resource_inaccessible : If the specified resource in parent is not accessible. | com.vmware.vapi.std.errors.unable_to_allocate_resource : if any of the resources needed to create 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
PowerCLI Client SDK All Parameters Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: post
x-vmw-doc-deprecated-path: /rest/vcenter/resource-pool
x-vmw-doc-operation: create