调用ListEndpointGroups接口查询终端节点组列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | ListEndpointGroups |
系统规定参数。取值:ListEndpointGroups。 |
| RegionId | String | 是 | cn-hangzhou |
全球加速实例所在的地域ID,仅取值cn-hangzhou。 |
| PageNumber | Integer | 否 | 1 |
列表的页码,默认值:1。 |
| PageSize | Integer | 否 | 10 |
分页查询时每页的行数。最大值:50,默认值:10。 |
| AcceleratorId | String | 是 | ga-bp1odcab8tmno0hdq**** |
全球加速实例ID。 |
| ListenerId | String | 否 | lsr-bp1bpn0kn908w4nbw**** |
监听实例ID。 |
| EndpointGroupType | String | 否 | virtual |
终端节点组类型。取值:
|
| AccessLogSwitch | String | 否 | on |
是否开启访问日志。取值:
|
| EndpointGroupId | String | 否 | epg-bp16jdc00bhe97sr5**** |
终端节点组ID。 |
返回数据
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| TotalCount | Integer | 1 |
列表条目数。 |
| PageSize | Integer | 10 |
分页查询时每页的行数。 |
| RequestId | String | A052D49E-CCC2-41DB-816C-DC3381503194 |
请求ID。 |
| PageNumber | Integer | 1 |
列表的页码。 |
| EndpointGroups | Array of EndpointGroups |
终端节点组配置信息。 |
|
| EndpointGroupId | String | epg-bp16jdc00bhe97sr5**** |
终端节点组ID。 |
| EndpointGroupIpList | Array of String | 47.1.XX.XX |
终端节点组出公网IP列表。 |
| EndpointGroupUnconfirmedIpList | Array of String | 47.1.XX.XX |
全球加速实例升级后新增待确认的终端节点组IP列表。 |
| State | String | active |
终端节点组的状态。
|
| HealthCheckPath | String | /healthcheck |
健康检查路径。 |
| EndpointGroupRegion | String | cn-hangzhou |
终端节点组所属的地域ID。 |
| HealthCheckIntervalSeconds | Integer | 3 |
健康检查的时间间隔,单位:秒。 |
| TrafficPercentage | Integer | 20 |
监听有多个终端节点组时的权重。 |
| HealthCheckProtocol | String | tcp |
健康检查的协议。取值:
|
| ThresholdCount | Integer | 3 |
健康检查判定终端节点为不健康的次数。 |
| ListenerId | String | lsr-bp1bpn0kn908w4nbw**** |
监听实例ID。 |
| AcceleratorId | String | ga-bp1odcab8tmno0hdq**** |
全球加速实例ID。 |
| EndpointConfigurations | Array of EndpointConfigurations |
终端节点配置信息。 |
|
| Type | String | Ip |
终端节点类型。取值:
|
| EnableClientIPPreservation | Boolean | false |
是否开启了保持客户端源IP功能。取值:
|
| Weight | Integer | 20 |
终端节点的权重。 |
| ProbeProtocol | String | tcp |
延时监控的探测协议。取值:
|
| Endpoint | String | 47.1.XX.XX |
终端节点的IP或域名。 |
| ProbePort | Integer | 80 |
延时监控的探测端口。 |
| EndpointId | String | ep-bp1d2utp8qqe2a44t**** |
终端节点ID。 |
| PortOverrides | Array of PortOverrides |
端口映射关系。 |
|
| ListenerPort | Integer | 443 |
监听端口。 |
| EndpointPort | Integer | 80 |
终端节点端口。 |
| ForwardingRuleIds | Array of String | frule-bp19a3t3yzr21q3**** |
终端节点组关联的转发策略ID。 |
| EndpointGroupType | String | default |
终端节点组类型。取值:
|
| EndpointRequestProtocol | String | HTTP |
后端服务协议。取值:
|
| Description | String | group1 |
终端节点组的描述信息。 |
| Name | String | group1 |
终端节点组的名称。 |
| HealthCheckPort | Integer | 10 |
健康检查的端口。 |
| HealthCheckEnabled | Boolean | true |
是否开启了健康检查。取值:
|
示例
请求示例
http(s)://[Endpoint]/?Action=ListEndpointGroups
&RegionId=cn-hangzhou
&PageNumber=1
&PageSize=10
&AcceleratorId=ga-bp1odcab8tmno0hdq****
&ListenerId=lsr-bp1bpn0kn908w4nbw****
&EndpointGroupType=virtual
&AccessLogSwitch=on
&EndpointGroupId=epg-bp16jdc00bhe97sr5****
&公共请求参数
正常返回示例
XML格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ListEndpointGroupsResponse>
<TotalCount>1</TotalCount>
<PageSize>10</PageSize>
<RequestId>A052D49E-CCC2-41DB-816C-DC3381503194 </RequestId>
<PageNumber>1</PageNumber>
<EndpointGroups>
<EndpointGroupId>epg-bp16jdc00bhe97sr5****</EndpointGroupId>
<EndpointGroupIpList>47.1.XX.XX</EndpointGroupIpList>
<EndpointGroupUnconfirmedIpList>47.1.XX.XX</EndpointGroupUnconfirmedIpList>
<State>active</State>
<HealthCheckPath>/healthcheck</HealthCheckPath>
<EndpointGroupRegion>cn-hangzhou</EndpointGroupRegion>
<HealthCheckIntervalSeconds>3</HealthCheckIntervalSeconds>
<TrafficPercentage>20</TrafficPercentage>
<HealthCheckProtocol>tcp</HealthCheckProtocol>
<ThresholdCount>3</ThresholdCount>
<ListenerId>lsr-bp1bpn0kn908w4nbw****</ListenerId>
<AcceleratorId>ga-bp1odcab8tmno0hdq****</AcceleratorId>
<EndpointConfigurations>
<Type>Ip</Type>
<EnableClientIPPreservation>false</EnableClientIPPreservation>
<Weight>20</Weight>
<ProbeProtocol>tcp</ProbeProtocol>
<Endpoint>47.1.XX.XX</Endpoint>
<ProbePort>80</ProbePort>
<EndpointId>ep-bp1d2utp8qqe2a44t****</EndpointId>
</EndpointConfigurations>
<PortOverrides>
<ListenerPort>443</ListenerPort>
<EndpointPort>80</EndpointPort>
</PortOverrides>
<ForwardingRuleIds>frule-bp19a3t3yzr21q3****</ForwardingRuleIds>
<EndpointGroupType>default</EndpointGroupType>
<EndpointRequestProtocol>HTTP</EndpointRequestProtocol>
<Description>group1</Description>
<Name>group1</Name>
<HealthCheckPort>10</HealthCheckPort>
<HealthCheckEnabled>true</HealthCheckEnabled>
</EndpointGroups>
</ListEndpointGroupsResponse>
JSON格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"TotalCount" : 1,
"PageSize" : 10,
"RequestId" : "A052D49E-CCC2-41DB-816C-DC3381503194\t",
"PageNumber" : 1,
"EndpointGroups" : [ {
"EndpointGroupId" : "epg-bp16jdc00bhe97sr5****",
"EndpointGroupIpList" : [ "47.1.XX.XX" ],
"EndpointGroupUnconfirmedIpList" : [ "47.1.XX.XX" ],
"State" : "active",
"HealthCheckPath" : "/healthcheck",
"EndpointGroupRegion" : "cn-hangzhou",
"HealthCheckIntervalSeconds" : 3,
"TrafficPercentage" : 20,
"HealthCheckProtocol" : "tcp",
"ThresholdCount" : 3,
"ListenerId" : "lsr-bp1bpn0kn908w4nbw****",
"AcceleratorId" : "ga-bp1odcab8tmno0hdq****",
"EndpointConfigurations" : [ {
"Type" : "Ip",
"EnableClientIPPreservation" : false,
"Weight" : 20,
"ProbeProtocol" : "tcp",
"Endpoint" : "47.1.XX.XX",
"ProbePort" : 80,
"EndpointId" : "ep-bp1d2utp8qqe2a44t****"
} ],
"PortOverrides" : [ {
"ListenerPort" : 443,
"EndpointPort" : 80
} ],
"ForwardingRuleIds" : [ "frule-bp19a3t3yzr21q3****" ],
"EndpointGroupType" : "default",
"EndpointRequestProtocol" : "HTTP",
"Description" : "group1",
"Name" : "group1",
"HealthCheckPort" : 10,
"HealthCheckEnabled" : true
} ]
}
错误码
访问错误中心查看更多错误码。