All Products
Search
Document Center

Microservices Engine:ListNacosHistoryConfigs

Last Updated:Jun 10, 2026

Mengkueri riwayat konfigurasi Instans Pusat Registrasi Nacos.

Deskripsi operasi

Catatan

The current OpenAPI is not the Nacos-SDK API. For information about the Nacos-SDK API, see official documentation.

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

mse:ListNacosHistoryConfigs

get

*All Resource

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RequestPars

string

No

Parameter permintaan yang diperluas dalam format JSON.

{\"appGroup\":\"aliyun-phecda-service-staging\",\"appName\":\"aliyun-phecda-service\",\"appStage\":\"DAILY\",\"appUnit\":\"center\",\"bucId\":\"250858\",\"bucName\":\"阿里云\",\"provider\":\"aliyun\"}

PageNum

integer

Yes

Nomor halaman.

1

PageSize

integer

Yes

Jumlah entri per halaman.

10

InstanceId

string

Yes

ID Instans.

mse-cn-2r42e3bk20n

RegionId

string

No

Wilayah tempat Kluster berada. MSE mendukung Wilayah tertentu.

cn-hangzhou

DataId

string

No

ID data.

user-prod.yaml

Group

string

No

Nama kelompok konfigurasi.

fc-dev-cluster-1

NamespaceId

string

No

ID namespace. Nilai default: public.

fc0f6e40-****-946b-45e3af313707

AcceptLanguage

string

No

Bahasa tanggapan. Nilai valid:

  • zh: Bahasa Tionghoa

  • en: Bahasa Inggris.

zh

Elemen respons

Element

Type

Description

Example

object

The data structure.

HttpCode

string

The HTTP status code.

200

TotalCount

integer

The total number of entries returned.

7

RequestId

string

The request ID.

53338ECA-F880-54D8-A9B3-5606355A1B89

Message

string

The message that is returned for the request.

请求处理成功

PageSize

integer

The number of entries returned per page.

10

PageNumber

integer

The page number.

1

ErrorCode

string

The error code.

mse-100-000

Success

boolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.

  • false: The request failed.

true

HistoryItems

array<object>

The configuration items.

object

AppName

string

The tags of the application.

gateway

DataId

string

The ID of the data.

test.yaml

Group

string

The name of the group.

default

LastModifiedTime

integer

The timestamp when the configuration was last modified.

1643440066000

Id

integer

The configuration ID.

23fdsf

OpType

string

The format of the configuration file.

yaml

SrcUser

string

The user who modified this version

test

Contoh

Respons sukses

JSONformat

{
  "HttpCode": "200",
  "TotalCount": 7,
  "RequestId": "53338ECA-F880-54D8-A9B3-5606355A1B89",
  "Message": "请求处理成功",
  "PageSize": 10,
  "PageNumber": 1,
  "ErrorCode": "mse-100-000",
  "Success": true,
  "HistoryItems": [
    {
      "AppName": "gateway",
      "DataId": "test.yaml",
      "Group": "default",
      "LastModifiedTime": 1643440066000,
      "Id": 0,
      "OpType": "yaml",
      "SrcUser": "test"
    }
  ]
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 IllegalRequest Invalid request:%s Invalid request: %s
400 InvalidParameter Parameter error:%s Request parameter error: %s
500 InternalError Console error. Try again later:%s Console error. Try again later: %s
403 NoPermission You are not authorized to perform this operation:%s You do not have the permission to use this interface:%s
404 NotFound Not found:%s The resource does not exist:%s

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.