Get Environment
cloud_shell.get_environment
ActionGoogle Cloudconnection required
Calls Cloud Shell GET /v1/users/{usersId}/environments/{environmentsId}.
Gets an environment. Returns NOT_FOUND if the environment does not exist.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Cloud Shell
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 fields, 2 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 |
|---|---|---|---|---|---|
user Id of the user to act on, from its Cloud Shell URL or console — not its name. | string | Yes | — | — | — |
environment Environment id. | string | Yes | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
ok | boolean | — |
sshUsername | string | — |
dockerImage | string | — |
publicKeys | array | — |
webHost | string | — |
sshPort | number | — |
name | string | — |
{
"dockerImage": "",
"name": "",
"ok": false,
"publicKeys": [],
"sshPort": 0,
"sshUsername": "",
"webHost": ""
}Related Google Cloud Shell nodes
See Get Environment run in a workflow.
In a technical demo we add the Google Cloud Shell connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.