Memperbarui konfigurasi Nacos.
Deskripsi operasi
Operasi API saat ini tidak tersedia di SDK Nacos. Untuk informasi lebih lanjut tentang SDK Nacos, lihat dokumentasi resmi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:UpdateNacosConfig |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
mse-cn-7pp2a**** |
| DataId |
string |
Yes |
ID konfigurasi. |
ky-check-****.yml |
| Group |
string |
Yes |
Nama grup. |
resource |
| AppName |
string |
No |
Nama aplikasi. |
postoffice |
| Tags |
string |
No |
Daftar tag. |
2021-10-20 |
| Desc |
string |
No |
Deskripsi konfigurasi. |
Basic configurations |
| Type |
string |
No |
Format konfigurasi. Format yang didukung meliputi TEXT, JSON, XML, dan HTML. |
text |
| Content |
string |
No |
Konten konfigurasi. |
attribute1=1221111\r\nattribute2=Chinese\r\nattribute3=abc11\r\nattribute4=1.00111 |
| NamespaceId |
string |
No |
ID namespace. |
78b7af66-d15f-4541-b886-11ed81ecb6c0 |
| Md5 |
string |
No |
Nilai MD5 konfigurasi. |
045439703a273a94306422b**** |
| BetaIps |
string |
No |
Daftar alamat IP tempat rilis beta konfigurasi dilakukan. |
196.168.XX.XX |
| EncryptedDataKey |
string |
No |
Kunci enkripsi. |
122wdwe**** |
| 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 |
| Message |
string |
Pesan yang dikembalikan. |
The request was successfully processed. |
| RequestId |
string |
ID permintaan. |
69AD2AA7-DB47-449B-941B-B14409DF**** |
| ErrorCode |
string |
Kode error yang dikembalikan jika permintaan gagal. |
NoPermission |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"HttpCode": "200",
"Message": "The request was successfully processed.\n",
"RequestId": "69AD2AA7-DB47-449B-941B-B14409DF****",
"ErrorCode": "NoPermission",
"Success": true
}
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.