Get Cluster
Retrieves information about the cluster corresponding to cluster. if you do not have all of the privileges described as follows: - The resource ClusterComputeResource referenced by the parameter cluster requires System.Read.
Request
URLURL
Path Parameters
Path Parameters
Identifier of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource.
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 cluster associated with cluster.
{
"name": "string",
"resource_pool": "string"
}
The name of the cluster
Identifier of the root resource pool of the cluster 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.
Errors
com.vmware.vapi.std.errors.unauthenticated : if the session id is missing from the request or the corresponding session object cannot be found.
com.vmware.vapi.std.errors.unauthorized : if the user doesn’t not have the required privileges.
com.vmware.vapi.std.errors.not_found : if there is no cluster associated with cluster in the system.
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/cluster/{cluster}
x-vmw-doc-operation: get