Queries the snapshot size change monitoring data within the last 30 days in a region.
Operation description
Operation description
When you call this operation, take note of the following items:
-
A maximum of 400 data entries can be returned at a time. The condition
(EndTime – StartTime) / Periodmust be less than or equal to 400. In other words, the response parameterTotalCountcannot exceed 400. Otherwise, theInvalidParameter.TooManyDataQueriederror is returned. -
You can query monitoring data only within the last 30 days. The
StartTimeparameter cannot be more than 30 days earlier than the current time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeSnapshotMonitorData |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call DescribeRegions to query the most recent region list. |
cn-hangzhou |
| StartTime |
string |
Yes |
The beginning of the time range to query snapshot size change data. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. If the value of seconds (ss) is not 00, the time is automatically rounded up to the next minute. |
2019-05-10T00:00:00Z |
| EndTime |
string |
Yes |
The end of the time range to query snapshot size change data. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. If the value of seconds (ss) is not 00, the time is automatically rounded up to the next minute. |
2019-05-10T03:00:00Z |
| Period |
integer |
No |
The interval at which to query snapshot size change data. Unit: seconds. Valid values:
Default value: 60. Valid values:
|
60 |
| Category |
string |
No |
The snapshot type. Valid values:
Default value: Standard. |
Standard |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
9F8163A8-F5DE-47A2-A572-4E062D223E09 |
| MonitorData |
object |
||
| DataPoint |
array<object> |
The collection of snapshot size change data. |
|
|
object |
|||
| Size |
integer |
The total snapshot size. Unit: bytes. |
243036848128 |
| TimeStamp |
string |
The timestamp that corresponds to a snapshot size value. |
2019-05-10T04:00:00Z |
Examples
Success response
JSON format
{
"RequestId": "9F8163A8-F5DE-47A2-A572-4E062D223E09",
"MonitorData": {
"DataPoint": [
{
"Size": 243036848128,
"TimeStamp": "2019-05-10T04:00:00Z"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | The specified parameter "StartTime" is not valid. | The specified StartTime parameter does not conform to the specification. |
| 400 | InvalidEndTime.Malformed | The specified parameter "EndTime" is not valid. | The specified EndTime parameter is invalid. |
| 400 | InvalidPeriod.ValueNotSupported | The specified parameter "Period" is not valid. | |
| 400 | InvalidStartTime.TooEarly | The specified parameter "StartTime" is too early. | |
| 400 | InvalidParameter.TooManyDataQueried | Too many data queried. | The monitoring data node is out of range. |
| 400 | Throttling | Request was denied due to request throttling. | The request is throttled. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.