This function retrieves the PostgreSQL® user and database name length restrictions.
Important:
When you disable the PostgreSQL role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Postgresql \ get_restrictions
{- "apiversion": 3,
- "func": "get_restrictions",
- "module": "Postgresql",
- "result": {
- "data": {
- "max_database_name_length": 63,
- "max_username_length": 63,
- "prefix": "example_"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}