MonitorInstances
Description
Enables monitoring for a running instance. For more information, refer to the Amazon CloudWatch Developer Guide.
Request Parameters
Name | Description | Required |
---|---|---|
|
Type: |
Ancestor: None
Children: instancesSet
instancesSet
Set of instances.
Type: MonitorInstancesSetType
Ancestor: MonitorInstancesType
Children: item
item
Instance set.
Type: MonitorInstancesSetItemType
Ancestor: instancesSet
Children: instanceId
instanceId
Instance ID.
Type: xsd:string
Default: None
Ancestor: item
Children: None
Yes
Response Elements
Name | Description |
---|---|
|
Type: MonitorInstancesResponseType Ancestor: None Children: |
|
The ID of the request. Type: xsd:string Ancestor: Children: None |
|
Monitor instance response set. Type: MonitorInstancesResponseSetType Ancestor: Children: |
|
Instance Item. Type: MonitorInstancesResponseSetItemType Ancestor: Children: |
|
Instance ID. Type: xsd:string Ancestor: Children: None |
|
Monitoring information. Type: InstanceMonitoringStateType Ancestor: Children: |
|
State of monitoring for the instance. Type: xsd:string Valid Values: Ancestor: Children: None |
Examples
Example Request
This example enables monitoring for i-43a4412a and i-23a3397d.
<MonitorInstances xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <instancesSet> <instanceId>i-43a4412a</instanceId> <instanceId>i-23a3397d</instanceId> </instancesSet> </MonitorInstances>
Example Response
<MonitorInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <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>