Creates a database.
Debugging
Authorization information
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| DBInstanceId | string | Yes | The cluster ID. Note
You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
| gp-xxxxxxxxx |
| DatabaseName | string | Yes | The name of the database.
| test01 |
| CharacterSetName | string | No | The character set. For more information about the value range, see Document https://www.postgresql.org/docs/current/multibyte.html. Default value: UTF-8. | UTF8 |
| Collate | string | No | Database locale parameter (specifies string comparison/sorting rules). Note
| en_US.utf8 |
| Ctype | string | No | Database locale parameter (defines character classification/case conversion rules). Note
| en_US.utf8 |
| Owner | string | Yes | The owner of the table.
| testadb |
| Description | string | No | The description of the database.
| A user management database storing customer profiles. |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "ABB39CC3-4488-4857-905D-2E4A051D0521"
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2025-11-05 | Add Operation | View Change Details |
