获取云数据库状态-DescribeUDBInstanceState

获取UDB实例状态

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域, 参见 地域和可用区列表Yes
Zonestring可用区, 参见 可用区列表No
ProjectIdstring项目编号No
DBIdstring实例的Id,该值可以通过DescribeUDBInstance获取Yes

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
StatestringDB状态标记 Init:初始化中;Fail:安装失败; Starting:启动中; Running : 运行 ;Shutdown:关闭中; Shutoff :已关闭; Delete:已删除; Upgrading:升级中; Promoting: 提升为独库进行中; Recovering: 恢复中; Recover fail:恢复失败。No

Request Example

http(s)://api.ucloud.cn/?Action=DescribeUDBInstanceState
&Region=cn-bj2
&DBId=00f9868c-c7f5-4852-9eac-d200b678f0e1

Response Example

{
    "Action": "DescribeUDBInstanceStateResponse",
    "RetCode": 0,
    "State": "Running"
}