All Products
Search
Document Center

Alibaba Cloud DNS:SetCloudGtmInstanceConfigLogSwitch

Last Updated:Feb 03, 2026

Enables or disables the network traffic analysis feature for a Global Traffic Manager (GTM) instance. After this feature is enabled, you can view resolution logs and statistical reports for the domain name. You can also use the intelligent alerting feature based on abnormal metrics, such as resolution success rate and sudden changes in queries per second (QPS). This improves the observability and operations and maintenance (O&M) efficiency of the GTM instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ClientToken

string

No

The client token that is used to ensure the idempotence of the request. Generate a unique value for this parameter. The client token can contain only ASCII characters and cannot exceed 64 characters in length.

Note

If you do not specify this parameter, the system automatically uses the RequestId of the API request as the ClientToken. The RequestId of each API request may be different.

F4D7C841-A1C9-50B4-88B7-F5****

InstanceId

string

No

The ID of the Global Traffic Manager (GTM) 3.0 instance.

gtm-cn-wwo3a3h****

ConfigId

string

Yes

The ID of the instance configuration. A and AAAA records can be configured for the same connected domain name and GTM instance. In this case, the GTM instance has two instance configurations. ConfigId uniquely identifies an instance configuration. To find the ConfigId for a domain name instance, call the ListCloudGtmInstanceConfigs operation.

Config-000****

Status

string

Yes

The status of the network traffic analysis feature:

  • enable

  • disable

enable disable

Response elements

Element

Type

Description

Example

object

RequestId

string

The unique request ID.

536E9CAD-DB30-4647-AC87-AA5CC38C5382

Success

boolean

Indicates whether the operation was successful:

  • true: The operation was successful.

  • false: The operation failed.

true

Examples

Success response

JSON format

{
  "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.