The dpmec2 createImage command creates an image from a running or stopped Elastic Block Storage (EBS) instance.
This command has the following format:
dpmec2 createImage [-sc sc_url] -instance instanceID -imageName "imagename" [-imageDesc description] [-noReboot true|false] [-region region] [-pre] [-post][-locale iso639value]
(Optional) Defines the URL for the service controller host.
Example: https://hostname:port/...
Defines the fully qualified host where the service controller is installed.
Example: localhost.ca.com
Defines the listening port for the service controller server.
Example: 80
Defines the instance ID.
Defines the image name. Valid entry: 3-128 alphanumeric characters including parethesis, commas, slashes, dashes, and underscores. Must be enclosed in double quotes.
Defines a description of the image. Valid entry: any alphanumeric character.
Defines whether the instance is rebooted after it is created. Valid entries: true = reboot, false = do not reboot (default).
Defines any of the regions supported and defined by Amazon.
(Optional) Specifies whether to generate an event before the operation is performed.
(Optional) Specifies whether to generate an event after the operation is performed.
(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: Create an EBS Instance
This example creates an EBS instance that is not rebooted after it is created.
dpmec2 createImage -image ami-1234abcd -noReboot false
Copyright © 2013 CA. All rights reserved. |
|