Amazon Elastic Compute Cloud
API Reference (API Version 2011-12-15)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

MonitorInstances

Description

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

Request Parameters

NameDescriptionRequired

InstanceId.n

One or more instance IDs.

Type: String

Default: None

Yes

Response Elements

The elements in the following table are wrapped in a MonitorInstancesResponse structure.

NameDescription

requestId

The ID of the request.

Type: xsd:string

instancesSet

List of instances. Each instance's information is wrapped in an item element.

Type: MonitorInstancesResponseSetItemType

Examples

Example Request

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

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

Example Response

<MonitorInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2011-12-15/">
    <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
    <instancesSet>
      <item>
        <instanceId>i-43a4412a</instanceId>
        <monitoring>
          <state>pending</state>
        </monitoring>
    </item>
    <item>
      <instanceId>i-23a3397d</instanceId>
        <monitoring>
          <state>pending</state>
        </monitoring>
      </item>
    </instancesSet>
</MonitorInstancesResponse>