Sha256: fd75a588697ffa324ca789268abba036b108ceeedb87e9653d8cc375f362c4ee

Contents?: true

Size: 751 Bytes

Versions: 1

Compression:

Stored size: 751 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Creates a template of a virtual machine. The virtual machine must be in a STOPPED state. A template created from this command is automatically designated as a private template visible to the account that created it.
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/createTemplate.html]
        def create_template(ostypeid, displaytext, name, options={})
          options.merge!(
            'command' => 'createTemplate', 
            'ostypeid' => ostypeid, 
            'displaytext' => displaytext, 
            'name' => name  
          )
          request(options)
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-1.23.0 lib/fog/cloudstack/requests/compute/create_template.rb