Membuat kueri konfigurasi Nacos.
Deskripsi operasi
Operasi ini tidak disediakan dalam SDK Nacos. Untuk informasi tentang SDK Nacos, lihat dokumentasi resmi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:ListNacosConfigs |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RequestPars |
string |
No |
Parameter permintaan yang diperluas. Format JSON didukung. |
{\\"appGroup\\":\\"sm_zk_asi_na610\\",\\"appName\\":\\"sm-zk\\",\\"appStage\\":\\"PUBLISH\\",\\"appUnit\\":\\"center\\",\\"bucId\\":\\"193554\\",\\"bucName\\":\\"Alibaba Mobile Business Group-UC\\",\\"provider\\":\\"aliyun\\"} |
| PageNum |
integer |
Yes |
Nomor halaman yang akan dikembalikan. |
5 |
| PageSize |
integer |
Yes |
Jumlah entri yang akan dikembalikan pada setiap halaman. |
200 |
| InstanceId |
string |
Yes |
ID instans. |
mse-cn-7mz2fj**** |
| RegionId |
string |
No |
ID region tempat instans berada. Region ini didukung oleh Microservices Engine (MSE). |
cn-hangzhou |
| DataId |
string |
No |
ID data. |
zeekr-* |
| Group |
string |
No |
Nama grup. Nilai default: |
crm |
| AppName |
string |
No |
Nama aplikasi. |
fpx-pds-pns |
| Tags |
string |
No |
Tag. |
billing |
| NamespaceId |
string |
No |
ID namespace. |
fad732a7-ff1a-4f21-8126-4edd4**** |
| AcceptLanguage |
string |
No |
Bahasa respons. Nilai yang valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Struktur data. |
||
| HttpCode |
string |
Kode status HTTP yang dikembalikan. |
200 |
| TotalCount |
integer |
Jumlah total instans yang dikembalikan. |
12 |
| RequestId |
string |
ID permintaan. |
4081087F-3429-5873-A1E7-D4B5479D0B84 |
| Message |
string |
Pesan yang dikembalikan. |
The request was successfully processed. |
| PageSize |
integer |
Jumlah entri yang dikembalikan per halaman. |
10 |
| PageNumber |
integer |
Nomor halaman dari halaman yang dikembalikan. |
1 |
| ErrorCode |
string |
Kode kesalahan yang dikembalikan jika permintaan gagal. |
mse-100-000 |
| Configurations |
array<object> |
Konfigurasi. |
|
|
object |
Struktur data. |
||
| AppName |
string |
Nama aplikasi. |
test |
| DataId |
string |
ID konfigurasi. |
log.yaml |
| Id |
string |
ID aplikasi. |
132**** |
| Group |
string |
ID grup. |
public |
| Code |
integer |
Kode status yang dikembalikan. |
200 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"HttpCode": "200",
"TotalCount": 12,
"RequestId": "4081087F-3429-5873-A1E7-D4B5479D0B84",
"Message": "The request was successfully processed.\n",
"PageSize": 10,
"PageNumber": 1,
"ErrorCode": "mse-100-000",
"Configurations": [
{
"AppName": "test",
"DataId": "log.yaml",
"Id": "132****",
"Group": "public"
}
],
"Code": 200,
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationNotSupport | The current cluster does not support this operation, %s. | The current cluster does not support this operation |
| 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.