全部產品
Search
文件中心

Serverless App Engine:ListIngresses

更新時間:Oct 21, 2026

呼叫 ListIngresses 介面取得 Ingress 列表。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

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

否

目前頁數。

1

PageSize

integer

否

分頁大小。

20

返回參數

名稱

類型

描述

樣本值

object

傳回資料。

RequestId

string

請求 ID。

91F93257-7A4A-4BD3-9A7E-2F6EAE6D****

Message

string

附加資訊。取值說明如下:

  • 請求正常,傳回 success。

  • 請求異常,傳回具體異常錯誤碼。

success

TraceId

string

呼叫鏈 ID,用於精確查詢呼叫資訊。

0a98a02315955564772843261e****

Data

object

傳回結果。

CurrentPage

integer

目前頁。

1

TotalSize

integer

查詢到的總數。

10

PageSize

integer

每頁資料筆數。

10

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:公網。

  • intranet:私網。

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:傳統型負載平衡 CLB(原 SLB)。

  • alb:應用型負載平衡 ALB。

clb

ListenerProtocol

string

負載平衡 SLB 支援的請求轉送協定。取值說明如下:

  • HTTP:適用於需要對資料內容進行識別的應用程式。

  • HTTPS:適用於需要加密傳輸的應用程式。

在 CreateIngress 和 UpadateIngress 中,該參數非必填項,如果建立或更新閘道器路由規則時未填寫該參數,則呼叫該 API 時不傳回。

HTTP

MseGatewayId

string

MSE 雲端原生閘道器執行個體 ID。

gw-d5df01a1bae748f1a7c4e325d2fd****

MseGatewayPort

string

服務對應的連接埠。

80

MseGatewayProtocol

string

MSE 雲端原生閘道器支援的請求轉送協定。取值說明如下:

  • HTTP:適用於需要對資料內容進行識別的應用程式。

  • HTTPS:適用於需要加密傳輸的應用程式。

HTTP

RequestTimeout

integer

請求逾時時間。

60

IdleTimeout

integer

連線空閒逾時時間。

3

CreateTime

integer

建立時間。

1593746835111

DefaultRule

object

預設規則。

ContainerPort

integer

容器連接埠。

8080

AppName

string

應用程式名稱。

demo-app

AppId

string

應用程式 ID。

7171a6ca-d1cd-4928-8642-7d5cfe69****

BackendProtocol

string

後端協定。

http

Rules

array<object>

規則。

array<object>

AppName

string

應用程式名稱。

demo-app

ContainerPort

integer

容器連接埠。

8080

Domain

string

網域。

edas.site

AppId

string

應用程式 ID。

7171a6ca-d1cd-4928-8642-7d5cfe69****

Path

string

路徑。

/Path

BackendProtocol

string

後端協定。

http

RewritePath

string

重寫路徑。

/${1}

RuleActions

array<object>

規則動作列表。

object

規則動作。

ActionType

string

動作類型。

rewrite

ActionConfig

string

動作組態。

{\"host\":\"www.example.com\",\"path\":\"/example/text\",\"query\":\"x=1\"}

CorsConfig

object

跨域組態。

Enable

string

是否開啟。

false

ExposeHeaders

string

允許公開的 Header。

test_123

AllowHeaders

string

允許的 Header。

test_123

AllowMethods

string

允許的方法。

GET

AllowOrigin

string

允許存取的來源。

*

AllowCredentials

string

允許攜帶的憑證。

on

MaxAge

string

過期時間。

1000

ErrorCode

string

錯誤碼。取值說明如下:

  • 請求成功:不傳回 ErrorCode 欄位。

  • 請求失敗:傳回 ErrorCode 欄位。具體資訊,請參閱本文的錯誤碼列表。

InvalidParameter.NotEmpty

Code

string

介面狀態或 POP 錯誤碼。取值說明如下:

  • 2xx:成功。

  • 3xx:重新導向。

  • 4xx:請求錯誤。

  • 5xx:伺服器錯誤。

200

Success

boolean

取得 Ingress 列表是否成功。取值說明如下:

  • true:取得成功。

  • false:取得失敗。

true

樣本

正常返回樣本

JSON格式

{
  "RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
  "Message": "success",
  "TraceId": "0a98a02315955564772843261e****",
  "Data": {
    "CurrentPage": 1,
    "TotalSize": 10,
    "PageSize": 10,
    "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": 60,
        "IdleTimeout": 3,
        "CreateTime": 1593746835111,
        "DefaultRule": {
          "ContainerPort": 8080,
          "AppName": "demo-app",
          "AppId": "7171a6ca-d1cd-4928-8642-7d5cfe69****",
          "BackendProtocol": "http"
        },
        "Rules": [
          {
            "AppName": "demo-app",
            "ContainerPort": 8080,
            "Domain": "edas.site",
            "AppId": "7171a6ca-d1cd-4928-8642-7d5cfe69****",
            "Path": "/Path",
            "BackendProtocol": "http",
            "RewritePath": "/${1}",
            "RuleActions": [
              {
                "ActionType": "rewrite",
                "ActionConfig": "{\\\"host\\\":\\\"www.example.com\\\",\\\"path\\\":\\\"/example/text\\\",\\\"query\\\":\\\"x=1\\\"}"
              }
            ]
          }
        ],
        "CorsConfig": {
          "Enable": "false",
          "ExposeHeaders": "test_123",
          "AllowHeaders": "test_123",
          "AllowMethods": "GET",
          "AllowOrigin": "*",
          "AllowCredentials": "on",
          "MaxAge": "1000"
        }
      }
    ]
  },
  "ErrorCode": "InvalidParameter.NotEmpty",
  "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。

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情。