Retrieve a Single Database

To retrieve a single database in your PostgreSQL cluster, send a GET request to the database endpoint.

Note: The sample UUID in all following request examples is 498ae72f-411f-11eb-9d07-046c59cc737e.

Endpoint

Use the following endpoint to retrieve a single database in your PostgreSQL cluster:

https://api.ionos.com/databases/postgresql/clusters/{clusterId}/databases/postgres

Request

curl --request GET \
    --user "[email protected]:Mb2.r5oHf-0t" \
    https://api.ionos.com/databases/postgresql/clusters/498ae72f-411f-11eb-9d07-046c59cc737e/databases/postgres

Response

{
  "id": "13852d13-dd87-5973-ae2c-12ecc918ee0f",
  "properties": {
    "databasename": "postgres",
    "databaseowner": "postgres"
  },
  "type": "database"
}

Last updated

Was this helpful?