调用DescribeDnsGtmInstanceAddressPools获取地址池列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeDnsGtmInstanceAddressPools |
系统规定参数。取值:DescribeDnsGtmInstanceAddressPools。 |
InstanceId | String | 是 | instance1 |
实例id。 |
Lang | String | 否 | en |
部分返回参数语言。默认值:en。取值范围:en、zh、ja。 |
PageNumber | Integer | 否 | 1 |
当前页数,起始值为1,默认为1。 |
PageSize | Integer | 否 | 1 |
分页查询时设置的每页行数,最大值100,默认为20。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
AddrPools | Array of AddrPool |
地址池列表。 |
|
AddrPool | |||
AddrCount | Integer | 1 |
地址数量。 |
AddrPoolId | String | pool-1 |
地址池id。 |
CreateTime | String | 2017-12-28T13:08Z |
创建时间。 |
CreateTimestamp | Long | 1527690629357 |
创建时间戳。 |
LbaStrategy | String | all_rr |
负载均衡策略
|
MonitorConfigId | String | abc123 |
监控配置id。 |
MonitorStatus | String | open |
监控状态:
|
Name | String | testpool |
地址池名称。 |
Type | String | ipv4 |
地址池类型:
|
UpdateTime | String | 2017-12-28T13:08Z |
更新时间。 |
UpdateTimestamp | Long | 1527690629357 |
更新时间戳。 |
PageNumber | Integer | 1 |
当前页码。 |
PageSize | Integer | 1 |
当前页数。 |
RequestId | String | 6856BCF6-11D6-4D7E-AC53-FD579933522B |
唯一请求识别码。 |
TotalItems | Integer | 1 |
总个数。 |
TotalPages | Integer | 1 |
总页数。 |
示例
请求示例
http(s)://alidns.aliyuncs.com/?Action=DescribeDnsGtmInstanceAddressPools
&InstanceId=instance1
&<公共请求参数>
正常返回示例
XML
格式
<PageSize>1</PageSize>
<RequestId>6856BCF6-11D6-4D7E-AC53-FD579933522B</RequestId>
<PageNumber>1</PageNumber>
<TotalPages>1</TotalPages>
<TotalItems>1</TotalItems>
<AddrPools>
<AddrPool>
<Type>ipv4</Type>
<LbaStrategy>all_rr</LbaStrategy>
<CreateTime>2017-12-28T13:08Z</CreateTime>
<UpdateTime>2017-12-28T13:08Z</UpdateTime>
<AddrPoolId>pool-1</AddrPoolId>
<UpdateTimestamp>1527690629357</UpdateTimestamp>
<MonitorConfigId>abc123</MonitorConfigId>
<MonitorStatus>open</MonitorStatus>
<CreateTimestamp>1527690629357</CreateTimestamp>
<Name>testpool</Name>
<AddrCount>1</AddrCount>
</AddrPool>
</AddrPools>
JSON
格式
{
"PageSize": "1",
"RequestId": "6856BCF6-11D6-4D7E-AC53-FD579933522B",
"PageNumber": "1",
"TotalPages": "1",
"TotalItems": "1",
"AddrPools": {
"AddrPool": [{
"Type": "ipv4",
"LbaStrategy": "all_rr",
"CreateTime": "2017-12-28T13:08Z",
"UpdateTime": "2017-12-28T13:08Z",
"AddrPoolId": "pool-1",
"UpdateTimestamp": "1527690629357",
"MonitorConfigId": "abc123",
"MonitorStatus": "open",
"CreateTimestamp": "1527690629357",
"Name": "testpool",
"AddrCount": "1"
}]
}
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交