Retrieving Domain Name Operation Logs

Last Updated: May 27, 2016

Description

Retrieves domain name operation logs based on input parameters.

Request Parameters

Name Type Required? Description
Action String Yes Operation interface name, required parameter. Value: DescribeDomainLogs
PageNumber Long No Number of the current page, starting from 1 by default
PageSize Long No This sets the number of lines per page for query by pages, up to 100 and 20 by default
KeyWord String No The keyword for searches using the ”%KeyWord%” mode, case insensitive

Return Parameters

Public return parameters. For details, see Public Return Parameters

Name Type Description
RequestId String The unique request identifier
TotalCount Long The total number of listed logs
PageNumber Long Number of the current page
PageSize Long The number of logs retrieved by this query
DomainLogs DomainLogType The list of domain name operation logs

Error Codes

For errors common to all interfaces, please refer to the Error Code Table .

Example

Request Example

http://dns.aliyuncs.com/?Action=DescribeDomainLogs
&PageNumber=1
&PageSize=20
&<Public Request Parameters>

Return Example

XML Format

<DescribeDomainLogsResponse>
    <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
    <TotalCount>2</TotalCount>
    <PageNumber>1</PageNumber>
    <PageSize>2</PageSize>
    <DomainLogs>
        <DomainLog>
            <ActionTime>2015-12-12 09:23:44</ActionTime>
            <DomainName>abc.com</DomainName>
            <Action>Add</Action>
            <Message>To DNS list</Message>
            <ClientIp>182.92.253.20</ClientIp>
        </DomainLog>
        <DomainLog>
            <ActionTime>2015-12-12 09:23:40</ActionTime>
            <DomainName>example.com</DomainName>
            <Action>Retrieved successfully</Action>
            <Message>And added to DNS list</Message>
            <ClientIp>182.92.253.20</ClientIp>
        </DomainLog>
    </DomainLogs>
</DescribeDomainLogsResponse>

JSON Example

{
  "DescribeDomainLogsResponse": {
    "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
    "TotalCount": "2",
    "PageNumber": "1",
    "PageSize": "2",
    "DomainLogs": {
      "DomainLog": [
        {
          "ActionTime": "2015-12-12 09:23:44",
          "DomainName": "abc.com",
          "Action": "Add",
          "Message": "To DNS list",
          "ClientIp": "182.92.253.20"
        },
        {
          "ActionTime": "2015-12-12 09:23:40",
          "DomainName": "example.com",
          "Action": "Retrieved successfully",
          "Message": "And added to DNS list",
          "ClientIp": "182.92.253.20"
        }
      ]
    }
  }
}
Thank you! We've received your feedback.