查询监听器后端服务信息

最近更新时间:2020-08-07 17:22:41

DescribeInstancesWithListener(查询监听器后端服务的信息)

Request Parameters(请求参数)

RegisterId.N

  • 后端服务的ID
  • 类型: String
  • 是否可缺省: 是
  • 缺省值: 描述负载均衡器下所有的后端服务信息

Filter.N

  • listener-id,监听器的ID
  • real-server-ip,真实服务器的IP
  • 类型: Filter list
  • 是否可缺省: 是

Response Elements(返回值)

RequestId

  • 请求ID
  • 类型: String

RealServerSet

Examples(举例)

Sample Request(请求)
https://slb.region.api.ksyun.com?Action=DescribeInstancesWithListener
&Version=2016-03-04
&Filter.1.Name=listener-id
&Filter.1.Value.1=8017e46e-5ed5-4d69-8a95-264f4fc4cb0c
Sample Response(返回)
<DescribeInstancesWithListenerResponse xmlns="http://slb.ksyun.com/doc/2016-03-04/">
    <RealServerSet>
        <Item>
            <RealServerIp>10.0.0.20</RealServerIp>
            <RealServerPort>812</RealServerPort>
            <RealServerState>healthy</RealServerState>
            <RealServerType>host</RealServerType>
            <RegisterId>fb362a72-f01e-4f5c-88da-6c5a73e21424</RegisterId>
            <ListenerId>8017e46e-5ed5-4d69-8a95-264f4fc4cb0c</ListenerId>
            <Weight>20</Weight>
        </Item>
    </RealServerSet>
    <RequestId>f6e4efbc-4ffe-4b26-bdcf-3aec28d0425f</RequestId>
</DescribeInstancesWithListenerResponse>

金山云,开启您的云计算之旅

免费注册