112 lines
2.3 KiB
Markdown
112 lines
2.3 KiB
Markdown
[Skip to content](https://coolify.io/docs/api-reference/api/operations/create-database-keydb#VPContent)
|
||
|
||
Return to top
|
||
|
||
Create (KeyDB)[](https://coolify.io/docs/api-reference/api/operations/create-database-keydb#create-keydb)
|
||
|
||
===========================================================================================================
|
||
|
||
POST
|
||
|
||
/databases/keydb
|
||
|
||
Create a new KeyDB database.
|
||
|
||
Authorizations[](https://coolify.io/docs/api-reference/api/operations/create-database-keydb#authorizations)
|
||
|
||
-------------------------------------------------------------------------------------------------------------
|
||
|
||
bearerAuth
|
||
|
||
Go to `Keys & Tokens` / `API tokens` and create a new token. Use the token as the bearer token.
|
||
|
||
Type
|
||
|
||
HTTP (bearer)
|
||
|
||
Request Body[](https://coolify.io/docs/api-reference/api/operations/create-database-keydb#request-body)
|
||
|
||
---------------------------------------------------------------------------------------------------------
|
||
|
||
application/json
|
||
|
||
SchemaJSON
|
||
|
||
JSON
|
||
|
||
{
|
||
|
||
"server\_uuid": "string",
|
||
|
||
"project\_uuid": "string",
|
||
|
||
"environment\_name": "string",
|
||
|
||
"environment\_uuid": "string",
|
||
|
||
"destination\_uuid": "string",
|
||
|
||
"keydb\_password": "string",
|
||
|
||
"keydb\_conf": "string",
|
||
|
||
"name": "string",
|
||
|
||
"description": "string",
|
||
|
||
"image": "string",
|
||
|
||
"is\_public": true,
|
||
|
||
"public\_port": 0,
|
||
|
||
"public\_port\_timeout": 0,
|
||
|
||
"limits\_memory": "string",
|
||
|
||
"limits\_memory\_swap": "string",
|
||
|
||
"limits\_memory\_swappiness": 0,
|
||
|
||
"limits\_memory\_reservation": "string",
|
||
|
||
"limits\_cpus": "string",
|
||
|
||
"limits\_cpuset": "string",
|
||
|
||
"limits\_cpu\_shares": 0,
|
||
|
||
"instant\_deploy": true
|
||
|
||
}
|
||
|
||
Responses[](https://coolify.io/docs/api-reference/api/operations/create-database-keydb#responses)
|
||
|
||
---------------------------------------------------------------------------------------------------
|
||
|
||
200400401422
|
||
|
||
Database updated
|
||
|
||
POST
|
||
|
||
/databases/keydb
|
||
|
||
Playground[](https://coolify.io/docs/api-reference/api/operations/create-database-keydb#playground)
|
||
|
||
-----------------------------------------------------------------------------------------------------
|
||
|
||
Authorization
|
||
|
||
bearerAuth
|
||
|
||
Body
|
||
|
||
Try it out
|
||
|
||
Samples[](https://coolify.io/docs/api-reference/api/operations/create-database-keydb#samples)
|
||
|
||
-----------------------------------------------------------------------------------------------
|
||
|
||
Powered by [VitePress OpenAPI](https://github.com/enzonotario/vitepress-openapi)
|