POST
/kms-key
curl \
--request POST 'https://api-ch-gva-2.exoscale.com/v2/kms-key' \
--header "Content-Type: application/json" \
--data '{"name":"string","description":"string","usage":"encrypt-decrypt","multi-zone":true}'
Request examples
{
"name": "string",
"description": "string",
"usage": "encrypt-decrypt",
"multi-zone": true
}
Response examples (201)
{
"description": "string",
"revision": {
"at": "2026-05-04T09:42:00Z",
"seq": 42
},
"name": "string",
"multi-zone": true,
"source": "exoscale-kms",
"policy": "string",
"usage": "string",
"status": "enabled",
"status-since": "2026-05-04T09:42:00Z",
"id": "string",
"origin-zone": "string",
"created-at": "2026-05-04T09:42:00Z"
}
Response examples (400)
{
"type": "string",
"title": "string",
"status": 42,
"detail": "string",
"instance": "string",
"errors": [
{
"path": "string",
"detail": "string",
"pointer": "string",
"location": "string"
}
]
}
Response examples (409)
{
"type": "string",
"title": "string",
"status": 42,
"detail": "string",
"instance": "string",
"errors": [
{
"path": "string",
"detail": "string",
"pointer": "string",
"location": "string"
}
]
}