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.

FieldTypeRequiredDefaultConstraintsExample
user
User name or id.
stringYes———
ssh_public_key
Ssh public key name or id.
stringYes———
body
The SshPublicKey resource, as the API defines it.
objectYes———

Output

One shape.

result

Extra keys beyond the ones listed can appear.

FieldTypeExample
expirationTimeUsec
string—
fingerprint
string—
key
string—
name
string—
{
  "expirationTimeUsec": "",
  "fingerprint": "",
  "key": "",
  "name": ""
}

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.