Get Ssh Public Key

os_login.get_ssh_public_key
ActionGoogle Cloudconnection required

Calls Cloud OS Login GET /v1/users/{usersId}/sshPublicKeys/{sshPublicKeysId}.

Retrieves an SSH public key.

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, 2 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———
ssh_public_key
Ssh public key id.
stringYes———

Output

One shape.

result

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

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