You can call this operation to modify the access policy of 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 UpdateGtmAccessStrategy

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

StrategyId String Yes hrmxc

The ID of the access policy that you want to query for the GTM instance.

AccessLines String No ["default", "mobile"]

The line codes of access regions.

DefaultAddrPoolId String No hrsix

The ID of the default address pool.

FailoverAddrPoolId String No hrsyw

The ID of the failover address pool.

Lang String No en

The language used by the user.

StrategyName String No Access policy test

The name of the access policy.

Response parameters

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

The ID of the request.

Examples

Sample requests


http(s)://alidns.aliyuncs.com/? Action=UpdateGtmAccessStrategy
&StrategyId=hrmxc
&<Common request parameters>

Sample success responses

XML format

<UpdateGtmAccessStrategyResponse>
  <RequestId>29D0F8F8-5499-4F6C-9FDC-1EE13BF55925</RequestId>
</UpdateGtmAccessStrategyResponse>

JSON format

{
	"RequestId":"29D0F8F8-5499-4F6C-9FDC-1EE13BF55925"
}

Error codes

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