Queries the number of snapshots stored in a region and the total size of the snapshots. If you want to view the snapshot usage information on each disk in the current region, we recommend that you call the DescribeSnapshotLinks operation to query snapshot chain information.

Request parameters

Parameter Type Required Description
Action String Yes The name of this interface. Value: DescribeSnapshotsUsage.
RegionId String Yes The ID of the region where the snapshot is stored.For more information, call DescribeRegions to obtain the latest region list.

Response parameters

Parameter Type Description
SnapshotCount Integer The number of snapshots stored in the current region.
SnapshotSize Long The size of snapshots stored in the current region. Unit: Bytes.


Request example
&<Common Request Parameters>
Response examples

XML format

JSON format
	"SnapshotCount": "5",
	"SnapshotSize": "122",
	"RequestId": "ACD9BBB0-A9D1-46D7-9630-B7A69889E110"

Error codes

All are common error codes. For more information, see API Error Center.