SSH Keys

ssh_keys

Domain types

Keypair = { id, name, public_key, 6 more... }
KeypairList = { count, results }

ssh_keys.v1

Methods

Import Or Generate Keypair ->
post/v1/keypairs/{project_id}/{region_id}

To generate a keypair do not use the public_key parameter in the request body

Delete Keypair ->
delete/v1/keypairs/{project_id}/{region_id}/{keypair_id}

Delete keypair

Parameters
project_id: number

Project ID

region_id: number

Region ID

keypair_id: string

Keypair ID

Request example
List Keypairs ->
get/v1/keypairs/{project_id}/{region_id}

List keypairs

Get Keypair ->
get/v1/keypairs/{project_id}/{region_id}/{keypair_id}

Get keypair

Share Keypair To View For All Users In Project ->
patch/v1/keypairs/{project_id}/{region_id}/{keypair_id}/share

Share keypair to view for all users in project

ssh_keys.v2

Methods

Delete Keypair ->
delete/v2/keypairs/{keypair_id}

Delete keypair

Import Or Generate Keypair ->
post/v2/keypairs

To generate a keypair do not use the public_key parameter in the request body

List Keypairs ->
get/v2/keypairs

List keypairs

Get Keypair ->
get/v2/keypairs/{keypair_id}

Get keypair