查看当前账号下的沙箱实例列表。
接口说明
当前接口仅支持 DBS API 服务 2021-01-01 版本。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
dbs:DescribeSandboxInstances |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| BackupPlanId |
string |
是 |
备份计划 ID,您可以通过 DescribeBackupPlanList 接口获取该参数。 说明
若您的实例为 RDS MySQL,请通过自动添加数据源功能,将 RDS 自动添加至 DBS 中,即可获取备份计划 ID。 |
1hxxxx8xxxxxa |
| InstanceId |
string |
否 |
沙箱实例 ID,您可以通过 CreateSandboxInstance 接口获取该参数。 |
1jxxxxnxxx1xc |
| PageSize |
string |
否 |
每页的记录数。取值:
|
30 |
| PageNumber |
string |
否 |
页码,大于 0 且不超过 Integer 的最大值,默认值为 1。 |
1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Data |
string |
参数说明:
|
{ "number": 1, "size": 1, "content": [ { "connectionString": "172.26.178.229:3306", "restoreSeconds": 15, "restoreTime": "2021-08-11T07:26:24Z", "instanceId": "1jxxxxx9xxxms", "backupSetId": "1hxxxx8xxxxxa_20210811152624", "createTime": "2021-08-12T07:40:29Z", "backupPlanId": "1hxxxx8xxxxxa", "vpcId": "vpc-bp1dxxxxxjy0xxxxx1xxp", "sandboxSpecification": "MYSQL_1C_1M_SD", "status": "running", "vpcSwitchId": "vsw-bp1bxxxxxumxxxxxwxx2w" } ], "totalElements": 1 } |
| RequestId |
string |
请求 ID。 |
4F1888AC-1138-4995-B9FE-D2734F61C058 |
| ErrCode |
string |
错误码。 |
Param.NotFound |
| Success |
string |
是否请求成功。 |
true |
| ErrMessage |
string |
错误信息。 |
The specified parameter %s value is not valid. |
| Code |
string |
错误码。 |
Param.NotFound |
| Message |
string |
错误信息。 |
The specified parameter %s value is not valid. |
示例
正常返回示例
JSON格式
{
"Data": " { \"number\": 1, \"size\": 1, \"content\": [ { \"connectionString\": \"172.26.178.229:3306\", \"restoreSeconds\": 15, \"restoreTime\": \"2021-08-11T07:26:24Z\", \"instanceId\": \"1jxxxxx9xxxms\", \"backupSetId\": \"1hxxxx8xxxxxa_20210811152624\", \"createTime\": \"2021-08-12T07:40:29Z\", \"backupPlanId\": \"1hxxxx8xxxxxa\", \"vpcId\": \"vpc-bp1dxxxxxjy0xxxxx1xxp\", \"sandboxSpecification\": \"MYSQL_1C_1M_SD\", \"status\": \"running\", \"vpcSwitchId\": \"vsw-bp1bxxxxxumxxxxxwxx2w\" } ], \"totalElements\": 1 }",
"RequestId": "4F1888AC-1138-4995-B9FE-D2734F61C058",
"ErrCode": "Param.NotFound",
"Success": "true",
"ErrMessage": "The specified parameter %s value is not valid.",
"Code": "Param.NotFound",
"Message": "The specified parameter %s value is not valid."
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 403 | Request.Forbidden | Have no Permissions | 当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。