Queries the backup usage for a MongoDB replica set or sharded cluster instance that uses cloud disks.
Operation description
Backup usage for a sharded cluster is billed on a per-shard basis. You can use this operation to query the backup usage for a single shard.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeBackupStorage |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The ID of the region where the instance is located. Call the DescribeDBInstanceAttribute operation to query the region ID. |
cn-bejing |
| DBInstanceId |
string |
Yes |
The instance ID. |
dds-2zeb2d64cb46xxxx |
| NodeId |
string |
No |
The ID of the shard node in the sharded cluster instance. Note
This parameter is required if the DBInstanceId parameter specifies the ID of a sharded cluster instance. |
d-2zee48956b4axxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D648B367-15B6-1B42-BD4B-4XXXXXXXXX |
| FullStorageSize |
integer |
The storage space used by full backups. Unit: bytes. Note
Instances that use cloud disks are backed up using snapshots. The size of a full backup is the total size of the snapshot chain. |
789221621 |
| LogStorageSize |
integer |
The storage space used by log backups. Unit: bytes. |
7892216 |
| FreeSize |
integer |
The free backup quota for the instance. Unit: bytes. |
42949672960 |
Examples
Success response
JSON format
{
"RequestId": "D648B367-15B6-1B42-BD4B-4XXXXXXXXX",
"FullStorageSize": 789221621,
"LogStorageSize": 7892216,
"FreeSize": 42949672960
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDBInstance.Malformed | Too many instance ids or instance id format is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.