All Products
Search
Document Center

Platform For AI:DescribeServiceEndpoints

Last Updated:Jun 11, 2026

Mengambil daftar titik akhir layanan.

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

eas:DescribeServiceEndpoints

get

*全部资源

*

None None

Sintaks permintaan

GET /api/v2/services/{ClusterId}/{ServiceName}/endpoints HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

ClusterId

string

No

ID wilayah.

cn-hangzhou

ServiceName

string

Yes

Nama layanan. Untuk informasi selengkapnya, lihat ListServices.

service_name

Parameter permintaan

Parameter

Type

Required

Description

Example

Tidak ada parameter yang diperlukan.

Elemen respons

Element

Type

Description

Example

object

The response.

RequestId

string

The request ID.

739998B5-FB39-12A3-8323-0FA340317298

Message

string

The message returned.

执行成功。

AccessToken

string

The service token.

Nzc5N2FhN****TQ0YzBmYTIyN2MxZTUxN2NkYjg4MTJmMWQxZmY1****

Endpoints

array<object>

The list of service endpoints.

object

EndpointType

string

The connection type of the service endpoint. Valid values:

  • DefaultGateway: The service is connected using a shared gateway.

  • PrivateGateway: The service is connected using a dedicated gateway.

  • Nlb: The service is attached to a Network Load Balancer (NLB) instance.

  • Nacos: The service is attached to a Nacos instance.

Nlb

BackendId

string

The ID of the backend service. The value of this parameter varies based on the value of EndpointType:

  • If EndpointType is DefaultGateway, this parameter is set to default.

  • If EndpointType is PrivateGateway, this parameter is the ID of the dedicated gateway.

  • If EndpointType is Nlb, this parameter is the ID of the NLB instance.

  • If EndpointType is Nacos, this parameter is the ID of the Nacos instance.

nlb-5q4sp7u6oorkha****

PathType

string

The type of the endpoint. Valid values:

  • Group: The endpoint of an audience group.

  • Service: The endpoint of a service.

Service

IntranetEndpoints

array

The list of internal endpoints.

string

The internal endpoint.

nlb-5q4sp7u6oor****jvv.cn-hangzhou.nlb.aliyuncs.com

InternetEndpoints

array

The list of internet-facing endpoints.

string

The internet-facing endpoint.

null

Port

integer

The port number. This parameter is returned only when the service is attached to an NLB or Nacos instance.

9090

Contoh

Respons sukses

JSONformat

{
  "RequestId": "739998B5-FB39-12A3-8323-0FA340317298",
  "Message": "执行成功。",
  "AccessToken": "Nzc5N2FhN****TQ0YzBmYTIyN2MxZTUxN2NkYjg4MTJmMWQxZmY1****",
  "Endpoints": [
    {
      "EndpointType": "Nlb",
      "BackendId": "nlb-5q4sp7u6oorkha****",
      "PathType": "Service",
      "IntranetEndpoints": [
        "nlb-5q4sp7u6oor****jvv.cn-hangzhou.nlb.aliyuncs.com"
      ],
      "InternetEndpoints": [
        "null"
      ],
      "Port": 9090
    }
  ]
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.