For the complete documentation index, see llms.txt. This page is also available as Markdown.

List System Users

Set the system parameter to true to view system users too. These users are required for administration purposes and cannot be changed or deleted.

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

Endpoint

Use the following endpoint to get a list of all users, including system users, in your PostgreSQL cluster:

https://api.ionos.com/databases/postgresql/clusters/{clusterId}/users?system=true

Note: The sample UUID is 498ae72f-411f-11eb-9d07-046c59cc737e.

Request

curl --request GET \
    --user "clientname@ionos.com:Mb2.r5oHf-0t" \

Response

{
  "id": "c90a5396-1a43-538b-a4c8-564cd0eafc07",
  "items": [
    {
      "id": "6e209957-a468-562e-9867-2a69069044c3",
      "properties": {
        "system": true,
        "username": "ionos_cloud_admin"
      },
      "type": "user"
    },
    {
      "id": "27d4069e-4df9-56cf-8114-1a846589c73a",
      "properties": {
        "system": true,
        "username": "postgres"
      },
      "type": "user"
    },
    {
      "id": "b35402eb-bd7b-512d-92c9-9726db47c101",
      "properties": {
        "system": false,
        "username": "someuser"
      },
      "type": "user"
    },
    {
      "id": "e1ca756d-957e-5e5b-9089-56943078f98c",
      "properties": {
        "system": true,
        "username": "standby"
      },
      "type": "user"
    }
  ],
  "limit": 100,
  "offset": 0,
  "type": "collection"
}

Last updated

Was this helpful?