Import Ssh Public Key

os_login.import_ssh_public_key
ActionGoogle Cloudconnection required

Calls Cloud OS Login POST /v1/users/{usersId}:importSshPublicKey.

Adds an SSH public key and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile.

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

2 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
user
Id of the user to act on, from its Os Login URL or console — not its name.
stringYes———
body
Request body (SshPublicKey) as JSON.
objectNo———

Output

One shape.

result

FieldTypeExample
ok
boolean—
loginProfile
object—
details
string—
{
  "details": "",
  "loginProfile": {},
  "ok": false
}

See Import 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.