You can call this operation to create an access policy for 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
AccessLines String Yes ["default", "drpeng"]

The line codes of access regions.

Action String Yes AddGtmAccessStrategy

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

DefaultAddrPoolId String Yes hrsix

The ID of the default address pool.

FailoverAddrPoolId String Yes hrsyw

The ID of the failover address pool.

If the failover address pool is not set, pass the Empty value.

InstanceId String Yes instance1

The ID of the GTM instance for which you want to create an access policy.

StrategyName String Yes Access policy test

The name 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.

StrategyId String strategyid

The ID of the access policy created.


Sample requests

http(s):// Action=AddGtmAccessStrategy
&AccessLines=["default", "drpeng"]
&StrategyName=Access policy test
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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