Create a new Key
Changed onCreate a new Key
Request
- Base URLhttp://localhost:8001
- AuthAPI key in header Kong-Admin-Token
Path parameters
The name of the workspace
Request body
A Key object holds a representation of asymmetric keys in various formats. When Kong or a Kong plugin requires a specific public or private key to perform certain operations, it can use this entity.
Unix epoch when the resource was created.
A string representing a UUID (universally unique identifier).
A JSON Web Key represented as a string.
A unique identifier for a key.
The name to associate with the given keys.
A keypair in PEM format.
The id (an UUID) of the key-set with which to associate the key.
An optional set of strings associated with the Key for grouping and filtering.
Unix epoch when the resource was last updated.
X.509 certificate SHA-1 thumbprint.
Example request
{
"id": "d958f66b-8e99-44d2-b0b4-edd5bbf24658",
"jwk": "{\"alg\":\"RSA\", \"kid\": \"42\", ...}",
"kid": "42",
"name": "a-key",
"pem": {
"private_key": "-----BEGIN",
"public_key": "-----BEGIN"
},
"set": {
"id": "b86b331c-dcd0-4b3e-97ce-47c5a9543031"
}
}Response
Successfully created Key
A Key object holds a representation of asymmetric keys in various formats. When Kong or a Kong plugin requires a specific public or private key to perform certain operations, it can use this entity.
Unix epoch when the resource was created.
A string representing a UUID (universally unique identifier).
A JSON Web Key represented as a string.
A unique identifier for a key.
The name to associate with the given keys.
A keypair in PEM format.
The id (an UUID) of the key-set with which to associate the key.
An optional set of strings associated with the Key for grouping and filtering.
Unix epoch when the resource was last updated.
X.509 certificate SHA-1 thumbprint.
Example response
{
"id": "d958f66b-8e99-44d2-b0b4-edd5bbf24658",
"jwk": "{\"alg\":\"RSA\", \"kid\": \"42\", ...}",
"kid": "42",
"name": "a-key",
"pem": {
"private_key": "-----BEGIN",
"public_key": "-----BEGIN"
},
"set": {
"id": "b86b331c-dcd0-4b3e-97ce-47c5a9543031"
}
}Changes
- info
endpoint added
- info