SSH Key

This endpoint is used to create, update, search or delete ssh keys.

Entity fields:

Path
Type
Description

data.type

string

Should be "ssh"

data.attributes.name

string

Unique ssh key name for an Terrakube organization

data.attributes.description

string

Free text for description

data.attributes.privateKey

string

SSH Key content

data.attributes.sshType

string

rsa or ed25519

Example:

{
  "data": {
    "type": "ssh",
    "attributes": {
      "name": "Sample SSH Key",
      "description": "SSH Key Description",
      "privateKey": "{{sshPrivateKey}}",
      "sshType": "{{sshKeyType}}"
    }
  }
}

Supported Operations

get

Returns the relationship ssh

Path parameters
organizationIdstringRequired

organization Identifier

Query parameters
filter[ssh]stringOptional

Filters the collection of ssh using a 'disjoint' RSQL expression

page[number]integerOptional

Number of pages to return. Can be used with page[size]

page[size]integerOptional

Number of elements per page. Can be used with page[number]

page[offset]integerOptional

Offset from 0 to start paginating. Can be used with page[limit]

page[limit]integerOptional

Maximum number of items to return. Can be used with page[offset]

page[totals]stringOptional

For requesting total pages/records be included in the response page meta data

Responses
get
/organization/{organizationId}/ssh
200

Successful response

post

Creates an item of type ssh and adds it to ssh

Path parameters
organizationIdstringRequired

organization Identifier

Body
Responses
post
/organization/{organizationId}/ssh
201

Successful response

delete

Deletes an instance of type ssh

Path parameters
organizationIdstringRequired

organization Identifier

sshIdstringRequired

ssh Identifier

Responses
delete
/organization/{organizationId}/ssh/{sshId}
204

Successful response

No content

patch

Modifies an instance of type ssh

Path parameters
organizationIdstringRequired

organization Identifier

sshIdstringRequired

ssh Identifier

Body
Responses
patch
/organization/{organizationId}/ssh/{sshId}
204

Successful response

No content

Last updated