Skip to main content

Add SSH Keys

POST/api/v1/ssh_keys/

Query parameters

  • project_idQueryintegerrequired
  • locationQuerystringrequired

    Deployment region for the resource. Accepted values: Delhi, Chennai.

    Mumbai region has been discontinued. Delhi and Chennai are the only supported regions.

Request body

application/json

object
labelstringrequired

Label for the SSH key

ssh_keystringrequired

Public SSH key

Responses

200Successful response with SSH key details
object
codeinteger
example200
dataobject
errorsobject
messagestring
exampleSuccess
400Bad request due to duplicate key addition
object
codeinteger
example400
dataobject
errorsstring
exampleYou cannot add the same key again
messagestring
exampleBad Request