v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Instances

Put instance into the server group

Add an instance to a server group. The instance must not already be in a server group. Bare metal servers do not support server groups.

post/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/put_into_servergroup

Path parameters

project_idinteger required

Project ID

region_idinteger required

Region ID

instance_idstring required

Instance ID

Request body

servergroup_idstring required

Anti-affinity or affinity or soft-anti-affinity server group ID.

Example request

{
  "servergroup_id": "47003067-550a-6f17-93b6-81ee16ba061e"
}

Response

List of created tasks

tasksstring[] required

List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:

  • GET /v1/tasks/{task_id} - Check individual task status and details Poll task status until completion (FINISHED/ERROR) before proceeding with dependent operations.
idstring required

Example response

{
  "tasks": [
    "d478ae29-dedc-4869-82f0-96104425f565"
  ]
}