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
https://business.ap-southeast-1.aliyuncs.com/?Action=QueryResourcePackageInstances&ProductCode=cdnflowbag
Sample responses
"Data": { "TotalCount": 2, "PageSize": 20, "Instances": { "Instance": [ { "PackageType": "FPT_cdnflowbag_InlandNetworkOut", "Region": "*", "TotalAmountUnit": "GB", "RemainingAmountUnit": "GB", "InstanceId": "cdnflowbag_intl-sg-syk0nqx3s001", "TotalAmount": "500.000", "Remark": "cdnflowbag_intl", "ExpiryTime": "2019-06-19T16:00:00Z", "EffectiveTime": "2018-06-19T07:45:37Z", "RemainingAmount": "500.000" } ] }, "HostId": "sg", "PageNum": 1