最近更新时间:2022.09.01 11:30:06
首次发布时间:2022.09.01 11:30:06
API 名称:DescribeEndpointGroup。
API 域名:open.volcengineapi.com 。
API 描述:查询终端节点组的详细信息。
在使用该部分 API 提交请求时必须包含以下 URI 参数。
除了 URI 参数,该 API 请求还需要包含签名参数。关于更多签名参数的信息,参见公共请求参数。
名称 | 类型 | 是否必选 | 格式 | 说明 |
---|---|---|---|---|
Action | string | 是 | [a-zA-Z]+ | API 名称。 |
Version | string | 是 | YYYY-MM-DD | API 版本信息。该参数的取值是 2022-03-01 。 |
在使用该 API 提交请求时,请求正文中可以包含的参数如下。
参数 | 类型 | 是否必选 | 参数说明 | 示例 |
---|---|---|---|---|
EndpointGroupId | string | 是 | 终端节点组 ID 。 | epg-ghdasgh*** |
ListenerId | string | 是 | 监听 ID 。 | lst-ghasdhg |
参数 | 类型 | 参数说明 | 示例 |
---|---|---|---|
EndpointGroup | array of EndpointGroup | 终端节点组结构。 |
EndpointGroup
参数 | 类型 | 参数说明 | 示例 |
---|---|---|---|
EndpointGroupId | string | 终端节点组 ID 。 | lst-ghdasgh*** |
AcceleratorId | string | 加速实例 ID 。 | ga-ghdasgh*** |
ListenerId | string | 监听 ID 。 | lst-ghdasgh*** |
Name | string | 终端节点组的名称。 | test |
State | string | 终端节点组状态,当前支持取值:
| active |
IsVolcSource | bool | 后端服务部署是否在火山引擎上。支持取值:
| true |
KeepClientIP | bool | 是否开启保持客户端源 IP 功能,默认不开启此功能,支持取值:
| true |
KeepClientIPMethod | string | 获取客户端源 IP 的方法,为空代表关闭,支持取值:
| ProxyProtocolV1 |
HealthyConfig | array of HealthyConfig | 配置健康检查 。 | |
HealthCheckStatus | String | 健康检查状态,包括:
| disable |
Region | string | 终端节点组回源区域,包括:CN_NorthEast、 CN_North、 CN_East、CN_South、CN_Central、CN_NorthWest、CN_SouthWest、AP1。 | CN_NorthEast |
EndpointConfigurations | array of EndpointConfiguration | 终端节点配置 。 | |
TrafficPercentage | string | 终端节点组的流量调配比例,范围为1-100。 | 1 |
HealthyConfig
参数 | 类型 | 参数说明 | 示例 |
---|---|---|---|
HealthCheckEnable | bool | 是否开启健康检查,默认不开启,支持取值:
| true |
HealthCheckProtocol | string | 健康检查协议,当前默认支持TCP协议。 | TCP |
HealthCheckPort | int | 健康检查端口,端口范围为1~65535。 | 22 |
HealthResponseTimeOut | int | 响应超时时间,默认3s,不支持修改。 | 3 |
HealthCheckInterval | int | 健康检查时间间隔,范围为1~50秒,默认为2秒。 | 2 |
HealthyThreshold | int | 健康检查健康阈值,即针对健康检查变化所需要的连续健康检查次数,范围2~10,默认为3次。 | 3 |
EndpointConfiguration
参数 | 类型 | 参数说明 | 示例 |
---|---|---|---|
Type
| string
| 终端节点类型 。
| IP |
Endpoint | string | 终端节点服务地址。 | 1.1.1.1 |
Weight | int | 终端节点的流量分配权重,范围为1-100。 | 20 |
HealthCheckStatus | String | 健康检查状态,具体包括:
| normal |
POST https://open.volcengineapi.com/?Version=2022-03-01&Action=DescribeEndpointGroup&<其他公共请求参数> { "EndpointGroupId": "endpointgroup-SrepziDuvvxyHkWkgjvn5Y", "ListenerId": "listener-yrGx4hbk8kUjENhWtRqKnP" }
{ "ResponseMetadata": { "RequestId": "202208061643100102252431390138557D", "Action": "DescribeEndpointGroup", "Version": "2022-03-01", "Service": "ga", "Region": "cn-north-1" }, "Result": { "AcceleratorId": "accinstance-zGHoYhWixBusRXtM2pC2UH", "ListenerId": "listener-yrGx4hbk8kUjENhWtRqKnP", "EndpointGroupId": "endpointgroup-SrepziDuvvxyHkWkgjvn5Y", "Name": "test", "State": "need_generate", "EndpointConfigurations": [ { "Type": "IP", "Endpoint": "1.1.1.1", "Weight": 20, "HealthCheckStatus": "available", "HealthCheckRecords": [ { "Status": "available", "Time": "2022-07-14 05:22:41" } ] } ], "IsVolcSource": false, "KeepClientIP": true, "KeepClientIPMethod": "ProxyProtocolV1", "Region": "CN_North", "HealthCheckStatus": "disable", "HealthyConfig": { "HealthCheckEnable": false, "HealthCheckProtocol": "TCP", "HealthResponseTimeOut": 3, "HealthCheckInterval": 2, "HealthyThreshold": 3 }, "TrafficPercentage": 0 } }