Method: Fog::Compute::AWS::Real#create_image
- Defined in:
- lib/fog/compute/requests/aws/create_image.rb
#create_image(instance_id, name, description, no_reboot = false) ⇒ Object
Create a bootable EBS volume AMI
Parameters
-
instance_id<~String> - Instance used to create image.
-
name<~Name> - Name to give image.
-
description<~Name> - Description of image.
-
no_reboot<~Boolean> - Optional, whether or not to reboot the image when making the snapshot
Returns
-
response<~Excon::Response>:
-
body<~Hash>:
-
‘imageId’<~String> - The ID of the created AMI.
-
‘requestId’<~String> - Id of request.
-
-
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/fog/compute/requests/aws/create_image.rb', line 23 def create_image(instance_id, name, description, no_reboot = false) request( 'Action' => 'CreateImage', 'InstanceId' => instance_id, 'Name' => name, 'Description' => description, 'NoReboot' => no_reboot.to_s, :parser => Fog::Parsers::Compute::AWS::CreateImage.new ) end |