All Products
Search
Document Center

SwitchDnsGtmInstanceStrategyMode (new)

Last Updated: Jan 25, 2021

Switches the access policy type for 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

SwitchDnsGtmInstanceStrategyMode

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

InstanceId

String

Yes

instance1

The ID of the instance.

StrategyMode

String

Yes

GEO

The type of the access policy. Valid values:

  • GEO: geographical location-based

  • LATENCY: latency-based

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

6856BCF6-11D6-4D7E-AC53-FD579933522B

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

<RequestId>6856BCF6-11D6-4D7E-AC53-FD579933522B</RequestId>

JSON format

{
        "RequestId": "6856BCF6-11D6-4D7E-AC53-FD579933522B"
}

Error codes

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