You can call the GetAccountInfo operation to query the current Alibaba Cloud account used to access HTTPDNS.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetAccountInfo

The operation that you want to perform. Set the value to GetAccountInfo.

Response parameters

Parameter Type Example Description
RequestId String 50F9C40E-188D-4208-BE2C-74271337****

The ID of the request.

AccountInfo Object

The information about the current Alibaba Cloud account used to access HTTPDNS.

SignSecret String 50F9C40E****

The key used to sign the request.

SignedCount Long 611523

The number of signed resolution requests.

PackageCount Integer 0

The number of resource packages. The value of this parameter is 0.

MonthResolveCount Integer 9927326

The total number of HTTP requests resolved within the current month.

AccountId String 1337****

The ID of the Alibaba Cloud account.

UnsignedEnabled Boolean true

Indicates whether authentication is disabled for resolution requests.

UserStatus Integer 1

The status code of the Alibaba Cloud account used to access HTTPDNS. A value of 1 indicates that the account is normal. A value of 2 indicates that the account has overdue payments. A value of 3 indicates that the account is suspended.

UnsignedCount Long 1523

The number of unsigned resolution requests.

MonthHttpsResolveCount Integer 3

The total number of HTTPS requests resolved within the current month.

MonthFreeCount Integer 1500000

The number of requests that are resolved free of charge each month.

This parameter indicates the number of times HTTPDNS can be used to resolve domain names free of charge in each calendar month.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetAccountInfo
&<Common request parameters>

Sample responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<GetAccountInfoResponse>
    <RequestId>50F9C40E-188D-4208-BE2C-74271337****</RequestId>
    <AccountInfo>
        <SignSecret>50F9C40E****</SignSecret>
        <SignedCount>611523</SignedCount>
        <PackageCount>0</PackageCount>
        <MonthResolveCount>9927326</MonthResolveCount>
        <AccountId>1337****</AccountId>
        <UnsignedEnabled>true</UnsignedEnabled>
        <UserStatus>1</UserStatus>
        <UnsignedCount>1523</UnsignedCount>
        <MonthHttpsResolveCount>3</MonthHttpsResolveCount>
        <MonthFreeCount>1500000</MonthFreeCount>
    </AccountInfo>
</GetAccountInfoResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "50F9C40E-188D-4208-BE2C-74271337****",
  "AccountInfo" : {
    "SignSecret" : "50F9C40E****",
    "SignedCount" : 611523,
    "PackageCount" : 0,
    "MonthResolveCount" : 9927326,
    "AccountId" : "1337****",
    "UnsignedEnabled" : true,
    "UserStatus" : 1,
    "UnsignedCount" : 1523,
    "MonthHttpsResolveCount" : 3,
    "MonthFreeCount" : 1500000
  }
}

Error codes

For a list of error codes, see Service error codes.