查询网关入口SLB。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
mse:ListGatewaySlb |
get |
*Gateway
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
GatewayUniqueId |
string |
否 |
网关唯一标识 ID。 |
gw-1cef5440bf2d484db419fb264d4f**** |
AcceptLanguage |
string |
否 |
返回信息的语言类型:
|
zh |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
数据结构。 |
||
RequestId |
string |
请求 ID。 |
EAB345F4-3AC3-560C-B653-65717703**** |
HttpStatusCode |
integer |
HTTP 状态码。 |
200 |
Message |
string |
返回信息。 |
请求处理成功 |
Code |
integer |
返回码。 |
200 |
Success |
boolean |
请求结果,取值如下:
|
true |
Data |
array |
返回数据。 |
|
object |
数据结构。 |
||
Id |
string |
ID |
ID |
SlbId |
string |
SLB ID |
lb-bp1kmnli3hdpreptw2ah3 |
SlbIp |
string |
SLB IP |
121.199.XX.XX |
SlbPort |
string |
SLB 端口。 |
80,443 |
Type |
string |
网络类型
|
PUB_NET |
GatewayId |
string |
网关 ID。 |
1 |
GmtCreate |
string |
创建时间。 |
2022-01-14 14:39:16 |
GatewaySlbMode |
string |
来源。 |
UserSelect |
GatewaySlbStatus |
string |
关联状态。 |
Ready |
StatusDesc |
string |
状态备注。 |
关联中 |
VServerGroupId |
string |
http 虚拟服务组 ID。 |
353 |
HttpPort |
integer |
HTTP 端口(虚拟服务组)。 |
80 |
HttpsPort |
integer |
HTTPS 端口(虚拟服务组)。 |
443 |
ServiceWeight |
integer |
服务权重。 |
80 |
EditEnable |
boolean |
是否可编辑。 |
false |
HttpsVServerGroupId |
string |
https 虚拟服务组 ID。 |
353 |
VsMetaInfo |
string |
虚拟服务器组元信息。 |
[{"protocol":"HTTP","vServerGroupName":"k8s/80/****","port":80,"vServerGroupId":"rsp-bp***"},{"protocol":"HTTPS","vServerGroupName":"k8s/443/***","port":443,"vServerGroupId":"rsp-bp*****"}] |
VServiceList |
array |
SLB 监听信息。 |
|
object |
|||
Port |
string |
端口。 |
443 |
Protocol |
string |
协议类型。
|
HTTPS |
VServerGroupId |
string |
虚拟服务器组 ID。 |
rsp-bp183l2x70*** |
VServerGroupName |
string |
虚拟服务器组名称。 |
k8s/31**0/***/istio-system/clusterid |
SlbType |
string |
示例
正常返回示例
JSON
格式
{
"RequestId": "EAB345F4-3AC3-560C-B653-65717703****",
"HttpStatusCode": 200,
"Message": "请求处理成功",
"Code": 200,
"Success": true,
"Data": [
{
"Id": "ID",
"SlbId": "lb-bp1kmnli3hdpreptw2ah3",
"SlbIp": "121.199.XX.XX",
"SlbPort": "80,443",
"Type": "PUB_NET",
"GatewayId": "1",
"GmtCreate": "2022-01-14 14:39:16",
"GatewaySlbMode": "UserSelect",
"GatewaySlbStatus": "Ready",
"StatusDesc": "关联中",
"VServerGroupId": "353",
"HttpPort": 80,
"HttpsPort": 443,
"ServiceWeight": 80,
"EditEnable": false,
"HttpsVServerGroupId": "353",
"VsMetaInfo": "[{\"protocol\":\"HTTP\",\"vServerGroupName\":\"k8s/80/****\",\"port\":80,\"vServerGroupId\":\"rsp-bp***\"},{\"protocol\":\"HTTPS\",\"vServerGroupName\":\"k8s/443/***\",\"port\":443,\"vServerGroupId\":\"rsp-bp*****\"}]",
"VServiceList": [
{
"Port": "443",
"Protocol": "HTTPS",
"VServerGroupId": "rsp-bp183l2x70***",
"VServerGroupName": "k8s/31**0/***/istio-system/clusterid"
}
],
"SlbType": ""
}
]
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | IllegalRequest | Invalid request:%s | 非法请求: %s |
400 | InvalidParameter | Parameter error:%s | 请求参数错误:%s |
500 | InternalError | Console error. Try again later:%s | 控制台错误.稍后重试:%s |
403 | NoPermission | You are not authorized to perform this operation:%s | 没有权限使用此接口:%s |
404 | NotFound | Not found:%s | 资源不存在:%s |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。