v1
latestSwagger 2.02026-08-04232286653.5 KBInstance Groups
Updates an instance group in the project and returns the updated instance group.
patch/projects/{project_id}/compute/instance-groups/{instance_group_id}
Path parameters
instance_group_idstring required
ID of the instance group.
project_idstring required
Request body
Example request
{
"desired_count": {
"value": 3
},
"name": "my-instance-group",
"template_id": "7e6a6c5a-1314-409a-9e4f-3cc9f2a68fcc"
}Response
Example response
{
"active_instances": [
"066ce497-889e-4899-b53e-400df3fb7c0e"
],
"created_at": "2024-01-01T00:00:00Z",
"desired_count": 3,
"id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
"inactive_instances": [
"066ce497-889e-4899-b53e-400df3fb7c0e"
],
"instances": [
"066ce497-889e-4899-b53e-400df3fb7c0e"
],
"name": "my-instance-group",
"project_id": "b67aec22-2908-4427-994c-4e32be87477e",
"running_instance_count": 3,
"state": "HEALTHY",
"template_id": "7e6a6c5a-1314-409a-9e4f-3cc9f2a68fcc",
"updated_at": "2024-01-01T00:00:00Z"
}