All Products
Search
Document Center

Serverless App Engine:ListIngresses

Last Updated:Jun 11, 2026

Mengambil daftar Ingress.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

sae:ListIngresses

get

*全部资源

*

None None

Sintaks permintaan

GET /pop/v1/sam/ingress/IngressList HTTP/1.1

Parameter permintaan

Parameter

Type

Required

Description

Example

NamespaceId

string

Yes

ID namespace.

cn-beijing

AppId

string

No

ID aplikasi.

bbf3a590-6d13-46fe-8ca9-c947a20b****

CurrentPage

integer

No

Nomor halaman saat ini.

PageSize

integer

No

Ukuran halaman.

Elemen respons

Element

Type

Description

Example

object

The data that is returned.

RequestId

string

The request ID.

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

Message

string

The response message.

  • success is returned if the call is successful.

  • An error code is returned if the call fails.

success

TraceId

string

The trace ID. You can use it to query the details of a call.

0a98a02315955564772843261e****

Data

object

The result.

CurrentPage

integer

The current page.

TotalSize

integer

The total number of entries found.

PageSize

integer

The number of entries per page.

IngressList

array<object>

The list of routing rules.

array<object>

The information about the routing rule.

SlbId

string

The Server Load Balancer (SLB) ID.

lb-uf62****6d13tq2u5

NamespaceId

string

The namespace ID.

cn-shanghai

Description

string

The name of the routing rule.

test

ListenerPort

string

The listening port of the SLB.

80

SlbType

string

The type of SLB. Valid values:

  • internet: public network.

  • intranet: private network.

internet

CertId

string

The certificate ID for Classic Load Balancer (CLB).

13624*****73809_16f8e549a20_1175189789_12****3210

CertIds

string

The multi-certificate IDs for Application Load Balancer (ALB).

87***35-cn-hangzhou,812***3-cn-hangzhou

Name

string

The name of the routing rule.

lb-uf6jt0nu4z6ior943****-80-f5****

Id

integer

The ID of the routing rule.

18

LoadBalanceType

string

The type of Server Load Balancer (SLB). Valid values:

  • clb: Classic Load Balancer (CLB), formerly SLB.

  • alb: Application Load Balancer (ALB).

clb

ListenerProtocol

string

The forwarding protocol supported by the SLB. Valid values:

  • HTTP: For applications that need to inspect request content.

  • HTTPS: For applications that require encrypted transmission.

This parameter is optional in CreateIngress and UpdateIngress. If you omit it when creating or updating a gateway routing rule, the API does not return this field.

HTTP

MseGatewayId

string

The instance ID of the MSE cloud-native gateway.

gw-d5df01a1bae748f1a7c4e325d2fd****

MseGatewayPort

string

The port of the service.

80

MseGatewayProtocol

string

The forwarding protocol supported by the MSE cloud-native gateway. Valid values:

  • HTTP: For applications that need to inspect request content.

  • HTTPS: For applications that require encrypted transmission.

HTTP

RequestTimeout

integer

IdleTimeout

integer

CreateTime

integer

DefaultRule

object

ContainerPort

integer

AppName

string

AppId

string

BackendProtocol

string

Rules

array<object>

array<object>

AppName

string

ContainerPort

integer

Domain

string

AppId

string

Path

string

BackendProtocol

string

RewritePath

string

RuleActions

array<object>

object

ActionType

string

ActionConfig

string

CorsConfig

object

Enable

string

ExposeHeaders

string

AllowHeaders

string

AllowMethods

string

AllowOrigin

string

AllowCredentials

string

MaxAge

string

ErrorCode

string

The error code.

  • This parameter is not returned if the request is successful.

  • This parameter is returned if the request fails. For more information, see the Error codes section of this topic.

Code

string

The status of the API call or a POP error code. Valid values:

  • 2xx: The call was successful.

  • 3xx: The call was redirected.

  • 4xx: A client error occurred.

  • 5xx: A server error occurred.

200

Success

boolean

Indicates whether the call was successful. Valid values:

  • true: The call was successful.

  • false: The call failed.

true

Contoh

Respons sukses

JSONformat

{
  "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
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidParameter.NotEmpty You must specify the parameter %s.
400 InvalidParameter.Obviously The specified parameter is invalid {%s}.
400 InvalidParameter.WithMessage The parameter is invalid {%s}: %s

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.