Skip to content

SSH keys

Generated from the gateway schema. Do not edit.

Queries

instanceSshKeys

Keys the instance was given through the console API. Keys added on the machine itself are not known here.

query { instanceSshKeys(vmid: Int!): [InstanceSshKey!]! }

Requires: tenant VIEWER

Argument Type Description
vmid Int!

Returns: [InstanceSshKey!]!

sshKey

query { sshKey(id: ID!): SshKey }

Requires: tenant VIEWER

Argument Type Description
id ID!

Returns: SshKey

sshKeys

The tenant's shared keys and the caller's own; whoever may manage members' keys also sees those.

query { sshKeys: [SshKey!]! }

Requires: tenant VIEWER

Returns: [SshKey!]!

Mutations

addPersonalSshKey

Adds a key only the caller can put on an instance.

mutation { addPersonalSshKey(input: AddSshKeyInput!): SshKey! }

Requires: tenant VIEWER

Argument Type Description
input AddSshKeyInput!

Returns: SshKey!

addSshKey

Adds a key shared by the tenant: every member can then put it on an instance.

mutation { addSshKey(input: AddSshKeyInput!): SshKey! }

Requires: tenant EDITOR

Argument Type Description
input AddSshKeyInput!

Returns: SshKey!

deleteMemberSshKey

Removes another member's personal key from the store, e.g. after they left.

mutation { deleteMemberSshKey(id: ID!): Boolean! }

Requires: tenant ADMIN

Argument Type Description
id ID!

Returns: Boolean!

deletePersonalSshKey

Removes one of the caller's own keys. Instances that already have it keep it.

mutation { deletePersonalSshKey(id: ID!): Boolean! }

Requires: tenant VIEWER

Argument Type Description
id ID!

Returns: Boolean!

deleteSshKey

Removes a shared key from the store. Instances that already have it keep it.

mutation { deleteSshKey(id: ID!): Boolean! }

Requires: tenant EDITOR

Argument Type Description
id ID!

Returns: Boolean!

renamePersonalSshKey

Renames one of the caller's own keys.

mutation { renamePersonalSshKey(id: ID!, name: String!): SshKey! }

Requires: tenant VIEWER

Argument Type Description
id ID!
name String!

Returns: SshKey!

renameSshKey

Renames a shared key.

mutation { renameSshKey(id: ID!, name: String!): SshKey! }

Requires: tenant EDITOR

Argument Type Description
id ID!
name String!

Returns: SshKey!