All Products
Search
Document Center

Serverless App Engine:DescribeNamespaceList

Last Updated:Jun 11, 2026

Mengkueri daftar namespace.

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:DescribeNamespaceList

get

*全部资源

*

None None

Sintaks permintaan

GET /pop/v1/sam/namespace/describeNamespaceList HTTP/1.1

Parameter permintaan

Parameter

Type

Required

Description

Example

ContainCustom

boolean

No

Apakah akan mengembalikan namespace kustom. Nilai valid:

  • true: Sistem mengembalikan namespace kustom.

  • false: Sistem tidak mengembalikan namespace kustom.

true

HybridCloudExclude

boolean

No

Apakah akan mengecualikan namespace Cloud Hibrida. Nilai valid:

  • true: Namespace Cloud Hibrida dikecualikan.

  • false: Namespace Cloud Hibrida disertakan.

true

Elemen respons

Element

Type

Description

Example

object

The returned data.

RequestId

string

The request ID.

30375C38-F4ED-4135-A0AE-5C75DC7F****

Message

string

The returned message. Valid values:

  • success: If the call is successful, success is returned.

  • An error code: If the call fails, an error code is returned.

success

TraceId

string

The trace ID that is used to query the details of the request.

ac1a0b2215622920113732501e****

Data

array<object>

The list of namespaces.

object

The information about namespaces.

VpcId

string

The ID of the virtual private cloud (VPC).

vpc-2ze0i263cnn311nvj****

VSwitchId

string

The ID of the vSwitch.

vsw-2ze559r1z1bpwqxwp****

Custom

boolean

Indicates whether custom namespaces are returned. Valid values:

  • true: Custom namespaces are returned.

  • false: Custom namespaces are not returned.

true

AgentInstall

string

The command that was run to install the agent.

http://edas-bj.oss-cn-beijing-internal.aliyuncs.com/test/install.sh

NamespaceId

string

The ID of the namespace.

cn-beijing:test

HybridCloudEnable

boolean

Indicates whether hybrid cloud namespaces are excluded. Valid values:

  • true: Hybrid cloud namespaces are excluded.

  • false: Hybrid cloud namespaces are included.

false

SecurityGroupId

string

The ID of the security group.

sg-wz969ngg2e49q5i4****

Current

boolean

This parameter is no longer valid.

false

NamespaceName

string

The name of the namespace.

test

RegionId

string

The region to which the namespace belongs.

cn-beijing

NameSpaceShortId

string

The short ID of the namespace.

test

ErrorCode

string

The error code. Valid values:

  • If the call is successful, the ErrorCode parameter is not returned.

  • If the call fails, the ErrorCode parameter is returned. For more information, see the Error codes section in this topic.

Code

string

The HTTP status code. Valid values:

  • 2xx: The call was successful.

  • 3xx: The call was redirected.

  • 4xx: The call failed.

  • 5xx: A server error occurred.

200

Success

boolean

Indicates whether the list of namespaces was queried. Valid values:

  • true: The list was queried.

  • false: The list failed to be queried.

true

Contoh

Respons sukses

JSONformat

{
  "RequestId": "30375C38-F4ED-4135-A0AE-5C75DC7F****",
  "Message": "success",
  "TraceId": "ac1a0b2215622920113732501e****",
  "Data": [
    {
      "VpcId": "vpc-2ze0i263cnn311nvj****",
      "VSwitchId": "vsw-2ze559r1z1bpwqxwp****",
      "Custom": true,
      "AgentInstall": "http://edas-bj.oss-cn-beijing-internal.aliyuncs.com/test/install.sh",
      "NamespaceId": "cn-beijing:test",
      "HybridCloudEnable": false,
      "SecurityGroupId": "sg-wz969ngg2e49q5i4****",
      "Current": false,
      "NamespaceName": "test",
      "RegionId": "cn-beijing",
      "NameSpaceShortId": "test"
    }
  ],
  "ErrorCode": "NULL",
  "Code": "200",
  "Success": true
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.