This page covers GPU queries with the /nmx/v1/gpus endpoint of the NVIDIA Minerva NVLink API. For the other inventory endpoints, such as switches, chassis, compute nodes, ports, and domains, see the API reference linked from NVIDIA Minerva NVLink API User Guide.
GPU Query Parameters
The /nmx/v1/gpus endpoint supports the following query parameters. These parameters allow you to scope GPU queries according to a specific chassis, slot, tray, or host without retrieving the entire inventory.
|
Parameter |
Type |
Description |
Dependencies |
|---|---|---|---|
|
|
string |
Display a GPU according to its unique device identifier, in decimal or in hexadecimal with a |
None |
|
|
string |
Display GPUs by chassis serial number |
None |
|
|
integer |
Display GPUs by slot identifier |
Requires |
|
|
integer |
Display GPUs by tray index |
Requires |
|
|
integer |
Display GPUs by host identifier |
Requires |
|
|
integer |
Display GPUs by system unique identifier |
None |
|
|
array |
Display GPUs by domain UUID(s) |
None |
GPU API Examples
Retrieve a specific GPU using its unique device identifier:
curl -X GET "https://<ip_address>/nmx/v1/gpus?deviceUID=1657324662872342529" \
-H "accept: application/json" \
-H "X-API-Key: <api-key>"
Retrieve all GPUs in a specific chassis:
curl -X GET "https://<ip_address>/nmx/v1/gpus?chassisSerialNumber=CH-SN-9876543" \
-H "accept: application/json" \
-H "X-API-Key: <api-key>"
Retrieve GPUs from a specific slot within a chassis:
curl -X GET "https://<ip_address>/nmx/v1/gpus?chassisSerialNumber=CH-SN-9876543&slotID=3" \
-H "accept: application/json" \
-H "X-API-Key: <api-key>"
Retrieve GPUs from a specific tray and host combination:
curl -X GET "https://<ip_address>/nmx/v1/gpus?chassisSerialNumber=CH-SN-9876543&trayIndex=1&hostID=1" \
-H "accept: application/json" \
-H "X-API-Key: <api-key>"
Last updated: