You can call this operation to query logs of a Global Traffic Manager (GTM) instance.


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 DescribeGtmLogs

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

EndTimeStamp Long No 1363453340000

The end of the time range to query.

InstanceId String No gtm-cn-xxxxx

The ID of the GTM instance whose logs you want to query.

Keyword String No test

The keyword for searching logs, in case-insensitive "%Keyword%" format.

Lang String No en

The language used by the user.

PageNumber Integer No 1

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

PageSize Integer No 20

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

StartTimestamp Long No 1363453340000

The beginning of the time range to query.

Response parameters

Parameter Type Example Description
Logs Array

The list of logs returned.


The details about a log record.

Content String addtest-pool-1

The formatted message content.

EntityId String 121212

The ID of the object that was operated on.

EntityName String test-pool-1

The name of the object that was operated on.

EntityType String POOL

The type of the object that was operated on.

Id Long 6726

The ID of the log record.

OperAction String add

The operation performed.

OperIp String 106.11.34.X

The IP address subject to the operation.

OperTime String 2018-01-24T07:35Z

The time when the operation was performed.

OperTimestamp Long 1516779348000

A timestamp that indicates the time when the operation was performed.

PageNumber Integer 1

The page number of the returned page.

PageSize Integer 20

The number of entries returned per page.

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

The ID of the request.

TotalItems Integer 224

The total number of entries returned on all pages.

TotalPages Integer 224

The total number of pages returned.


Sample requests

http(s):// Action=DescribeGtmLogs
&<Common request parameters>

Sample success responses

XML format


JSON format

	"logs": [

Error codes

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