Import SSH key
POST
/ssh-key
Body Required
-
name string Required
Private Network name
-
public-key string Required
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 example
{
"name": "string",
"public-key": "string"
}
Response example (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}