You need to enable JavaScript to run this app.
导航

获取负载均衡实例详情

最近更新时间2023.07.03 16:32:39

首次发布时间2022.02.25 18:58:32

本接口用于获取负载均衡实例详情。

请求方法

GET

请求参数

下表列出了接口特定的请求参数以及公共请求参数 Action 和 Version。 其他公共参数,请参见公共参数

名称

类型

是否必选

示例值

描述

Action

String

GetLB

公共参数。该参数表示接口名称。取值:GetLB。

Version

String

2021-04-30

公共参数。该参数表示接口版本。取值:2021-04-30。

lb_identity

String

veew-lb2131011027612112****

负载均衡实例的 ID。您可以通过 ListLBs 接口查询负载均衡实例的 ID。

返回数据

名称

类型

示例值

描述

lb

LB

请参见返回示例

负载均衡实例的详情。

请求示例

GET https://veenedge.volcengineapi.com/?Action=GetLB&Version=2021-04-30
&lb_identity=veew-lb2063021453005555****
&<其他公共参数>

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20230531174203DB9837EF43AF4E9F****",
        "Action": "GetLB",
        "Version": "2021-04-30",
        "Service": "veenedge",
        "Region": "cn-north-1"
    },
    "Result": {
        "lb": {
            "identity": "veew-lb2063021453005555****",
            "name": "lb-test",
            "region": "EastChina",
            "city": "330400",
            "cluster_name": "****-zjct",
            "cluster_alias": "嘉兴电信01",
            "vpc_name": "嘉兴电信01-默认VPC",
            "vpc_identity": "vpc-8zbcbc****",
            "vpc_subnets": [
                "172.**.**.64/26"
            ],
            "status": "bound",
            "ips": [
                {
                    "ipIdentity": "eip-rrfsth****",
                    "ip": "115.**.**.6",
                    "ip_name": "****-zjct-CTCC",
                    "ip_type": "IPv4",
                    "bandwidth_peak": "20",
                    "ack": true,
                    "color": ""
                }
            ],
            "listeners": [
                {
                    "name": "listener-1",
                    "listen_port_protocol": "TCP",
                    "listen_port": 80,
                    "loadbalance_strategy": "sip",
                    "desc": "",
                    "endpoints": [],
                    "listener_uniq": "cbd222ea7a86e9d175f5c64f96f2****",
                    "default_endpoint_port": 80
                }
            ],
            "desc": "",
            "billing_method": "MonthlyPeak",
            "create_time": 1685443611,
            "update_time": 1685513893,
            "lb_type": "IPv4",
            "account_identity": 210000****,
            "ep_net_type": 1, 
            "rs_type": "veen",
            "clusters": [
                {
                    "cluster_name": "****-zjct",
                    "alias": "嘉兴电信01",
                    "country": "CN",
                    "region": "EastChina",
                    "province": "ZJ",
                    "city": "330400",
                    "isp": "CTCC"
                }
            ],
            "isp": "CTCC",
            "eip_num": 0,
            "is_bare_metal": false,
            "forward_mode": ""
        }
    }
}

错误码

如果响应正文中包含 Error 字段,则表示 API 请求失败。关于错误码的更多信息,参见错误码