查詢沙箱備份組。
介面說明
執行該操作前,您需要先開啟資料庫執行個體的沙箱功能,詳情請參見RDS MySQL 應急恢複或自建 MySQL 應急恢複(沙箱執行個體)。 當前介面僅支援 DBS API 服務 2021-01-01 版本。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
dbs:DescribeSandboxBackupSets |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| BackupPlanId |
string |
是 |
備份計劃 ID。 說明
若您的執行個體為 RDS MySQL,請通過自動添加資料來源功能,將 RDS 自動添加至 DBS 中,即可擷取備份計劃 ID。 |
1hxxxx8xxxxxa |
| BackupSetId |
string |
否 |
備份組 ID。若您傳入該參數,僅返回該備份組的快照資訊;若不傳入該參數,將返回該備份計劃的所有快照資訊。 |
1xxxx2xxxxx1e |
| PageSize |
string |
否 |
每頁的記錄數。取值如下:
|
30 |
| PageNumber |
string |
否 |
頁碼,大於 0 且不超過 Integer 的最大值,預設值為 1。 |
1 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Data |
string |
參數說明:
|
"Data": { "number": 2, "size": 2, "content": [ { "backupSetTime": "2021-08-28T23:12:31Z", "backupSetId": "Inc_1hxxxx8xxxxxa_20210801064200_mysql-bin.000134", "backupSetType": "Inc", "backupPlanId": "1hxxxx8xxxxxa" }, { "backupSetTime": "2021-08-28T22:42:28Z", "backupSetId": "1hxxxx8xxxxxa_20210829064228", "backupSetType": "FULL", "backupPlanId": "1hxxxx8xxxxxa" } ], "totalElements": 2 }, |
| 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": " \"Data\": { \"number\": 2, \"size\": 2, \"content\": [ { \"backupSetTime\": \"2021-08-28T23:12:31Z\", \"backupSetId\": \"Inc_1hxxxx8xxxxxa_20210801064200_mysql-bin.000134\", \"backupSetType\": \"Inc\", \"backupPlanId\": \"1hxxxx8xxxxxa\" }, { \"backupSetTime\": \"2021-08-28T22:42:28Z\", \"backupSetId\": \"1hxxxx8xxxxxa_20210829064228\", \"backupSetType\": \"FULL\", \"backupPlanId\": \"1hxxxx8xxxxxa\" } ], \"totalElements\": 2 },",
"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控制台進行授權後再執行操作 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。