gcp.compute.health_check.create ​
Create a global HTTP/HTTPS health check used by an L7 load balancer backend service.
Create a global health check for a backend service.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | Base-gcp |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | GCP CloudConnection UUID. |
project_id | string | No | — | Explicit GCP project override. |
name | string | Yes | — | Health check name. |
type | string | No | — | Check type HTTP or HTTPS; defaults to HTTP. |
port | integer | No | — | Probe port. |
request_path | string | No | — | HTTP(S) request path to probe. |
check_interval_sec | integer | No | — | Seconds between probes. |
timeout_sec | integer | No | — | Probe timeout in seconds. |
healthy_threshold | integer | No | — | Consecutive successes to mark healthy. |
unhealthy_threshold | integer | No | — | Consecutive failures to mark unhealthy. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Echoed connection UUID. |
project_id | string | No | — | Resolved GCP project. |
name | string | No | — | Health check name. |
type | string | No | — | Check type. |
port | integer | No | — | Probe port. |
request_path | string | No | — | Request path. |
check_interval_sec | integer | No | — | Seconds between probes. |
timeout_sec | integer | No | — | Probe timeout. |
healthy_threshold | integer | No | — | Healthy threshold. |
unhealthy_threshold | integer | No | — | Unhealthy threshold. |
self_link | string | No | — | Self link of the health check. |
operation_name | string | No | — | Compute operation name when created. |
created | boolean | No | — | True when created this run. |
health_check | json | No | — | Sanitized provider health check or operation. |
failure_reason | string | No | — | Human-readable failure reason. |
failed_step | string | No | — | Failed logical step. |
failed_layer | json | No | — | Engine failed layer if applicable. |
failed_at_state | string | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | preflight | — |
creating | No | No | — | complete | — |
preflighting | No | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | preflight | preflighting | — |
preflighting | execute | creating | — |
creating | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "gcp.compute.health_check.create",
"initial_data": {
"connection_uuid": "value",
"name": "value"
}
}