Queries the operation logs of a domain name.

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 QueryChangeLogList

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

PageNum Integer Yes 1

The number of the page to return. The minimum value is1.

PageSize Integer Yes 1

The number of entries to return on each page. Valid values:1 to100.

UserClientIp String No 127.0.0.1

The IP address of the client.

Lang String No en

The language of the error message to return. Valid values:

  • zh: Chinese
  • en: English

Default value: en.

DomainName String No test1.com

The domain name of the operation logs to be queried.

StartDate Long No 1522080000000

The beginning of the time range to query the operation date. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

EndDate Long No 1522080000000

The end of the time range to query the operation date. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

Response parameters

Parameter Type Example Description
RequestId String 2DEDFF32-7827-46B1-BE90-3DB8ABD91A58

The ID of the request.

TotalItemNum Integer 1000

The total number of entries returned.

CurrentPageNum Integer 1

The page number of the returned page.

TotalPageNum Integer 1000

The total number of pages returned.

PageSize Integer 1

The number of entries returned on each page.

PrePage Boolean false

Indicates whether the current page follows another page.

NextPage Boolean true

Indicates whether the current page is followed by another page.

ResultLimit Boolean true

The server can process up to 1,000 entries during the query. If the value of theResultLimit parameter istrue, the number of entries exceed 1000, so you need to narrow down the time range. Otherwise, the value of the ResultLimit parameter isfalse.

Data Array

The details about the returned operation logs.

DomainName String test1.com

The domain name of the operation logs that were queried.

Result String Failed

The operation result.

Operation String DNS modification

The action recorded in the returned operation log.

OperationIPAddress String 127.0.0.1

The IP address of the operation recorded in the returned operation log.

Details String dns1;dns2 -> dns3;dns4

The details of DNS servers.

Time String 2017-12-26 12:00:00

The time of the operation recorded in the returned operation log. The time must be in UTC. Example: 2017-12-25 12:00:00. The specific format is related to the input parameter Lang.

Examples

Sample requests

http(s)://[Endpoint]/? Action=QueryChangeLogList
&PageNum=1
&PageSize=1
&<Common request parameters>

Sample success responses

XML format

<QueryChangeLogListResponse>
      <Data>
            <Result>Failed</Result>
            <Operation>DNS modification</Operation>
            <Time>2017-12-26 12:00:00</Time>
            <Details>dns1;dns2 -&gt; dns3;dns4</Details>
            <DomainName>test1.com</DomainName>
            <OperationIPAddress>127.0.0.1</OperationIPAddress>
      </Data>
      <TotalItemNum>1000</TotalItemNum>
      <PageSize>1</PageSize>
      <CurrentPageNum>1</CurrentPageNum>
      <RequestId>2DEDFF32-7827-46B1-BE90-3DB8ABD91A58</RequestId>
      <PrePage>false</PrePage>
      <TotalPageNum>1000</TotalPageNum>
      <ResultLimit>true</ResultLimit>
      <NextPage>true</NextPage>
</QueryChangeLogListResponse>

JSON format

{
    "QueryChangeLogListResponse": {
        "Data": {
                "Result": "Failed",
                "Operation": "DNS modification",
                "Time": "2017-12-26 12:00:00",
                "Details": "dns1;dns2 -> dns3;dns4",
                "DomainName": "test1.com",
                "OperationIPAddress": "127.0.0.1"
        },
        "TotalItemNum": 1000,
        "PageSize": 1,
        "CurrentPageNum": 1,
        "RequestId": "2DEDFF32-7827-46B1-BE90-3DB8ABD91A58",
        "PrePage": false,
        "TotalPageNum": 1000,
        "ResultLimit": true,
        "NextPage": true
    }
}

Error codes

For a list of error codes, visit the API Error Center.