Membuat konfigurasi Nacos.
Deskripsi operasi
Operasi ini tidak tersedia di 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:CreateNacosConfig |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
mse_prepaid_public_cn-tl32**** |
| DataId |
string |
Yes |
ID data. |
common.yaml |
| Group |
string |
Yes |
ID grup. |
alime-bridge-aliyun |
| AppName |
string |
No |
Nama aplikasi. |
saledatacenter-task |
| Tags |
string |
No |
Tag konfigurasi. |
Basic configurations |
| Desc |
string |
No |
Deskripsi konfigurasi. |
Basic module configuration. |
| Type |
string |
No |
Format konfigurasi. Format yang didukung meliputi TEXT, JSON, dan XML. |
text |
| Content |
string |
No |
Konten konfigurasi. |
asdf |
| NamespaceId |
string |
No |
ID namespace. |
547fd2a0-d0d6-****-80db2a1afb82 |
| BetaIps |
string |
No |
Daftar alamat IP tempat rilis beta konfigurasi dilakukan. |
100.117.XX.XX,100.117.XX.XX |
| AcceptLanguage |
string |
No |
Bahasa respons. Nilai yang valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Struktur data. |
||
| HttpCode |
string |
Kode status HTTP. |
202 |
| RequestId |
string |
ID permintaan. |
673DBD43-569E-510F-B3DE-20BB8DFEB20A |
| Message |
string |
Pesan kesalahan yang dikembalikan. |
The request was successfully processed. |
| ErrorCode |
string |
Kode kesalahan yang dikembalikan jika permintaan gagal. |
mse-100-000 |
| Code |
string |
Kode yang dikembalikan. |
1 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"HttpCode": "202",
"RequestId": "673DBD43-569E-510F-B3DE-20BB8DFEB20A",
"Message": "The request was successfully processed.\n",
"ErrorCode": "mse-100-000",
"Code": "1",
"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.