Commit inicial - estructura base del proyecto
This commit is contained in:
@@ -0,0 +1,119 @@
|
||||
[Skip to content](https://coolify.io/docs/api-reference/api/operations/create-database-postgresql#VPContent)
|
||||
|
||||
Return to top
|
||||
|
||||
Create (PostgreSQL)[](https://coolify.io/docs/api-reference/api/operations/create-database-postgresql#create-postgresql)
|
||||
|
||||
==========================================================================================================================
|
||||
|
||||
POST
|
||||
|
||||
/databases/postgresql
|
||||
|
||||
Create a new PostgreSQL database.
|
||||
|
||||
Authorizations[](https://coolify.io/docs/api-reference/api/operations/create-database-postgresql#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-postgresql#request-body)
|
||||
|
||||
--------------------------------------------------------------------------------------------------------------
|
||||
|
||||
application/json
|
||||
|
||||
SchemaJSON
|
||||
|
||||
JSON
|
||||
|
||||
{
|
||||
|
||||
"server\_uuid": "string",
|
||||
|
||||
"project\_uuid": "string",
|
||||
|
||||
"environment\_name": "string",
|
||||
|
||||
"environment\_uuid": "string",
|
||||
|
||||
"postgres\_user": "string",
|
||||
|
||||
"postgres\_password": "string",
|
||||
|
||||
"postgres\_db": "string",
|
||||
|
||||
"postgres\_initdb\_args": "string",
|
||||
|
||||
"postgres\_host\_auth\_method": "string",
|
||||
|
||||
"postgres\_conf": "string",
|
||||
|
||||
"destination\_uuid": "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-postgresql#responses)
|
||||
|
||||
--------------------------------------------------------------------------------------------------------
|
||||
|
||||
200400401422
|
||||
|
||||
Database updated
|
||||
|
||||
POST
|
||||
|
||||
/databases/postgresql
|
||||
|
||||
Playground[](https://coolify.io/docs/api-reference/api/operations/create-database-postgresql#playground)
|
||||
|
||||
----------------------------------------------------------------------------------------------------------
|
||||
|
||||
Authorization
|
||||
|
||||
bearerAuth
|
||||
|
||||
Body
|
||||
|
||||
Try it out
|
||||
|
||||
Samples[](https://coolify.io/docs/api-reference/api/operations/create-database-postgresql#samples)
|
||||
|
||||
----------------------------------------------------------------------------------------------------
|
||||
|
||||
Powered by [VitePress OpenAPI](https://github.com/enzonotario/vitepress-openapi)
|
||||
Reference in New Issue
Block a user