Update Virtual Machine Classes
Update the configuration of the VM class object
Request
URLURL
Path Parameters
Path Parameters
Identifier for the VM class. The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
Information about the VM class object to be updated.
{
"cpu_count": 0,
"cpu_reservation": 0,
"description": "string",
"devices": {
"dynamic_direct_path_IO_devices": [
{
"custom_label": "string",
"device_id": 0,
"vendor_id": 0
}
],
"vgpu_devices": [
{
"profile_name": "string"
}
]
},
"instance_storage": {
"policy": "string",
"volumes": [
{
"size": 0
}
]
},
"memory_MB": 0,
"memory_reservation": 0
}
The number of CPUs configured for virtual machine of this class. If unset the current value the will not be modified.
The percentage of total available CPUs reserved for a virtual machine. We multiply this percentage by the minimum frequency amongst all the cluster nodes to get the CPU reservation that is specified to vSphere in MHz. If unset, no CPU reservation is requested for the virtual machine.
Description for the VM class. If unset, description is not updated.
Virtual devices corresponding to the VM class. If unset, virtual devices will not be updated.
Instance storage associated with the VM class. If unset, instance storage specification will not be updated.
The amount of memory in MB configured for virtual machine of this class. If unset the current value the will not be modified.
The percentage of available memory reserved for a virtual machine of this class. Memory reservation must be set to 100% for VM class with vGPU or Dynamic DirectPath I/O devices. If unset, no memory reservation is requested for virtual machine.
Authentication
Errors
Errors
com.vmware.vapi.std.errors.already_exists : if a VM class by the name as specified in the spec already exists in the vCenter inventory. | com.vmware.vapi.std.errors.invalid_argument : if the input {@param.spec.instanceStorage.policy} refers to an invalid storage policy or if the input spec includes settings that are out of acceptable bounds or a combination of settings that are not internally consistent with the input spec.
com.vmware.vapi.std.errors.unauthorized : if the user does not have VirtualMachineClasses.Manage privilege.
com.vmware.vapi.std.errors.error : if the system reports an error while responding to 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-operation: update