Create a customer-managed unique KMS Key in your organization. A KMS Key is a logical represention of a cryptographic key material. It also includes metadata such as a UUID, a name and its state.
Body
Required
-
A human-readable display name uniquely identifying the KMS key within the tenant space.
-
An optional detailed description providing additional context about the key's intended use case.
-
Value is
encrypt-decrypt. Default value isencrypt-decrypt. -
True if this is a multi-zone key.
Default value is
false.
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":false}'
Request examples
{
"name": "string",
"description": "string",
"usage": "encrypt-decrypt",
"multi-zone": false
}
Response examples (200)
{
"description": "string",
"revision": {
"at": "2026-05-04T09:42:00Z",
"seq": 42
},
"name": "string",
"multi-zone": true,
"source": "exoscale-kms",
"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"
}