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. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDnsGtmLogs

The operation that you want to perform. Set the value to DescribeDnsGtmLogs.

InstanceId String Yes instance1

The ID of the instance.

Lang String No en

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

Keyword String No demo

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

PageNumber Integer No 1

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

PageSize Integer No 1

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

StartTimestamp Long No 1516779348000

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

EndTimestamp Long No 1516779348000

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

Response parameters

Parameter Type Example Description
Logs Array of Log

The returned logs.

Log
Content String addtest-pool-1

The formatted message content.

EntityId String 121212

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

EntityName String test-pool-1

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

EntityType String Address pool

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

Id Long 6726

The ID of the record.

OperAction String Add

The operation performed.

OperTime String 2018-01-24T07:35Z

The time when the operation was performed.

OperTimestamp Long 1516779348000

The timestamp of the operation.

PageNumber Integer 1

The number of the returned page.

PageSize Integer 1

The number of entries returned per page.

RequestId String 50C60A29-2E93-425A-ABA8-068686E28873

The ID of the request.

TotalItems Integer 1

The total number of entries returned on all pages.

TotalPages Integer 1

The total number of pages returned.

Examples

Sample requests

http(s)://alidns.aliyuncs.com/? Action=DescribeDnsGtmLogs
&InstanceId=instance1
&<Common request parameters>

Sample success responses

XML format

<PageSize>1</PageSize>
<RequestId>50C60A29-2E93-425A-ABA8-068686E28873</RequestId>
<PageNumber>1</PageNumber>
<TotalPages>1</TotalPages>
<Logs>
    <Log>
        <EntityId>121212</EntityId>
        <EntityType>Address pool</EntityType>
        <EntityName>test-pool-1</EntityName>
        <OperTime>2018-01-24T07:35Z</OperTime>
        <Content>addtest-pool-1</Content>
        <OperTimestamp>1516779348000</OperTimestamp>
        <Id>6726</Id>
        <OperAction>Add</OperAction>
    </Log>
</Logs>
<TotalItems>1</TotalItems>

JSON format

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

Error codes

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