Import SSH key
Body Required
-
SSH key name
Format should match the following pattern:
^[a-zA-Z0-9]{1}[a-zA-Z0-9._-]{0,254}$
. -
Public key value
POST
/ssh-key
curl \
-X POST https://api-ch-gva-2.exoscale.com/v2/ssh-key \
-H "Content-Type: application/json" \
-d '{"name":"string","public-key":"string"}'
Request examples
{
"name": "string",
"public-key": "string"
}
Response examples (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}