gcp.compute.backend_service.create ​
Create a global backend service fronting a serverless NEG for the L7 load balancer.
Create a global backend service that routes to a serverless NEG backend.
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 | — | Backend service name. |
protocol | string | No | — | Backend protocol; defaults to HTTPS. |
load_balancing_scheme | string | No | — | LB scheme; defaults to EXTERNAL_MANAGED. |
backends | json | No | — | Backend list, each {group: <neg self link>}. |
health_checks | json | No | — | Health check self links. |
timeout_sec | integer | No | — | Backend request timeout in seconds. |
port_name | string | No | — | Named port on the backend. |
enable_cdn | boolean | No | — | Enable Cloud CDN on the backend. |
custom_request_headers | json | No | — | Custom request headers list. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Echoed connection UUID. |
project_id | string | No | — | Resolved GCP project. |
name | string | No | — | Backend service name. |
protocol | string | No | — | Backend protocol. |
load_balancing_scheme | string | No | — | LB scheme. |
backends | json | No | — | Backend list. |
health_checks | json | No | — | Health check self links. |
timeout_sec | integer | No | — | Backend request timeout. |
port_name | string | No | — | Named port. |
enable_cdn | boolean | No | — | Cloud CDN enabled flag. |
custom_request_headers | json | No | — | Custom request headers. |
self_link | string | No | — | Self link of the backend service. |
operation_name | string | No | — | Compute operation name when created. |
created | boolean | No | — | True when created this run. |
backend_service | json | No | — | Sanitized provider backend service 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.backend_service.create",
"initial_data": {
"connection_uuid": "value",
"name": "value"
}
}