Add Public Key
cloud_shell.add_public_key
ActionGoogle Cloudconnection required
Calls Cloud Shell POST /v1/users/{usersId}/environments/{environmentsId}:addPublicKey.
Adds a public SSH key to an environment, allowing clients with the corresponding private key to connect to that environment via SSH.
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
3 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 | — | — | — |
body Request body (AddPublicKeyRequest) as JSON. | object | No | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
ok | boolean | — |
response | object | — |
error | object | — |
name | string | — |
done | boolean | — |
metadata | object | — |
{
"done": false,
"error": {},
"metadata": {},
"name": "",
"ok": false,
"response": {}
}Related Google Cloud Shell nodes
See Add Public Key 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.