List Usable Subnetworks
gke.list_usable_subnetworks
ActionGoogle Cloudconnection required
Calls GKE API v1 GET /projects/{p}/aggregated/usableSubnetworks.
List the subnetworks this caller is allowed to create a cluster in, across the whole project (including shared-VPC host projects).
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Kubernetes Engine
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- project_id, location
- Resolved by
- config.connection_id, else node.connection_id
Configuration
5 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
project_id GCP project id (overrides connection). | string | No | — | — | — |
location Zone or region; use - for all (overrides connection). | string | No | — | — | — |
filter_ Server-side filter, e.g. networkProjectId=my-host-project. Optional. | string | No | — | — | — |
page_size Results per page. Optional. | number | No | — | ≥ 1 | — |
page_token Continue a previous page. Optional. | string | No | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
ok | boolean | — |
subnetworks | array | — |
count | number | — |
next_page_token | string | — |
{
"count": 0,
"next_page_token": "",
"ok": false,
"subnetworks": []
}See List Usable Subnetworks run in a workflow.
In a technical demo we add the Google Kubernetes Engine connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.