Amazon Elastic Compute Cloud
API Reference (API Version 2013-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

UnmonitorInstances

Description

Disables monitoring for a running instance. For more information about monitoring instances, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide.

Request Parameters

InstanceId.n

One or more instance IDs.

Type: String

Default: None

Required: Yes

Response Elements

The following elements are returned in an UnmonitorInstancesResponse element.

requestId

The ID of the request.

Type: xsd:string

instancesSet

A list of monitoring information for one or more instances. Each set of information is wrapped in an item element.

Type: MonitorInstancesResponseSetItemType

Examples

Example Request

This example disables monitoring for i-43a4412a and i-23a3397d.

https://ec2.amazonaws.com/?Action=UnmonitorInstances
&InstanceId.1=i-43a4412a
&InstanceId.2=i-23a3397d
&AUTHPARAMS

Example Response

<UnmonitorInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
   <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
   <instancesSet>
      <item>
         <instanceId>i-43a4412a</instanceId>
         <monitoring>
            <state>disabled</state>
         </monitoring>
      </item>
      <item>
         <instanceId>i-23a3397d</instanceId>
         <monitoring>
            <state>disabled</state>
         </monitoring>
      </item>
   </instancesSet>
</UnmonitorInstancesResponse>