Uninstalls the Cloud Monitor agent from a host that is not an Elastic Compute Service (ECS) instance.

This operation is not applicable to ECS instances. To uninstall the agent from an ECS instance, see relevant documentation.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
InstanceId String Yes host-****

The ID of the host.

Action String No UninstallMonitoringAgent

The operation that you want to perform. Set the value to UninstallMonitoringAgent.

Response parameters

Parameter Type Example Description
Code String 200

The HTTP status code. The status code 200 indicates that the call was successful.

Message String Successfully

The returned message.

RequestId String 466902B9-2842-40B0-B796-00FE772B6EF3

The ID of the request.

Success Boolean true

Indicates whether the call was successful.

Examples

Sample requests


http(s)://[Endpoint]/?Action=UninstallMonitoringAgent
&InstanceId=i-xx12****
&<Common request parameters>

Sample success responses

XML format

<UninstallMonitoringAgentResponse>
    <RequestId>466902B9-2842-40B0-B796-00FE772B6EF3</RequestId>
    <Code>200</Code>
    <Message>Successfully</Message>
</UninstallMonitoringAgentResponse>

JSON format

{
	"Message":"Successfully",
	"RequestId":"466902B9-2842-40B0-B796-00FE772B6EF3",
	"Code":"200"
}

Error codes

For a list of error codes, visit the API Error Center.