Skip to Content

View the list of purchased resource packs - DescribeUFilePkg

Overview

View the list of purchased resource packs

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeUFilePkg.Yes
PublicKeystringThe user’s public key can be obtained from Console Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesNo
ZonestringAvailability Zones. See List of Availability ZonesNo
ProjectIdstringProject ID. Leaving this field blank will default to the project ID. This is required for sub-accounts. Please refer to the GetProjectList APINo
ResourceIdstringTo query a specified resource package, the Region field is required when specifying ResourceId.No
ExpiredintThe default value is 0, which means querying all purchased resource packages; 1 means querying expired packages; and -1 means querying non-expired packages.No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
Pkgsarray[UFilePkg]Purchased resource packsYes

Data Model

UFilePkg

Field NameTypeDescription InformationRequired
RegionstringResource Package RegionYes
ResourceIdstringResource Package IDNo
PkgNamestringResource Package NameNo
PkgTypeintResource Package Type IDNo
AmountintResource Package CapacityNo
RemainAmountstringRemaining Capacity of Resource Package (Only Supports Traffic Package)No
CreateTimeintResource Package Creation TimeNo
ExpiredTimeintResource Package Expiration TimeNo

Example

Request Example

https://api.surfercloud.com/?Action=DescribeUFilePkg &Region=cn-zj &Zone=cn-zj-01 &ProjectId=xhsJdhxW &ResourceId=qcurMiDR &Exprired=0 &Expired=0

Response Example

{ "Action": "DescribeUFilePkgResponse", "Pkgs": [ { "Amount": 4, "CreateTime": 9, "ExpiredTime": 9, "PkgType": 8, "RemainAmount": "tBdjYLgy", "ResourceId": "TNMDmPhR" } ], "RetCode": 0 }