Queries the access strategies for a Global Traffic Manager (GTM) instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alidns:DescribeDnsGtmAccessStrategies |
get |
*gtmInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response. Default value: en. Valid values: en, zh, and ja. |
en |
| InstanceId |
string |
Yes |
The instance ID. Call DescribeDnsGtmInstances to obtain the instance ID. |
gtm-cn-wwo3a3hbz** |
| PageNumber |
integer |
No |
The page number. The value starts from 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Maximum value: 100. Default value: 20. |
1 |
| StrategyMode |
string |
Yes |
The type of the access policy.
|
GEO |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
The number of entries returned per page. Maximum value: 100. Default value: 20. |
1 |
| RequestId |
string |
The unique request ID. |
0CCC9971-CEC9-4132-824B-4AE611C07623 |
| PageNumber |
integer |
The page number of the returned page. The value starts from 1. Default value: 1. |
1 |
| Strategies |
object |
||
| Strategy |
array<object> |
The list of policies. |
|
|
object |
|||
| EffectiveLbaStrategy |
string |
The load balancing policy for the active address pool group. This parameter is returned only if StrategyMode is set to GEO.
|
ALL_RR |
| StrategyId |
string |
The ID of the access policy. |
hr*** |
| StrategyName |
string |
The name of the access policy. |
strategname1 |
| EffectiveAddrPoolGroupType |
string |
The type of the active address pool group:
|
DEFAULT |
| CreateTime |
string |
The time when the policy was created. |
2018-08-09T00:10Z |
| EffectiveAddrPools |
object |
||
| EffectiveAddrPool |
array<object> |
The list of active address pools. |
|
|
object |
The active address pool. |
||
| LbaWeight |
integer |
The weight. |
1 |
| Name |
string |
The name of the address pool. |
test |
| AddrCount |
integer |
The number of addresses in the address pool. |
3 |
| Id |
string |
The ID of the address pool. |
po*** |
| CreateTimestamp |
integer |
The time when the policy was created. This is a UNIX timestamp. |
1533773400000 |
| EffectiveAddrPoolType |
string |
The type of the active address pool:
|
IPV4 |
| Lines |
object |
||
| Line |
array<object> |
The list of source regions for DNS requests. This parameter is returned only if StrategyMode is set to GEO. |
|
|
object |
|||
| GroupName |
string |
The name of the source region group. |
Global |
| LineCode |
string |
The code of the source region. |
default |
| LineName |
string |
The name of the source region. |
Global |
| GroupCode |
string |
The code of the source region group. |
DEFAULT |
| TotalPages |
integer |
The total number of pages returned. |
11 |
| TotalItems |
integer |
The total number of entries returned. |
11 |
Examples
Success response
JSON format
{
"PageSize": 1,
"RequestId": "0CCC9971-CEC9-4132-824B-4AE611C07623",
"PageNumber": 1,
"Strategies": {
"Strategy": [
{
"EffectiveLbaStrategy": "ALL_RR",
"StrategyId": "hr***",
"StrategyName": "strategname1",
"EffectiveAddrPoolGroupType": "DEFAULT",
"CreateTime": "2018-08-09T00:10Z",
"EffectiveAddrPools": {
"EffectiveAddrPool": [
{
"LbaWeight": 1,
"Name": "test",
"AddrCount": 3,
"Id": "po***"
}
]
},
"CreateTimestamp": 1533773400000,
"EffectiveAddrPoolType": "IPV4",
"Lines": {
"Line": [
{
"GroupName": "Global",
"LineCode": "default",
"LineName": "Global",
"GroupCode": "DEFAULT"
}
]
}
}
]
},
"TotalPages": 11,
"TotalItems": 11
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.