gcp.compute.url_map.upsert ​
Create or patch a global URL map that path-routes / (static) vs /api (service) across backend services.
Create or patch a global URL map that path-routes across backend services.
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 | — | URL map name. |
default_service | string | Yes | — | Default backend service self link. |
host_rules | json | No | — | Host rules list. |
path_matchers | json | No | — | Path matcher list for path-based routing. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Echoed connection UUID. |
project_id | string | No | — | Resolved GCP project. |
name | string | No | — | URL map name. |
default_service | string | No | — | Default backend service self link. |
host_rules | json | No | — | Host rules list. |
path_matchers | json | No | — | Path matcher list. |
self_link | string | No | — | Self link of the URL map. |
operation_name | string | No | — | Compute operation name. |
created | boolean | No | — | True when created; false when patched. |
url_map | json | No | — | Sanitized provider URL map 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 | — |
preflighting | No | No | — | execute | — |
upserting | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | preflight | preflighting | — |
preflighting | execute | upserting | — |
upserting | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "gcp.compute.url_map.upsert",
"initial_data": {
"connection_uuid": "value",
"name": "value",
"default_service": "value"
}
}