Cluster Actions
Performs an action on a running Training Cluster. The action field in the request body determines the operation. Additional fields are required depending on the action:
| Action | Required Fields | Description |
|--------|----------------|-------------|
| update_ssh_keys | ssh_key_ids | Replace SSH keys on all cluster nodes |
| update_image | image_version_id | Update the container image on all cluster nodes |
| restart_workers | — | Restart all compute (worker) nodes without restarting the Slurm controller |
| restart_cluster | — | Restart the full cluster including the Slurm controller and all nodes |
| scale_cluster | additional_nodes | Add nodes to a running cluster without teardown or workload disruption |
| attach_ip | reserved_ip_id | Attach a reserved public IP to the cluster. Returns a Reserved IP object instead of a cluster object. |
| detach_ip | reserved_ip_id, ip_type | Detach a reserved public IP from the cluster. Returns an empty data object. |
| add_security_group | security_groups_ids | Attach one or more security groups to the cluster. Returns a success string. |
| remove_security_group | security_group_id | Remove a security group from the cluster. Returns a success string. |
/distributed_jobs_v2/cluster/{Cluster_Id}/Path parameters
Cluster_IdPathintegerrequiredCluster ID
Query parameters
project_idQueryintegerrequiredProject ID
active_iamQueryintegeroptionalActive IAM ID (To access contact person account) Find your Active IAM ID here
locationQuerystringrequiredLocation
Request body
application/json
Action to perform on the cluster. Each action may require additional fields.
Required for update_ssh_keys. List of SSH key IDs to attach to all cluster nodes.
Required for update_image. ID of the image version to apply to all cluster nodes.
Required for scale_cluster. Number of nodes to add to the running cluster.
Required for attach_ip and detach_ip. ID of the reserved IP.
Required for detach_ip. Type of IP being detached.
Required for add_security_group. List of security group IDs to attach to the cluster.
Required for remove_security_group. ID of the security group to remove from the cluster.
Responses
200Action performed successfully. Returns the updated cluster object.
200Cluster updated successfully