All Products
Search
Document Center

Elastic Compute Service:DescribeSnapshotPackage

Last Updated:Sep 29, 2024

Queries purchased Object Storage Service (OSS) storage plans in a specified Alibaba Cloud region.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ecs:DescribeSnapshotPackageget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberintegerNo

The region ID of the snapshot. You can call the DescribeRegions operation to query the most recent region list.

1
PageSizeintegerNo

The number of entries returned per page.

10
RegionIdstringYes

The ID of the request.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object
PageSizeinteger

The page number of the returned page.

10
RequestIdstring

The total number of returned OSS storage plans.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
PageNumberinteger

Details about the OSS storage plans.

1
TotalCountinteger

The name of the OSS storage plan.

1
SnapshotPackagesarray<object>

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.

SnapshotPackageobject
DisplayNamestring

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.

testDisplayName
EndTimestring

The maximum storage capacity offered by the OSS storage plan.

2018-11-30T06:32:31Z
StartTimestring

DescribeSnapshotPackage

2017-11-30T06:32:31Z

Examples

Sample success responses

JSONformat

{
  "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 codes

For a list of error codes, visit the Service error codes.