gcp.compute.serverless_neg.create ​
Create a regional serverless NEG that targets a Cloud Run service for L7 load balancing.
Create a regional SERVERLESS network endpoint group pointing at a Cloud Run 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. |
region | string | Yes | — | Region for the serverless NEG. |
name | string | Yes | — | Serverless NEG name. |
cloud_run_service | string | No | — | Target Cloud Run service name. |
cloud_run_tag | string | No | — | Cloud Run traffic tag to route to. |
cloud_run_url_mask | string | No | — | Cloud Run URL mask for multi-service NEGs. |
network | string | No | — | Optional VPC network self link. |
subnetwork | string | No | — | Optional subnetwork self link. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Echoed connection UUID. |
project_id | string | No | — | Resolved GCP project. |
region | string | No | — | Region of the serverless NEG. |
name | string | No | — | Serverless NEG name. |
cloud_run_service | string | No | — | Target Cloud Run service name. |
cloud_run_tag | string | No | — | Cloud Run traffic tag. |
cloud_run_url_mask | string | No | — | Cloud Run URL mask. |
network | string | No | — | VPC network self link. |
subnetwork | string | No | — | Subnetwork self link. |
self_link | string | No | — | Self link of the serverless NEG. |
operation_name | string | No | — | Compute operation name when created. |
created | boolean | No | — | True when the NEG was created this run. |
neg | json | No | — | Sanitized provider NEG or operation object. |
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.serverless_neg.create",
"initial_data": {
"connection_uuid": "value",
"region": "value",
"name": "value"
}
}