Queries information about a namespace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gpdb:DescribeNamespace |
create |
*Namespace
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
No |
The instance ID. Note
You can call the DescribeDBInstances operation to query all AnalyticDB for PostgreSQL instances in a region, including instance IDs. |
gp-bp152460513z**** |
| ManagerAccount |
string |
Yes |
The name of the manager account that has the rds_superuser permission. Note
You can create an account on the Account Management page of the AnalyticDB for PostgreSQL console or by calling the CreateAccount operation. |
testaccount |
| ManagerAccountPassword |
string |
Yes |
The password of the manager account. |
testpassword |
| Namespace |
string |
Yes |
The name of the namespace. Default value: public. Note
You can call the ListNamespaces operation to query namespaces. |
mynamespace |
| RegionId |
string |
Yes |
The region ID of the instance. |
cn-hangzhou |
| WorkspaceId |
string |
No |
The workspace ID. A workspace consists of multiple AnalyticDB for PostgreSQL instances. Specify either WorkspaceId or DBInstanceId. If you specify both, WorkspaceId takes effect. |
gp-ws-***** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
ABB39CC3-4488-4857-905D-2E4A051D0521 |
| NamespaceInfo |
object |
The queried namespace. |
|
|
string |
The queried namespace. |
{} |
|
| Namespace |
string |
The name of the namespace. |
mynamespace |
| DBInstanceId |
string |
The instance ID. |
gp-bp152460513z**** |
| RegionId |
string |
The region ID of the instance. |
cn-hangzhou |
| Status |
string |
Whether the request was successful. Valid values:
|
success |
| Message |
string |
The response message. |
Successful |
Examples
Success response
JSON format
{
"RequestId": "ABB39CC3-4488-4857-905D-2E4A051D0521",
"NamespaceInfo": {
"key": "{}"
},
"Namespace": "mynamespace",
"DBInstanceId": "gp-bp152460513z****",
"RegionId": "cn-hangzhou",
"Status": "success",
"Message": "Successful"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.