Uninstalls the CloudMonitor agent from a third-party host.
Operation description
This API operation is not applicable to Elastic Compute Service (ECS) instances. To uninstall the agent from an ECS instance, see Install and uninstall the CloudMonitor agent.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:UninstallMonitoringAgent |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the host. |
host-**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The status code. Note
The status code 200 indicates that the request was successful. |
200 |
| Message |
string |
The returned message. |
Successfully |
| RequestId |
string |
The request ID. |
466902B9-2842-40B0-B796-00FE772B6EF3 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "Successfully",
"RequestId": "466902B9-2842-40B0-B796-00FE772B6EF3",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterInvalid | %s | |
| 412 | AgentStateError | Expected agent running state is stopped. | Uninstall the plug-in when the status is Stopped. |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. | |
| 404 | ResourceNotFound | The specified resource is not found. | The specified resource is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.