Previous Topic: dpmec2 getimages Command--Get Amazon EC2 Images

Next Topic: dpmec2 getlist Command--Get Amazon EC2 List


dpmec2 getinstances Command--Get Amazon EC2 Instances

The dpmec2 getinstances command lists Amazon EC2 reservations.

This command has the following format:

dpmec2 getinstances [-sc sc_url] -reservation all|reservationID[,reservationID] [-region region] [-pre] [-post][-locale iso639value]
-sc sc_url

(Optional) Defines the URL for the service controller host.

Example: https://hostname:port/...

hostname

Defines the fully qualified host where the service controller is installed.

Example: localhost.ca.com

port

Defines the listening port for the service controller server.

Example: 80

-reservation all|reservationID[,reservationID]

Defines all instance reservations or specific reservations.

all

Lists all instances.

reservationID

Lists the instances with specific reservation IDs

-region region

Defines any of the regions supported and defined by Amazon.

-pre

(Optional) Specifies whether to generate an event before the operation is performed.

-post

(Optional) Specifies whether to generate an event after the operation is performed.

-locale iso639value

(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".

Example: Get All Instances

This example lists reservations for all instances.

dpmec2 getinstances -reservation all