You need to enable JavaScript to run this app.
导航
DescribeBackupStats
最近更新时间:2025.01.22 12:04:51首次发布时间:2025.01.22 12:04:51

调用 DescribeBackupStats 接口查询备份文件对实例存储空间的使用信息。

请求类型

同步请求。

调试

请求参数

参数
类型
是否必选
示例值
描述
InstanceId
String
mysql-cf4f3ddc****
实例 ID。
ProjectName
String
default
实例所属的项目。

返回参数

参数
类型
示例值
描述
InstanceId
String
mysql-cf4f3ddc****
实例 ID。
ProjectName
String
default
实例所属的项目。
UsageStats
Object[]
请参见返回示例。
备份对存储空间使用量的统计信息。

示例

请求示例

POST /?Action=DescribeBackupStats&Version=2022-01-01 HTTP/1.1
Content-Type: application/json
Host: rds.volcengineapi.com
X-Date: 20211202T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****
{
    "InstanceId": "mysql-cf4f3ddc****"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20241015162054281DA795450D07933B34-5c0ce6",
        "Action": "DescribeBackupStats",
        "Version": "2022-01-01",
        "Service": "rds_mysql",
        "Region": "cn-guangzhou"
    },
    "Result": {
        "InstanceId": "mysql-cf4f3ddc****",
        "ProjectName": "",
        "UsageStats": [
            {
                "Quantity": 254751807,
                "StatItem": "TotalBasicSpaceUsage",
                "StatTime": "2024-10-15T08:13:45.000Z"
            },
            {
                "Quantity": 132250077,
                "StatItem": "TotalCrossRegionSpaceUsage",
                "StatTime": "2024-10-15T08:13:45.000Z"
            },
            {
                "Quantity": 96760802,
                "StatItem": "BasicDataBackupUsage",
                "StatTime": "2024-10-15T08:13:45.000Z"
            },
            {
                "Quantity": 76523833,
                "StatItem": "CrossRegionDataBackupUsage",
                "StatTime": "2024-10-15T08:13:45.000Z"
            },
            {
                "Quantity": 157991005,
                "StatItem": "BasicBinlogBackupUsage",
                "StatTime": "2024-10-15T08:13:45.000Z"
            },
            {
                "Quantity": 55726244,
                "StatItem": "CrossRegionBinlogBackupUsage",
                "StatTime": "2024-10-15T08:13:45.000Z"
            }
        ]
    }
}

错误码

更多详情,请参见错误码