You can call this operation to modify the switching policy of active address pools 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
AccessMode String Yes AUTO

The target access policy of the GTM instance. Valid values:

  • AUTO: Automatic switch
  • DEFAULT: Default address pool
  • FAILOVER: Failover address pool
Action String Yes SetGtmAccessMode

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

StrategyId String Yes hra0hx

The ID of the access policy.

Lang String No en

The language used by the user.

Response parameters

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

The ID of the request.


Sample requests

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

Sample success responses

XML format


JSON format


Error codes

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