All Products
Search
Document Center

Alibaba Cloud DNS:DescribeDomainLogs

Last Updated:Mar 15, 2024

Queries the operation logs of domain names based on the specified parameters.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
alidns:DescribeDomainLogsREAD
  • Domain
    acs:alidns::{#accountId}:domain/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language in which you want the values of some response parameters to be returned. These response parameters support multiple languages.

en
KeyWordstringNo

The keyword for the query in "%KeyWord%" mode. The keyword is not case-sensitive.

test
GroupIdstringNo

The ID of the domain name group.

2223
PageNumberlongNo

The page number to return. The page number starts from 1. Default value: 1.

1
PageSizelongNo

The number of entries to return per page. Maximum value: 100. Default value: 20.

20
StartDatestringNo

The start time for the query. Format: YYYY-MM-DD

2019-07-04
endDatestringNo

The end time for the query. Format: YYYY-MM-DD

2019-07-04
TypestringNo

The type of object of which you want to query operation logs. Valid values:

  • domain: domain name
  • slavedns: secondary Domain Name System (DNS)
domain

Response parameters

ParameterTypeDescriptionExample
object
TotalCountlong

The total number of entries returned.

2
PageSizelong

The number of entries per page.

2
RequestIdstring

The request ID.

536E9CAD-DB30-4647-AC87-AA5CC38C5382
PageNumberlong

The page number.

1
DomainLogsobject []

The operation logs.

Actionstring

The operation.

Add
ActionTimestamplong

The time when the operation was performed. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

143562300000
ZoneIdstring

The ID of the private zone.

cxfd345sd234
ClientIpstring

The IP address of the operator.

182.92.253.20
Messagestring

The message for the operation.

To the DNS record list
ActionTimestring

The time when the operation is performed. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.

2015-12-12T09:23Z
DomainNamestring

The domain name.

abc.com

Examples

Sample success responses

JSONformat

{
  "TotalCount": 2,
  "PageSize": 2,
  "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
  "PageNumber": 1,
  "DomainLogs": {
    "DomainLog": [
      {
        "Action": "Add\n",
        "ActionTimestamp": 143562300000,
        "ZoneId": "cxfd345sd234",
        "ClientIp": "182.92.253.20",
        "Message": "To the DNS record list\n",
        "ActionTime": "2015-12-12T09:23Z",
        "DomainName": "abc.com"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history