Querying the Backup Usage Overview
Function
This API is used to query the backup usage overview.
- Before calling this API, learn how to authenticate it.
- Before calling this API, learn about the request header parameters.
Authorization Information
- If you are using role/policy-based authorization, see Permissions and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
|
Action |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
Dependencies |
|---|---|---|---|---|---|
|
rds:instance:listAll |
read |
- |
- |
rds:instance:list |
- |
URI
- Parameter description
|
Parameter |
Mandatory |
Description |
|---|---|---|
|
project_id |
Yes |
Definition Project ID of a tenant in a region. Constraints The value cannot be empty. Range To obtain the value, see Obtaining a Project ID. Default Value N/A |
Request
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
engine |
No |
String |
Definition DB engine name. Constraints Only RDS for MySQL is supported. Range mysql Default Value N/A |
Example Request
Query the backup usage overview.
GET https://{endpoint}/v3/0483b6b16e954cb88930a360d2c4e663/instances/backups/backup-usage?engine=mysql
{
}
Response
- Normal response
Table 3 Parameters Parameter
Type
Description
backup_use_space
Double
Definition
Total space usage of backups (in MB), that is, the total size of all backups.
Range
N/A
db_use_space
Double
Definition
Total space usage of log backups (in MB), including physical full backups, binlog backups, and audit logs in the current region.
Range
N/A
rds_snapshot_use_space
Double
Definition
Total space usage of CBR snapshot backups billed by RDS, in MB.
Range
N/A
offsite_use_space
Double
Definition
Total space usage of cross-region backups (in MB), including physical full backups and binlog backups in target regions.
Range
N/A
- Example normal response
{ "backup_use_space":800, "db_use_space":300, "rds_snapshot_use_space":400, "offsite_use_space":100 }
- Abnormal response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot