调用ListIngresses接口获取Ingress列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
sae:ListIngresses |
get |
*全部资源
|
无 | 无 |
请求语法
GET /pop/v1/sam/ingress/IngressList HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| NamespaceId |
string |
是 |
命名空间 ID。 |
cn-beijing |
| AppId |
string |
否 |
应用 ID。 |
bbf3a590-6d13-46fe-8ca9-c947a20b**** |
| CurrentPage |
integer |
否 |
当前页数。 |
|
| PageSize |
integer |
否 |
分页大小。 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回数据。 |
||
| RequestId |
string |
请求 ID。 |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
附加信息。取值说明如下:
|
success |
| TraceId |
string |
调用链 ID,用于精确查询调用信息。 |
0a98a02315955564772843261e**** |
| Data |
object |
返回结果。 |
|
| CurrentPage |
integer |
当前页。 |
|
| TotalSize |
integer |
查询到的总数。 |
|
| PageSize |
integer |
每页数据条数。 |
|
| IngressList |
array<object> |
路由规则列表。 |
|
|
array<object> |
路由规则信息。 |
||
| SlbId |
string |
SLB ID。 |
lb-uf62****6d13tq2u5 |
| NamespaceId |
string |
命名空间 ID。 |
cn-shanghai |
| Description |
string |
路由规则名称。 |
test |
| ListenerPort |
string |
SLB 监听端口。 |
80 |
| SlbType |
string |
SLB 类型。取值说明如下:
|
internet |
| CertId |
string |
CLB 证书 ID。 |
13624*****73809_16f8e549a20_1175189789_12****3210 |
| CertIds |
string |
ALB 多证书 ID。 |
87***35-cn-hangzhou,812***3-cn-hangzhou |
| Name |
string |
路由规则名称。 |
lb-uf6jt0nu4z6ior943****-80-f5**** |
| Id |
integer |
路由规则 ID。 |
18 |
| LoadBalanceType |
string |
负载均衡 SLB 的类型。取值说明如下:
|
clb |
| ListenerProtocol |
string |
负载均衡 SLB 支持的请求转发协议。取值说明如下:
在 CreateIngress 和 UpadateIngress 中,该参数非必填项,如果创建或更新网关路由规则时未填写该参数,则调用该 API 时不返回。 |
HTTP |
| MseGatewayId |
string |
MSE 云原生网关实例 ID。 |
gw-d5df01a1bae748f1a7c4e325d2fd**** |
| MseGatewayPort |
string |
服务对应的端口。 |
80 |
| MseGatewayProtocol |
string |
MSE 云原生网关支持的请求转发协议。取值说明如下:
|
HTTP |
| RequestTimeout |
integer |
请求超时时间。 |
|
| IdleTimeout |
integer |
连接空闲超时时间。 |
|
| CreateTime |
integer |
创建时间。 |
|
| DefaultRule |
object |
默认规则。 |
|
| ContainerPort |
integer |
容器端口。 |
|
| AppName |
string |
应用名称。 |
|
| AppId |
string |
应用 ID。 |
|
| BackendProtocol |
string |
后端协议。 |
|
| Rules |
array<object> |
规则。 |
|
|
array<object> |
|||
| AppName |
string |
应用名称。 |
|
| ContainerPort |
integer |
容器端口。 |
|
| Domain |
string |
域名。 |
|
| AppId |
string |
应用 ID。 |
|
| Path |
string |
路径。 |
|
| BackendProtocol |
string |
后端协议。 |
|
| RewritePath |
string |
重写路径。 |
|
| RuleActions |
array<object> |
规则动作列表。 |
|
|
object |
规则动作。 |
||
| ActionType |
string |
动作类型。 |
|
| ActionConfig |
string |
动作配置。 |
|
| CorsConfig |
object |
跨域配置。 |
|
| Enable |
string |
是否开启。 |
|
| ExposeHeaders |
string |
允许暴露的 Header。 |
|
| AllowHeaders |
string |
允许的 Header。 |
|
| AllowMethods |
string |
允许的方法。 |
|
| AllowOrigin |
string |
允许访问的来源。 |
|
| AllowCredentials |
string |
允许的携带凭证。 |
|
| MaxAge |
string |
过期时间。 |
|
| ErrorCode |
string |
错误码。取值说明如下:
|
|
| Code |
string |
接口状态或 POP 错误码。取值说明如下:
|
200 |
| Success |
boolean |
获取 Ingress 列表是否成功。取值说明如下:
|
true |
示例
正常返回示例
JSON格式
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": {
"CurrentPage": 0,
"TotalSize": 0,
"PageSize": 0,
"IngressList": [
{
"SlbId": "lb-uf62****6d13tq2u5",
"NamespaceId": "cn-shanghai",
"Description": "test",
"ListenerPort": "80",
"SlbType": "internet",
"CertId": "13624*****73809_16f8e549a20_1175189789_12****3210",
"CertIds": "87***35-cn-hangzhou,812***3-cn-hangzhou",
"Name": "lb-uf6jt0nu4z6ior943****-80-f5****",
"Id": 18,
"LoadBalanceType": "clb",
"ListenerProtocol": "HTTP",
"MseGatewayId": "gw-d5df01a1bae748f1a7c4e325d2fd****",
"MseGatewayPort": "80",
"MseGatewayProtocol": "HTTP",
"RequestTimeout": 0,
"IdleTimeout": 0,
"CreateTime": 0,
"DefaultRule": {
"ContainerPort": 0,
"AppName": "",
"AppId": "",
"BackendProtocol": ""
},
"Rules": [
{
"AppName": "",
"ContainerPort": 0,
"Domain": "",
"AppId": "",
"Path": "",
"BackendProtocol": "",
"RewritePath": "",
"RuleActions": [
{
"ActionType": "",
"ActionConfig": ""
}
]
}
],
"CorsConfig": {
"Enable": "",
"ExposeHeaders": "",
"AllowHeaders": "",
"AllowMethods": "",
"AllowOrigin": "",
"AllowCredentials": "",
"MaxAge": ""
}
}
]
},
"ErrorCode": "",
"Code": "200",
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | 不合法的参数:%s不能为空。 |
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | 不合法的参数{%s}。 |
| 400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | 不合法的参数{%s}:%s。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。