Get Subnetwork
compute_engine.get_subnetwork
ActionGoogle Cloudconnection required
Calls compute v1 GET /projects/{project}/regions/{region}/subnetworks/{subnetwork}.
Returns the specified subnetwork.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Compute Engine
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- project_id, zone
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 fields, 1 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 |
|---|---|---|---|---|---|
region Region; defaults to the connection's zone minus its suffix. | string | No | — | — | — |
subnetwork Subnetwork name or id. | string | Yes | — | — | — |
Output
One shape.
result
Extra keys beyond the ones listed can appear.
| Field | Type | Example |
|---|---|---|
allowSubnetCidrRoutesOverlap | boolean | — |
creationTimestamp | string | — |
description | string | — |
enableFlowLogs | boolean | — |
externalIpv6Prefix | string | — |
fingerprint | string | — |
gatewayAddress | string | — |
id | string | — |
internalIpv6Prefix | string | — |
ipCidrRange | string | — |
ipCollection | string | — |
ipv6AccessType | string | — |
ipv6CidrRange | string | — |
ipv6GceEndpoint | string | — |
kind | string | — |
logConfig | object | — |
name | string | — |
network | string | — |
params | object | — |
privateIpGoogleAccess | boolean | — |
privateIpv6GoogleAccess | string | — |
purpose | string | — |
region | string | — |
reservedInternalRange | string | — |
resolveSubnetMask | string | — |
role | string | — |
secondaryIpRanges | array | — |
selfLink | string | — |
stackType | string | — |
state | string | — |
systemReservedExternalIpv6Ranges | array | — |
systemReservedInternalIpv6Ranges | array | — |
utilizationDetails | object | — |
{
"allowSubnetCidrRoutesOverlap": false,
"creationTimestamp": "",
"description": "",
"enableFlowLogs": false,
"externalIpv6Prefix": "",
"fingerprint": "",
"gatewayAddress": "",
"id": "",
"internalIpv6Prefix": "",
"ipCidrRange": "",
"ipCollection": "",
"ipv6AccessType": "",
"ipv6CidrRange": "",
"ipv6GceEndpoint": "",
"kind": "",
"logConfig": {},
"name": "",
"network": "",
"params": {},
"privateIpGoogleAccess": false,
"privateIpv6GoogleAccess": "",
"purpose": "",
"region": "",
"reservedInternalRange": "",
"resolveSubnetMask": "",
"role": "",
"secondaryIpRanges": [],
"selfLink": "",
"stackType": "",
"state": "",
"systemReservedExternalIpv6Ranges": [],
"systemReservedInternalIpv6Ranges": [],
"utilizationDetails": {}
}See Get Subnetwork run in a workflow.
In a technical demo we add the Google Compute Engine connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.