Retrieves the year-on-year (YoY) change in storage usage.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
odps:GetStorageSummaryCompared | get | *All Resource
| None | None |
Request syntax
GET /api/v1/observations/analysis/storage/{type}/compared HTTP/1.1Request parameters
Parameter | Type | Required | Description | Example |
tenantId | string | No | The tenant ID. You can log on to the MaxCompute console and choose Tenant Property in the navigation pane on the left to view the tenant ID. | 483212237127906 |
region | string | No | The region ID. | cn-beijing |
beginDate | string | Yes | The start date. | 20250601 |
endDate | string | Yes | The end date. | 20250604 |
type | string | Yes | The storage metric for comparison. Valid values:
| size |
| projects | array | No | The list of projects. | |
string | No | The project name. | prj |
Response elements
Element | Type | Description | Example |
object | PopResult | ||
requestId | string | The request ID. | 0bc3b4b016674434996033675e71ee |
httpCode | integer | The HTTP status code.
| 200 |
errorCode | string | The error code. | success |
errorMsg | string | The error message. | plan \"***\" does not exist |
| data | object | The data returned. | |
beginDate | string | The start date. | 20250601 |
endDate | string | The end date. | 20250604 |
| rate | object | The year-on-year (YoY) change rate of the storage usage from the start date to the end date. Valid values:
| |
number | The YoY change rate. | 0.06365304264561006 | |
| value | object | The change in the storage usage from the start date to the end date. Valid values:
| |
number | The change value. | -13.437440000000606 | |
| unit | object | The unit of the change in the storage usage from the start date to the end date. Valid values:
| |
string | The unit of the change value. | GB |
Examples
Success response
JSON format
{
"requestId": "0bc3b4b016674434996033675e71ee",
"httpCode": 200,
"errorCode": "success",
"errorMsg": "plan \\\"***\\\" does not exist",
"data": {
"beginDate": "20250601",
"endDate": "20250604",
"rate": {
"key": 0.06365304264561006
},
"value": {
"key": -13.437440000000606
},
"unit": {
"key": "GB"
}
}
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.