Create a new Vault
Changed onCreate a new Vault
Request
- Base URLhttp://localhost:8001
- AuthAPI key in header Kong-Admin-Token
Path parameters
The name of the workspace
Request body
Vault entities are used to configure different Vault connectors. Examples of Vaults are Environment Variables, Hashicorp Vault and AWS Secrets Manager. Configuring a Vault allows referencing the secrets with other entities. For example a certificate entity can store a reference to a certificate and key, stored in a vault, instead of storing the certificate and key within the entity. This allows a proper separation of secrets and configuration and prevents secret sprawl.
The configuration properties for the Vault which can be found on the vaults' documentation page.
Unix epoch when the resource was created.
The description of the Vault entity.
A string representing a UUID (universally unique identifier).
The name of the Vault that's going to be added. Currently, the Vault implementation must be installed in every Kong instance.
The unique prefix (or identifier) for this Vault configuration. The prefix is used to load the right Vault configuration and implementation when referencing secrets with the other entities.
An optional set of strings associated with the Vault for grouping and filtering.
Unix epoch when the resource was last updated.
Example request
{
"config": {
"prefix": "ENV_PREFIX"
},
"description": "environment variable based vault",
"id": "2747d1e5-8246-4f65-a939-b392f1ee17f8",
"name": "env",
"prefix": "env",
"tags": [
"foo",
"bar"
]
}Response
Successfully created Vault
Vault entities are used to configure different Vault connectors. Examples of Vaults are Environment Variables, Hashicorp Vault and AWS Secrets Manager. Configuring a Vault allows referencing the secrets with other entities. For example a certificate entity can store a reference to a certificate and key, stored in a vault, instead of storing the certificate and key within the entity. This allows a proper separation of secrets and configuration and prevents secret sprawl.
The configuration properties for the Vault which can be found on the vaults' documentation page.
Unix epoch when the resource was created.
The description of the Vault entity.
A string representing a UUID (universally unique identifier).
The name of the Vault that's going to be added. Currently, the Vault implementation must be installed in every Kong instance.
The unique prefix (or identifier) for this Vault configuration. The prefix is used to load the right Vault configuration and implementation when referencing secrets with the other entities.
An optional set of strings associated with the Vault for grouping and filtering.
Unix epoch when the resource was last updated.
Example response
{
"config": {
"prefix": "ENV_PREFIX"
},
"description": "environment variable based vault",
"id": "2747d1e5-8246-4f65-a939-b392f1ee17f8",
"name": "env",
"prefix": "env",
"tags": [
"foo",
"bar"
]
}Changes
- info
endpoint added
- info