Athena
ProvisionLocalDatabases

Create a local cluster PostgreSQL database for the caller client

Requires `X-Athena-Client` and a client-bound API key with `management.provision.write`.

POST
/management/provision/local/databases

Header Parameters

X-Athena-Client*string
apikey*string

Request Body

application/json

client_name?|

Required for admin API. Ignored in management API (caller X-Athena-Client is used).

database_name*string
owner?|
template?|
encoding?|
lc_collate?|
lc_ctype?|
tablespace?|
register_name?|

Optional Athena client name when registering. Defaults to database_name.

description?|
provision_schema?boolean
Defaulttrue
register_runtime?boolean
Defaulttrue
register_catalog?boolean
Defaulttrue

Response Body

application/json

curl -X POST "https://athena-cluster.com/management/provision/local/databases" \  -H "X-Athena-Client: string" \  -H "apikey: string" \  -H "Content-Type: application/json" \  -d '{    "database_name": "string"  }'
Empty
Empty
Empty
Empty
Empty
{
  "status": "error",
  "message": "string",
  "error": "string"
}