DescribeDrdsDB
查询实例下的数据库详情
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeDrdsDB |
系统规定参数。取值:DescribeDrdsDB。 |
DbName | String | 是 | db_test |
数据库名称 |
DrdsInstanceId | String | 是 | drdshbgadmcop1i7 |
所属实例id |
AccessKeyId | String | 否 | xxxxxxxxxx |
身份key,详见公共参数 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Data |
数据库详情 |
||
CreateTime | String | 1568949855000 |
数据库创建时间戳 |
DbInstType | String | RDS |
数据库的存储类型:RDS 或者 POLARDB |
DbName | String | db_0 |
数据库名称 |
InstRole | String | MASTER |
数据库类型:MASTER主实例, SLAVE 只读实例 |
Mode | String | HORIZONTAL |
数据库拆分方式:HORIZONTAL 是水平拆分;VERTICAL是垂直拆分 |
Schema | String | db_0_1568949906587wpyh |
数据库物理名 |
Status | String | NORMAL |
数据库状,TO_BE_INIT:创建中,NORMAL:运行中 |
RequestId | String | 05203D07-8447-48D0-BED5-2F00BFD40630 |
请求id |
Success | Boolean | true |
请求结果 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeDrdsDB
&DbName=db_test
&DrdsInstanceId=drdshbgadmcop1i7
&<公共请求参数>
正常返回示例
XML
格式
<DescribeDrdsDBResponse>
<RequestId>45203D07-8447-48D0-BED5-2F00BFD40630</RequestId>
<Data>
<Status>NORMAL</Status>
<DbInstType>RDS</DbInstType>
<InstRole>MASTER</InstRole>
<Schema>db_0_1568949906587wpyh</Schema>
<CreateTime>1568949855000</CreateTime>
<Mode>HORIZONTAL</Mode>
<DbName>db_0</DbName>
</Data>
<Success>true</Success>
</DescribeDrdsDBResponse>
JSON
格式
{
"Data":{
"Status":"NORMAL",
"DbName":"db_0",
"CreateTime":1568949855000,
"Schema":"db_0_1568949906587wpyh",
"DbInstType":"RDS",
"Mode":"HORIZONTAL",
"InstRole":"MASTER"
},
"RequestId":"45203D07-8447-48D0-BED5-2F00BFD40630",
"Success":true
}
错误码
访问错误中心查看更多错误码。
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论