vcenter vm hardware cpu: get

Returns the CPU-related settings of a virtual machine.


HTTP request

GET https://{server}/rest/vcenter/vm/{vm}/hardware/cpu

Path Parameters

Name Type Description
vm string Virtual machine identifier.


HTTP Status Code: 200



Response Type:

Name Type Description
bold = required
value info CPU-related settings of the virtual machine.
value.count long Number of CPU cores.

value.cores_per_socket long Number of CPU cores per socket.

value.hot_add_enabled boolean Flag indicating whether adding CPUs while the virtual machine is running is enabled.

value.hot_remove_enabled boolean Flag indicating whether removing CPUs while the virtual machine is running is enabled.


HTTP Status Code Type Description
500 error if the system reports an error while responding to the request.
404 not_found if the virtual machine is not found.
400 resource_inaccessible if the virtual machine's configuration state cannot be accessed.
503 service_unavailable if the system is unable to communicate with a service to complete the request.
401 unauthenticated if the user can not be authenticated.
403 unauthorized if the user doesn't have the required privileges.