Update a GPU VM
Update GPU VM metadata (name, resource group, SSH key association, username). Requires GPU feature to be enabled.
Path Parameters
- Type: stringFormat: uuididrequired
The GPU VM ID
Body
required
application/json
- Type: stringnamemin length:1max length:63
New display name for the GPU VM. Letters, numbers, spaces, periods, and hyphens only; cannot start or end with a hyphen.
- Type: stringFormat: uuidresource
Group Id The resource group to move the GPU VM into. Omitted leaves it where it is.
nullis refused (422): every GPU VM belongs to a resource group, so to take one out of a group, move it into your tenant's Default resource group. A move requiresgpu:updatein both the current and the destination group. - Type: stringFormat: uuidnullablessh
Key Id SSH key ID to associate with the VM, or null to clear the association
- Type: stringusernamemin length:3max length:20
Username for SSH access (must start with a letter or underscore)
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for put/resource/gpu/{id}
curl https://api.gpcn.com/v1/resource/gpu/123e4567-e89b-12d3-a456-426614174000 \
--request PUT \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_SECRET_TOKEN' \
--data '{
"name": "GPU Trainer 1",
"resourceGroupId": "",
"sshKeyId": "",
"username": ""
}'
{
"success": true,
"message": "string",
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "string",
"createdAt": "2026-10-21T16:19:07.193Z",
"updatedAt": "2026-10-21T16:19:07.193Z",
"deletedAt": "2026-10-21T16:19:07.193Z",
"status": "Provisioning",
"configuration": {
"name": "string",
"code": "string",
"gpuCount": 1,
"cpu": 1,
"ram": 1,
"disk": 1,
"skuId": "123e4567-e89b-12d3-a456-426614174000",
"skuCode": "string"
},
"ip": "string",
"datacenter": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "string",
"region": "string",
"countryAbbr": "string",
"country": "string"
},
"resourceGroupId": "123e4567-e89b-12d3-a456-426614174000",
"resourceGroupName": "string",
"image": "string",
"username": "string",
"sshKeyId": "123e4567-e89b-12d3-a456-426614174000",
"sshKeyName": "string",
"hasStoredCredentials": true,
"error": {
"code": "GPU_PROVIDER_UNAVAILABLE",
"message": "string"
}
},
"meta": null
}.png)