Modifies the primary/secondary switchover policy for active address pool groups 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 SetDnsGtmAccessMode

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

AccessMode String Yes auto

The primary/secondary switchover policy for address pool groups. Valid values:

  • AUTO: performs automatic switchover between the primary and secondary address pool groups upon failures.
  • DEFAULT: uses the primary address pool group.
  • FAILOVER: uses the secondary address pool group.
StrategyId String Yes strategyId

The ID of the policy.

Lang String No en

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

Response parameters

Parameter Type Example Description
RequestId String 29D0F8F8-5499-4F6C-9FDC-1EE13BF55925

The ID of the request.


Sample requests

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

Sample success responses

XML format


JSON format


Error codes

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