gcp.compute.instance_group_manager.resize ​
Set the target size of a GCE managed instance group (native runner scale operation).
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | Base-gcp |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | GCP CloudConnection UUID. |
project_id | string | No | — | GCP project override; defaults to the connection project. |
instance_group_manager | string | Yes | — | Name of the managed instance group to resize. |
region | string | Yes | — | GCP zone or region hosting the managed instance group; kept as region to match existing LTIP compute primitives. |
size | integer | Yes | — | Target number of instances for the managed instance group. |
request_id | string | No | — | Optional provider request id for retry safety. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | GCP CloudConnection UUID echoed from input. |
project_id | string | No | — | Effective GCP project. |
authenticated_project_id | string | No | — | Project resolved by credential validation. |
auth_validation | boolean | No | — | True when credential validation succeeded. |
default_service_account | string | No | — | Default compute service account when resolved. |
instance_group_manager | string | No | — | Name of the managed instance group echoed from input. |
region | string | No | — | GCP zone or region hosting the managed instance group. |
size | integer | No | — | Requested target number of instances echoed from input. |
request_id | string | No | — | Optional provider request id echoed from input. |
target_size | integer | No | — | Target size the managed instance group was set to. |
provider_resource_id | string | No | — | projects/{project}/zones |
operation_name | string | No | — | Compute Engine long-running operation name. |
operation_status | string | No | — | Initial provider operation status. |
operation | json | No | — | Sanitized provider operation response. |
resize_request | json | No | — | Sanitized resize request sent to Compute Engine. |
failure_reason | string | No | — | Human-readable failure reason. |
failure_type | string | No | — | Engine exception class. |
failed_step | string | No | — | Failed logical step. |
failed_layer | json | No | — | Engine failed layer. |
failed_at_state | string | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
failed_at | string | No | — | ISO failure timestamp. |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "gcp.compute.instance_group_manager.resize",
"initial_data": {
"connection_uuid": "value",
"instance_group_manager": "value",
"region": "value",
"size": 123
}
}