Queries the Object Storage Service (OSS) storage plans that you purchased in an Alibaba Cloud region. OSS storage plans can be used to offset the storage fees for standard snapshots instead of local snapshots.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeSnapshotPackage |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number. Pages start from page 1. Default value: 1 |
1 |
| PageSize |
integer |
No |
The number of entries per page. Maximum value: 1 to 100. Default value: 10 |
10 |
| RegionId |
string |
Yes |
The ID of the request. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
The number of entries per page. |
10 |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| PageNumber |
integer |
The page number. |
1 |
| TotalCount |
integer |
The total number of OSS storage plans. |
1 |
| SnapshotPackages |
object |
||
| SnapshotPackage |
array<object> |
Details about the OSS storage plans. |
|
|
object |
|||
| DisplayName |
string |
The name of the OSS storage plan. |
testDisplayName |
| EndTime |
string |
The time when the OSS storage plan expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2018-11-30T06:32:31Z |
| StartTime |
string |
The time when the OSS storage plan was purchased. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2017-11-30T06:32:31Z |
| InitCapacity |
integer |
The maximum storage capacity offered by the OSS storage plan. |
500 |
Examples
Success response
JSON format
{
"PageSize": 10,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"PageNumber": 1,
"TotalCount": 1,
"SnapshotPackages": {
"SnapshotPackage": [
{
"DisplayName": "testDisplayName",
"EndTime": "2018-11-30T06:32:31Z",
"StartTime": "2017-11-30T06:32:31Z",
"InitCapacity": 500
}
]
}
}
Error response
JSON format
{
"TotalCount": "1",
"PageNumber": "1",
"PageSize": "5",
"SnapshotPackages": {
"SnapshotPackage": [
"StartTime": "2017-11-30T06:32:31Z",
"EndTime": "2018-11-30T06:32:31Z",
"InitCapacity": "500",
"DisplayName": "sp-snapshotpackage1"
]
},
"RequestId": "ACD9BBB0-A9D1-46D7-9630-B7A69889E110"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.