Apache CloudStack 4.21.0.0 Root Admin API Reference
createGpuDevice
Creates a GPU device manually on a host
Request parameters
Parameter Name | Description | Required |
busaddress | PCI bus address of the GPU device (e.g., 0000:01:00.0) or UUID for MDEV devices. | true |
gpucardid | ID of the GPU card type | true |
hostid | ID of the host where the GPU device is located | true |
vgpuprofileid | ID of the vGPU profile | true |
numanode | NUMA node of the GPU device (e.g., 0, 1, etc.). This is optional and can be used to specify the NUMA node for the GPU device which is used during allocation. Defaults to -1 | false |
parentgpudeviceid | ID of the parent GPU device (for virtual GPU devices) | false |
type | Type of GPU device (PCI, MDEV, VGPUOnly). Defaults to PCI. | false |
Response Tags
Response Name | Description |
id | the ID of the GPU device |
busaddress | bus address of the GPU device or MDEV UUID for vGPU devices |
gpucardid | the GPU card ID associated with this GPU device |
gpucardname | the GPU card name associated with this GPU device |
gpudevicetype | bus address of the GPU device |
hostid | the host ID where the GPU device is attached |
hostname | the host name where the GPU device is attached |
managedstate | the managed state of the GPU device (Enabled/Disabled) |
numanode | the NUMA node where the GPU device is located |
parentgpudeviceid | the ID of the parent GPU device, if this is a vGPU |
state | the vGPU profile name assigned to this GPU device |
vgpuprofileid | the vGPU profile ID assigned to this GPU device |
vgpuprofilename | the vGPU profile name assigned to this GPU device |
virtualmachineid | the vGPU profile ID assigned to this GPU device |
virtualmachinename | the vGPU profile name assigned to this GPU device |
vmstate | the state of the virtual machine to which this GPU device is allocated |