调用DescribeGtmAccessStrategyAvailableConfig获取当前访问策略可设置的配置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeGtmAccessStrategyAvailableConfig |
系统规定参数。取值:DescribeGtmAccessStrategyAvailableConfig。 |
InstanceId | String | 是 | gtm-cn-xxxx |
实例ID |
Lang | String | 否 | en |
用户语言 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
AddrPools | Array |
地址池列表 |
|
AddrPool |
地址池列表 |
||
AddrPoolId | String | hra0ix |
地址池ID |
AddrPoolName | String | 阿里云集群 |
地址池名称 |
Lines | Array |
访问区域列表 |
|
Line |
访问区域列表 |
||
FatherCode | String | telecom |
父线路的code,如果没有则为空。 |
GroupCode | String | ISP |
访问区域分组编号 |
GroupName | String | 运营商 |
访问区域分组名称 |
LineCode | String | cn_telecom_hubei |
访问区域编码 |
LineName | String | 湖北电信 |
访问区域名称 |
Status | String | FORBIDDEN |
线路当前状态。其中,
|
RequestId | String | C2851BA9-CE56-49AF-8D12-4FC6A49EE688 |
请求ID |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeGtmAccessStrategyAvailableConfig
&InstanceId=gtm-cn-xxxx
&<公共请求参数>
正常返回示例
XML
格式
<DescribeGtmAccessStrategyAvailableConfigResponse>
<Lines>
<Line>
<Status>FORBIDDEN</Status>
<GroupName>全局</GroupName>
<GroupCode>DEFAULT</GroupCode>
<LineName>全局</LineName>
<LineCode>default</LineCode>
</Line>
<Line>
<Status>OPTIONAL</Status>
<GroupName>运营商</GroupName>
<GroupCode>ISP</GroupCode>
<LineName>电信</LineName>
<LineCode>telecom</LineCode>
</Line>
<Line>
<Status>OPTIONAL</Status>
<GroupName>境外地区</GroupName>
<GroupCode>OS</GroupCode>
<LineName>南美洲</LineName>
<LineCode>os_samerica</LineCode>
</Line>
</Lines>
<RequestId>C2851BA9-CE56-49AF-8D12-4FC6A49EE688</RequestId>
<AddrPools>
<AddrPool>
<AddrPoolName>地址池1</AddrPoolName>
<AddrPoolId>hra0ix</AddrPoolId>
</AddrPool>
<AddrPool>
<AddrPoolName>地址池2</AddrPoolName>
<AddrPoolId>hra0iy</AddrPoolId>
</AddrPool>
</AddrPools>
</DescribeGtmAccessStrategyAvailableConfigResponse>
JSON
格式
{
"Lines":{
"Line":[
{
"Status":"FORBIDDEN",
"GroupCode":"DEFAULT",
"GroupName":"全局",
"LineName":"全局",
"LineCode":"default"
},
{
"Status":"OPTIONAL",
"GroupCode":"ISP",
"GroupName":"运营商",
"LineName":"电信",
"LineCode":"telecom"
},
{
"Status":"OPTIONAL",
"GroupCode":"OS",
"GroupName":"境外地区",
"LineName":"南美洲",
"LineCode":"os_samerica"
}
]
},
"RequestId":"C2851BA9-CE56-49AF-8D12-4FC6A49EE688",
"AddrPools":{
"AddrPool":[
{
"AddrPoolName":"地址池1",
"AddrPoolId":"hra0ix"
},
{
"AddrPoolName":"地址池2",
"AddrPoolId":"hra0iy"
}
]
}
}
错误码
访问错误中心查看更多错误码。