You can call this operation to query operation logs under your account by page.

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

[DO NOT TRANSLATE] Set the value to QueryChangeLogList.

PageNum Integer Yes 1

The number of the page to return. The minimum value is 1.

PageSize Integer Yes 1

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

UserClientIp String No 127.0.0.1

The IP address of the client used by the user to initiate the query.

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. The time is expressed as the number of milliseconds elapsed since the epoch. The time is displayed in UTC.

EndDate Long No 1522080000000

The end of the time range to query the operation date. The time is expressed as the number of milliseconds elapsed since epoch. The time is displayed in UTC.

Response parameters

Parameter Type Example Description
CurrentPageNum Integer 1

The page number of the returned page.

Data

The list of returned operation logs.

ChangeLog

The structure of returned operation logs.

Details String dns1;dns2 -> dns3;dns4

Details about a returned operation log.

DomainName String test1.com

The domain name of the operation logs that were queried.

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.

Result String true

The result of the operation recorded in the returned operation log.

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, for example, 2017-12-25 12:00:00. The specific format is related to the input parameter Lang.

NextPage Boolean true

Indicates whether the current page is followed by another page.

PageSize Integer 1

The number of entries returned per page.

PrePage Boolean false

Indicates whether the current page follows another page.

RequestId String 2DEDFF32-7827-46B1-BE90-3DB8ABD91A58

The ID of the request.

ResultLimit Boolean true

If the number of pages is not limited, the server end can process up to 1,000 records during query. If the number of results exceeds 1000 and ResultLimit is set to true, you are required to narrow down the time range and query again. Alternatively, set ResultLimit to false.

TotalItemNum Integer 1000

The total number of entries returned.

TotalPageNum Integer 1000

The total number of pages returned.

Examples

Sample requests


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

Sample success responses

XML format

<QueryChangeLogListResponse>
      <Data>
            <ChangeLog>
                  <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>
            </ChangeLog>
      </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

{
	"prePage":false,
	"totalItemNum":1000,
	"nextPage":true,
	"totalPageNum":1000,
	"requestId":"0B83F967-7135-49A3-B249-ABC14CBA6B8B",
	"resultLimit":true,
	"currentPageNum":1,
	"pageSize":1,
	"data":[
		{
			"result":"Failed",
			"operation":"DNS modification",
			"time":"2017-12-26 12:00:00",
			"details":"dns1;dns2 -> dns3;dns4",
			"operationIPAddress":"127.0.0.1",
			"domainName":"test1.com"
		}
	]
}

Error codes

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