Generate KMS key
type is AES or RSA. The reported algorithm follows the naming of
the v3 API this service replaces, so an AES key is AES-256 with the
cipher mode reported separately in cipher_mode.
A key is not exportable unless private_material_retrievable is set at
creation. That decision cannot be made later for a key that was
generated without it.
Authorizations
A machine credential, qk_ followed by its secret. The first twelve
characters are an indexed prefix; the rest is compared in constant time
against a stored SHA-256 hash. A key reaches only the configurations it is
linked to.
It may also be sent as Authorization: Bearer qk_..., which is
recognised by the prefix.
Path Parameters
The configuration's proxy slug. Sixteen random lowercase characters unless one was pinned at creation.
"952zpx6vyig3sdyp"
Body
AES, RSA The explicit internal name, which is the only way to ask for CBC.
Derived from type and the length when omitted.
aes-128-gcm, aes-192-gcm, aes-256-gcm, aes-128-cbc, aes-192-cbc, aes-256-cbc, rsa-2048, rsa-4096 128, 192, 256 2048, 4096 encrypt, decrypt, sign, verify A classification slug
Return the private half in this response, wrapped to
wrap_with_key_id. Requires private_material_retrievable.
Response
Created. private_key_material is present only when
export_on_create was set and a wrap key was named.
AES, RSA Named as the v3 API this service replaces names it: the key length without the cipher mode.
"AES-256"
"RSA-2048"
active, revoked Whether the private half may ever leave this service. Fixed at creation: it can be withdrawn later but never granted, because the guarantee made when the key was generated has to keep holding.
encrypt, decrypt, sign, verify A caller's own identifier, for reconciling against another system.
Absent for RSA. This service tracks the mode per key and the v3 API
does not, so it is reported here rather than folded into algorithm.
gcm, cbc The key this one replaced, when it came from a rotation.
After this, export is refused even for an exportable key. Present only on exportable keys.
How many times the private half has been exported.
RSA keys only.
Present only in the response to an export, or to a create with
export_on_create. Never returned by a plain fetch.