Managing Hardware Instances
A hardware instance describes a class of hardware — GPU type, GPU count, CPU, and memory — that is available for deployments within a cluster. The Python SDK lets you list the hardware instances you have access to, and (with the right permissions) create and delete them.
Creating and deleting hardware instances requires admin privileges (PERM_ADMIN_MANAGE_HARDWARE) on your NVIDIA CCluster organization. Listing hardware instances does not require admin privileges.
Prerequisites
Install the SDK and authenticate before running any of the examples below. For unattended use in CI or automation, authenticate with a service account by setting CENTML_SERVICE_ACCOUNT_ID and CENTML_SERVICE_ACCOUNT_SECRET. Interactive development can use centml login instead — see Client Setup.
List hardware instances
get_hardware_instances returns the hardware instances you have access to. Pass an optional cluster_id to restrict the results to a single cluster.
Each returned hardware instance exposes fields such as id, name, cluster_id, gpu_type, num_gpu, cpu, and memory.
Create a hardware instance
Use create_hardware_instance with a CreateHardwareInstanceRequest to register a new hardware instance under a cluster.
The CreateHardwareInstanceRequest accepts the following fields:
Delete a hardware instance
Use delete_hardware_instance with the hardware instance’s ID to remove it.
A full runnable example is available at examples/sdk/manage_hardware_instances.py.