Update Ssh Public Key
os_login.update_ssh_public_key
ActionGoogle Cloudconnection required
Calls oslogin v1 PATCH /v1/users/{usersId}/sshPublicKeys/{sshPublicKeysId}.
Updates an SSH public key and returns the profile information.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Cloud OS Login
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 3 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 User name or id. | string | Yes | — | — | — |
ssh_public_key Ssh public key name or id. | string | Yes | — | — | — |
body The SshPublicKey resource, as the API defines it. | object | Yes | — | — | — |
Output
One shape.
result
Extra keys beyond the ones listed can appear.
| Field | Type | Example |
|---|---|---|
expirationTimeUsec | string | — |
fingerprint | string | — |
key | string | — |
name | string | — |
{
"expirationTimeUsec": "",
"fingerprint": "",
"key": "",
"name": ""
}Related Google Cloud OS Login nodes
See Update Ssh Public Key run in a workflow.
In a technical demo we add the Google Cloud OS Login connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.