Queries the details of a database in an instance by calling the DescribeDrdsDB operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
drds:DescribeDrdsDB |
get |
*instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DrdsInstanceId |
string |
Yes |
The instance ID. |
drds********* |
| DbName |
string |
Yes |
The database name. |
db_test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
The result of the request. |
true |
| RequestId |
string |
The request ID. |
58FB0EC7-CF71-4E48-92FB-CF070D****** |
| Data |
object |
The database details. |
|
| Status |
string |
The database status. Valid values:
|
NORMAL |
| DbName |
string |
The database name. |
db_test |
| Schema |
string |
The physical name of the database. |
db_test******************* |
| CreateTime |
string |
The time when the database was created. The value is a UNIX timestamp in milliseconds (ms). |
1602050276000 |
| Mode |
string |
The partitioning mode of the database. Valid values:
|
HORIZONTAL |
| DbInstType |
string |
The storage type of the database. |
RDS |
| InstRole |
string |
The type of the instance to which the database belongs. Valid values:
|
MASTER |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "58FB0EC7-CF71-4E48-92FB-CF070D******",
"Data": {
"Status": "NORMAL",
"DbName": "db_test",
"Schema": "db_test*******************",
"CreateTime": "1602050276000",
"Mode": "HORIZONTAL",
"DbInstType": "RDS",
"InstRole": "MASTER"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDbName.NotFound | The Drds DbName provided does not exist in our records. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.