All Products
Search
Document Center

QueryResourcePackageInstances

Last Updated: Nov 14, 2019

API Name

QueryResourcePackageInstances

Overview

You can call this operation to query the instance of a specified resource package. Query package with a failure time of one year.

Request parameters

Name Type Required Description
ProductCode String Yes The code of the specified product.
ExpiryTimeStart String No The start time of validity. The date format follows the ISO8601 standard and uses UTC time. Format: yyyy-MM-ddTHH:mm:ssZ
ExpiryTimeEnd String No The end time of validity. The date format follows the ISO8601 standard and uses UTC time. Format: yyyy-MM-ddTHH:mm:ssZ
PageNum Integer No Default value: 1.
PageSize Integer No Default value: 20. Maximum value:100.

Response parameters

Name Type Description
Instances Instance The details array of instances. For more information, see Data dictionary 8.5.7

Error codes

Error code Description HTTP status code Description
NotApplicable This API is not applicable for caller. 400 The error message returned when you are not authorized to use the API.
MissingParameter The specified parameter xx is mandatory for this request. 400 The error message returned when the xx parameter is not specified.
InvalidParameter The specified parameter xx is not valid. 400 The error message returned when the xx parameter is invalid.
InvalidModuleCode The specified moduleCode is not valid. 400 The error message returned when the specified moduleCode parameter is invalid.
InvalidConfigCode The specified configCode is not valid. 400 The error message returned when the specified configCode parameter is invalid.
InvalidOwner The specified owner doesn’t belong to caller. 400 The error message returned when the specified owner does not belong to the caller.
InvalidCaller The specified caller doesn’t exists. 400 The error message returned when the caller is invalid.
InternalError The request processing has failed due to some unknown error, exception or failure. 400 The error message returned when an unknown internal error occurs.
ProductNotFind Can not find inquired product, it may not exist. 400 The error message returned when the specified product is invalid.

Sample requests

  1. https://business.ap-southeast-1.aliyuncs.com/?Action=QueryResourcePackageInstances
  2. &ProductCode=cdnflowbag

Sample responses

  1. "Data": {
  2. "TotalCount": 2,
  3. "PageSize": 20,
  4. "Instances": {
  5. "Instance": [
  6. {
  7. "PackageType": "FPT_cdnflowbag_InlandNetworkOut",
  8. "Region": "*",
  9. "TotalAmountUnit": "GB",
  10. "RemainingAmountUnit": "GB",
  11. "InstanceId": "cdnflowbag_intl-sg-syk0nqx3s001",
  12. "TotalAmount": "500.000",
  13. "Remark": "cdnflowbag_intl",
  14. "ExpiryTime": "2019-06-19T16:00:00Z",
  15. "EffectiveTime": "2018-06-19T07:45:37Z",
  16. "RemainingAmount": "500.000"
  17. }
  18. ]
  19. },
  20. "HostId": "sg",
  21. "PageNum": 1