StopInstances#

Description#

Stops an instance.

Request Parameters#

Required parameters#

  • InstanceId.N — The instance IDs.

    • Type: Array of strings

    • Required: Yes

Optional parameters#

  • Force — Forces instances to stop.

    • Type: Boolean

    • Default value: False

    • Required: No

Note

This option is not recommended for Windows instances.

  • Hibernate — Stops the instance using hibernate.

    • Type: Boolean

    • Default value: False

    • Required: No

Response Elements#

  • requestId — The request ID.

    • Type: String

  • instancesSet — Information about instances.

Examples#

c2-ec2 StopInstances InstanceId.1 i-01234567

c2-ec2 StopInstances InstanceId.1 i-01234567 Force True

c2-ec2 StopInstances InstanceId.1 i-01234567 Hibernate True