edit-icon download-icon

Retrieving DNS Operation Logs

Last Updated: May 27, 2016

Description

Retrieves DNS operation logs based on input parameters.

Request Parameters

Name Type Required? Description
Action String Yes Operation interface name, required parameter. Value: DescribeRecordLogs
DomainName String Yes Domain name
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
RecordLogs RecordLogType The list of domain name operation logs

Error Codes

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

Error Code Description HTTP Status Code Meaning
IncorrectDomainUser The domain name does not belong to this user. 400 The domain name does not exist under this account

Example

Request Example

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

Return Example

XML Format

<DescribeRecordLogsResponse>
    <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
    <TotalCount>2</TotalCount>
    <PageNumber>1</PageNumber>
    <PageSize>2</PageSize>
    <RecordLogs>
        <RecordLog>
            <ActionTime>2015-12-12 09:23:44</ActionTime>
            <Action>Suspend Resolution Record</Action>
            <Message>MX record mail default xxxx.top. ( TTL: 600)</Message>
            <ClientIp>182.92.253.20</ClientIp>
        </RecordLog>
        <RecordLog>
            <ActionTime>2015-12-12 09:23:40</ActionTime>
            <Action>New Resolution Record</Action>
            <Message>MX record mail default xxxx.top. ( TTL: 600)</Message>
            <ClientIp>182.92.253.20</ClientIp>
        </RecordLog>
    </RecordLogs>
</DescribeRecordLogsResponse>

JSON Example

{
  "DescribeRecordLogsResponse": {
    "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
    "TotalCount": "2",
    "PageNumber": "1",
    "PageSize": "2",
    "RecordLogs": {
      "RecordLog": [
        {
          "ActionTime": "2015-12-12 09:23:44",
          "Action": "Suspend Resolution Record",
          "Message": "MX record mail default xxxx.top. ( TTL: 600)",
          "ClientIp": "182.92.253.20"
        },
        {
          "ActionTime": "2015-12-12 09:23:40",
          "Action": "New Resolution Record",
          "Message": "MX record mail default xxxx.top. ( TTL: 600)",
          "ClientIp": "182.92.253.20"
        }
      ]
    }
  }
}
Thank you! We've received your feedback.