Sha256: a91ab1156770021374008e59803c57bbe53677702aeee7eec146644484b4cddf

Contents?: true

Size: 625 Bytes

Versions: 1

Compression:

Stored size: 625 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Creates a VPC
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/createVPC.html]
        def create_vpc(cidr, vpcofferingid, name, displaytext, zoneid, options={})
          options.merge!(
            'command' => 'createVPC', 
            'cidr' => cidr, 
            'vpcofferingid' => vpcofferingid, 
            'name' => name, 
            'displaytext' => displaytext, 
            'zoneid' => zoneid  
          )
          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_vpc.rb