Updated on 2026-02-04 GMT+08:00

Querying the Backup Usage Overview

Function

This API is used to query the backup usage overview.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
  • 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

  • URI format

    GET /v3/{project_id}/backups/backup-usage

  • Parameter description
Table 1 Parameters

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

Table 2 Parameters

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
    }

Status Code

Error Code

For details, see Error Codes.