You need to enable JavaScript to run this app.
TrafficRoute DNS Suite

TrafficRoute DNS Suite

Copy page
Download PDF
Policy Management
GetPolicy
Copy page
Download PDF
GetPolicy
Get policy information of a GTM instance.​
Request​
  • Request method: POST​
  • Endpoint: https://gtm.volcengineapi.com/?Action=GetPolicy&Version=2023-01-01​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
In addition to the following parameters, you also need to authenticate the request.​
​
Parameters​
Type​
Required or optional​
Example value​
Description​
Action​
String​
Is​
GetPolicy​
Set the value to "GetPolicy".​
Version​
String​
Is​
2023-01-01​
API version, value: 2023-01-01.​
GtmId​
String​
Is​
e93cb374-2b33-4202-842f-c066a4462c03​
UUID of the GTM instance. You can obtain GtmId through ListGtms API.​
PolicyType​
String​
Is​
geo​
Strategy types.​
  • geo: basic routing.​
  • Perf: intelligent routing.​
​
Response parameters​
The following table lists only the response parameters specific to this interface. For more information, see Return structure.​
​
Parameters​
Type​
Example value​
Description​
RoutingMode​
String​
lb​
Routing mode. The value of this parameter is:​
  • lb: Based on load balancing, user traffic is proportionally routed to different IDC.​
  • geo: Based on the user's geographic location and ISP, user traffic is routed to the IDC nearest to the user on the same ISP line.​
  • First, based on the user's geographic location and ISP, user traffic is routed to the access line of the nearest IDC under the same ISP. Then, based on load balancing, user traffic is proportionally routed to multiple IDC.​
AlarmOnly​
Boolean​
true​
When the current pool set is unavailable, does GTM only trigger an alert notification without automatically switching to an available pool?​
  • true: GTM only triggers alert notifications.​
  • false: GTM will automatically switch to an available pool.​
Targets​
Object​
None​
Routing target of the intelligent routing policy.​
PerfMode​
String​
perf​
Routing modes of intelligent routing policies.​
  • Perf: performance priority​
  • Capacity priority​
  • feedback: load feedback​
Statistics​
Object​
None​
Statistics of address statuses.​
SourceFlow​
Object​
None​
This parameter has no practical significance. You can ignore this parameter.​
​
Request example​
​
POST https://gtm.volcengineapi.com/?Action=GetPolicy&Version=2023-01-01&GtmId=e93cb374-2b33-4202-842f-c066a4462c03&PolicyType=perf​
​
Response example​
​
{​
"ResponseMetadata": {​
"RequestId": "202505271038359108E08EA1368E1084A1",​
"Action": "GetPolicy",​
"Version": "2023-01-01",​
"Service": "GTM",​
"Region": "cn-boe-1"​
},​
"Result": {​
"RoutingMode": "geo-lb",​
"AlarmOnly": false,​
"Targets": null,​
"PerfMode": "perf",​
"Statistics": {​
"InactiveAddr": 0,​
"ActiveAddr": 10​
},​
"SourceFlow": [],​
"LoadImbalanceFactor": 0,​
"IgnoreAddrWeightPercent": 0,​
"IgnoreWaterPercent": 0,​
"NoticeWaterPercent": 0,​
"RatioThreshold": 0,​
"FluctuationThreshold": 0,​
"AddrPriority": "",​
"CapacitySharing": false,​
"CrossIspPenalty": 0,​
"RttFactor": 0,​
"ProxyMode": "",​
"Listeners": null,​
"DefaultLineAddrNum": 0,​
"RelayHandleTime": 0​
}​
}​
​
Common error codes​
The following table lists the error codes related to this interface and its business logic. For public error codes, see the Public error codes document.​
​
Status code​
error codes​
Error message​
Note​
504​
internal error​
Internal error​
Internal error​
​
​
Last updated: 2025.11.04 20:36:37