All Products
Search
Document Center

Alibaba Cloud DNS:DescribeDnsGtmLogs

Last Updated:Mar 15, 2024

Queries operation logs of a Global Traffic Manager (GTM) instance.

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:DescribeDnsGtmLogsREAD
  • gtmInstance
    acs:alidns::{#accountId}:gtmInstance/{#gtmInstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language to return some response parameters. Default value: en. Valid values: en, zh, and ja.

en
InstanceIdstringYes

The ID of the instance.

instance1
KeywordstringNo

The keyword for searches in "%KeyWord%" mode. The value is not case-sensitive.

demo
PageNumberintegerNo

The number of the page to return. Pages start from page 1. Default value: 1.

1
PageSizeintegerNo

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

1
StartTimestamplongNo

The timestamp that specifies the beginning of the time range to query.

1516779348000
EndTimestamplongNo

The timestamp that specifies the end of the time range to query.

1516779348000

Response parameters

ParameterTypeDescriptionExample
object
TotalPagesinteger

The total number of pages returned.

1
TotalItemsinteger

The total number of entries returned on all pages.

1
PageNumberinteger

The number of the returned page.

1
PageSizeinteger

The number of entries returned per page.

1
RequestIdstring

The ID of the request.

50C60A29-2E93-425A-ABA8-068686E28873
Logsobject []

The returned logs.

OperTimestamplong

The timestamp of the operation.

1516779348000
EntityIdstring

The ID of the object on which the operation was performed.

121212
EntityTypestring

The type of the object on which the operation was performed.

OperTimestring

The time when the operation was performed.

2018-01-24T07:35Z
OperActionstring

The operation performed.

Contentstring

The formatted message content.

addtest-pool-1
EntityNamestring

The name of the object on which the operation was performed.

test-pool-1
Idlong

The ID of the record.

6726

Examples

Sample success responses

JSONformat

{
  "TotalPages": 1,
  "TotalItems": 1,
  "PageNumber": 1,
  "PageSize": 1,
  "RequestId": "50C60A29-2E93-425A-ABA8-068686E28873",
  "Logs": {
    "Log": [
      {
        "OperTimestamp": 1516779348000,
        "EntityId": "121212",
        "EntityType": "",
        "OperTime": "2018-01-24T07:35Z",
        "OperAction": "",
        "Content": "addtest-pool-1",
        "EntityName": "test-pool-1",
        "Id": 6726
      }
    ]
  }
}

Error codes

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