Menghapus layanan 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:DeleteNacosService |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instance. |
mse-cn-123456 |
| ServiceName |
string |
Yes |
Nama layanan. |
hello_service |
| GroupName |
string |
Yes |
Nama grup. |
DEFAULT_GROUP |
| NamespaceId |
string |
No |
ID namespace. |
9e78a671-4b9b-4dd4-99c1-0**** |
| AcceptLanguage |
string |
No |
Bahasa respons. Nilai yang valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Objek string. |
||
| HttpStatusCode |
integer |
Kode status HTTP yang dikembalikan. |
200 |
| RequestId |
string |
ID permintaan. |
9e78a671-4b9b-4dd4-99c1-0b9da87d3dec |
| Message |
string |
Pesan yang dikembalikan. |
The request is successfully processed. |
| Code |
integer |
Kode respons yang dikembalikan. |
200 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
| Data |
string |
Hasil penghapusan. |
ok |
Contoh
Respons sukses
JSONformat
{
"HttpStatusCode": 200,
"RequestId": "9e78a671-4b9b-4dd4-99c1-0b9da87d3dec",
"Message": "The request is successfully processed.\n",
"Code": 200,
"Success": true,
"Data": "ok"
}
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.