gcp.billing.account.list-projects ​
List projects linked to a billing account.
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 | — | GCP project override for auth; defaults to the connection's project. |
billing_account_id | string | Yes | — | Billing account id or billingAccounts/* name. |
page_size | integer | No | — | Page size for listing. |
max_results | integer | No | — | Maximum results to collect across pages. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Echoed connection UUID. |
project_id | string | No | — | Effective project id. |
billing_account_id | string | No | — | Billing account id or billingAccounts/* name. |
page_size | integer | No | — | Page size for listing. |
max_results | integer | No | — | Maximum results to collect across pages. |
billing_account_name | string | No | — | Fully-qualified billing account name, e.g. billingAccounts/012345-6789AB-CDEF01. |
projects | json | No | — | List of project billing info resources linked to the account. |
project_count | integer | No | — | Total number of projects returned. |
failure_reason | string | No | — | Human-readable failure reason. |
failed_step | string | No | — | Failed logical step. |
failed_layer | json | No | — | Engine failed layer envelope. |
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 | — |
listing | 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 | listing | — |
listing | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "gcp.billing.account.list-projects",
"initial_data": {
"connection_uuid": "value",
"billing_account_id": "value"
}
}