Deletes a persistent instance from a Nacos service.
Operation description
This is not a Nacos SDK API. The Nacos official documentation covers SDK APIs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:DeleteNacosInstance |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the Nacos instance. |
mse-cn-st21v5**** |
| ServiceName |
string |
Yes |
The name of the service. |
hello_service |
| NamespaceId |
string |
No |
The ID of the namespace. |
9e78a671-4b9b-4dd4-99c1-0b9da87**** |
| GroupName |
string |
Yes |
The name of the group. |
DEFAULT_GROUP |
| ClusterName |
string |
No |
The alias of the cluster. |
DEFAULT |
| Ip |
string |
Yes |
The IP address of the Nacos instance. |
10.237.1.32 |
| Port |
integer |
Yes |
The port of the Nacos instance. |
8080 |
| Ephemeral |
boolean |
Yes |
Whether the instance is ephemeral. Valid values:
|
false |
| AcceptLanguage |
string |
No |
The language of the response. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
RestResult |
||
| RequestId |
string |
The request ID. |
8BD1E58D-0755-42AC-A599-E6B55112**** |
| Success |
boolean |
Whether the request succeeded. Valid values:
|
true |
| Code |
integer |
The status code. 200 indicates success. |
200 |
| ErrorCode |
string |
The error code on failure. |
mse-100-000 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The error message. |
The request was successfully processed. |
| DynamicMessage |
string |
The dynamic portion of the error message. |
The specified parameter is invalid. |
| Data |
string |
The returned data. |
OK |
Examples
Success response
JSON format
{
"RequestId": "8BD1E58D-0755-42AC-A599-E6B55112****",
"Success": true,
"Code": 200,
"ErrorCode": "mse-100-000",
"HttpStatusCode": 200,
"Message": "The request was successfully processed.\n",
"DynamicMessage": "The specified parameter is invalid.",
"Data": "OK"
}
Error codes
|
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 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.