v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Postgresql
PostgreSQL Database Management

Return PostgreSQL name length restrictions

This function retrieves the PostgreSQL® user and database name length restrictions.

Important:

When you disable the PostgreSQL role, the system disables this function.

get/Postgresql/get_restrictions

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "get_restrictions",
  "module": "Postgresql",
  "result": {
    "data": {
      "max_database_name_length": 63,
      "max_username_length": 63,
      "prefix": "example_"
    },
    "status": 1
  }
}