該介面用於查看備份計劃計費資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
dbs:DescribeBackupPlanBilling |
get |
*BackupPlan
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| BackupPlanId |
string |
是 |
備份計劃 ID,可通過調用 DescribeBackupPlanList 介面擷取該參數的值。 |
dbstooi01ex**** |
| ClientToken |
string |
否 |
用於保證請求的等冪性,防止重複提交請求。由用戶端產生該參數值,要保證在不同請求間唯一,最大值不超過 64 個 ASCII 字元,且該參數值中不能包含非 ASCII 字元。 |
ETnLKlblzczshOTUbOCzxxxxxxxxxx |
| ShowStorageType |
boolean |
否 |
是否展示儲存類型。 |
true |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| HttpStatusCode |
integer |
錯誤碼值。 |
400 |
| RequestId |
string |
請求 ID。 |
DD7BC7F5-4E3A-5DF3-BFF9-831503C4D9E3 |
| ErrCode |
string |
錯誤碼字串。 |
InvalidParameter |
| Success |
boolean |
請求成功狀態。 |
true |
| ErrMessage |
string |
錯誤資訊。 |
This backupPlan can't support this action |
| Item |
object |
備份計劃計費資訊列表。 |
|
| BuyCreateTimestamp |
integer |
執行個體購買時間,格式為時間戳記。 |
1658372830000 |
| FullStorageSize |
integer |
執行個體全量備份資料內建儲存量,單位為位元組(B)。 |
151 |
| BuyExpiredTimestamp |
integer |
執行個體到期時間,格式為時間戳記。 說明
該參數僅在 BuyChargeType 選擇 PREPAY 時顯示。 |
1661097600000 |
| BuySpec |
string |
執行個體規格。 |
micro |
| QuotaEndTimestamp |
integer |
免費備份流量計費周期結束時間,格式為時間戳記。 |
1659283200000 |
| IsExpired |
boolean |
執行個體是否到期。 說明
該參數僅在 BuyChargeType 選擇 PREPAY 時顯示。 |
true |
| QuotaStartTimestamp |
integer |
免費備份流量計費周期開始時間,格式為時間戳記。 |
1656604800000 |
| TotalFreeBytes |
integer |
當月免費備份總流量,單位為位元組(B)。 說明
該參數僅在 BuyChargeType 選擇 PREPAY 且 IsFreeBytesUnlimited 為 false 時顯示。 |
858993459200 |
| PaiedBytes |
integer |
當月付費備份流量合計,單位為位元組(B)。 |
0 |
| UsedFullBytes |
integer |
當月付費全量備份流量,單位為位元組(B)。 |
0 |
| IsFreeBytesUnlimited |
boolean |
執行個體是否為無備份資料傳輸量上限規格。 |
true |
| ContStorageSize |
integer |
執行個體增量備份資料內建儲存量,單位為位元組(B)。 |
10437039 |
| BuyChargeType |
string |
購買費用類型,傳回值如下:
|
PREPAY |
| UsedIncrementBytes |
integer |
當月付費增量備份流量,單位為位元組(B)。 |
9406734 |
樣本
正常返回樣本
JSON格式
{
"HttpStatusCode": 400,
"RequestId": "DD7BC7F5-4E3A-5DF3-BFF9-831503C4D9E3",
"ErrCode": "InvalidParameter",
"Success": true,
"ErrMessage": "This backupPlan can't support this action",
"Item": {
"BuyCreateTimestamp": 1658372830000,
"FullStorageSize": 151,
"BuyExpiredTimestamp": 1661097600000,
"BuySpec": "micro",
"QuotaEndTimestamp": 1659283200000,
"IsExpired": true,
"QuotaStartTimestamp": 1656604800000,
"TotalFreeBytes": 858993459200,
"PaiedBytes": 0,
"UsedFullBytes": 0,
"IsFreeBytesUnlimited": true,
"ContStorageSize": 10437039,
"BuyChargeType": "PREPAY",
"UsedIncrementBytes": 9406734
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 403 | Request.Forbidden | Have no Permissions | 當前操作未被授權,請聯絡主帳號在RAM控制台進行授權後再執行操作 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。