This operation queries the billing information of a backup plan.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dbs:DescribeBackupPlanBilling |
get |
*BackupPlan
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BackupPlanId |
string |
Yes |
The ID of the backup plan. Call the DescribeBackupPlanList operation to obtain the value of this parameter. |
dbstooi01ex**** |
| ClientToken |
string |
No |
A client token to ensure the idempotence of the request. The client generates this value. It must be unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
ETnLKlblzczshOTUbOCzxxxxxxxxxx |
| ShowStorageType |
boolean |
No |
Specifies whether to display the storage class. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
400 |
| RequestId |
string |
The request ID. |
DD7BC7F5-4E3A-5DF3-BFF9-831503C4D9E3 |
| ErrCode |
string |
The error code. |
InvalidParameter |
| Success |
boolean |
Indicates whether the request is successful. |
true |
| ErrMessage |
string |
The error message. |
This backupPlan can't support this action |
| Item |
object |
The billing information of the backup plan. |
|
| BuyCreateTimestamp |
integer |
The timestamp that indicates when the instance was purchased. |
1658372830000 |
| FullStorageSize |
integer |
The storage space used by full backup data. Unit: bytes. |
151 |
| BuyExpiredTimestamp |
integer |
The timestamp that indicates when the instance expires. Note
This parameter is returned only when BuyChargeType is set to PREPAY. |
1661097600000 |
| BuySpec |
string |
The instance type. |
micro |
| QuotaEndTimestamp |
integer |
The timestamp that indicates the end of the billing cycle for the free backup traffic. |
1659283200000 |
| IsExpired |
boolean |
Indicates whether the instance has expired. Note
This parameter is returned only when BuyChargeType is set to PREPAY. |
true |
| QuotaStartTimestamp |
integer |
The timestamp that indicates the start of the billing cycle for the free backup traffic. |
1656604800000 |
| TotalFreeBytes |
integer |
The total free backup traffic in the current month. Unit: bytes. Note
This parameter is returned only when BuyChargeType is set to PREPAY and IsFreeBytesUnlimited is false. |
858993459200 |
| PaiedBytes |
integer |
The total paid backup traffic in the current month. Unit: bytes. |
0 |
| UsedFullBytes |
integer |
The paid traffic for full backups in the current month. Unit: bytes. |
0 |
| IsFreeBytesUnlimited |
boolean |
Indicates whether the instance provides unlimited free backup traffic. |
true |
| ContStorageSize |
integer |
The storage space used by incremental backup data. Unit: bytes. |
10437039 |
| BuyChargeType |
string |
The billing method of the instance. Valid values:
|
PREPAY |
| UsedIncrementBytes |
integer |
The paid traffic for incremental backups in the current month. Unit: bytes. |
9406734 |
Examples
Success response
JSON format
{
"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
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Request.Forbidden | Have no Permissions |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.