Method: Fog::Compute::OracleCloud::Instance#create

Defined in:
lib/fog/oraclecloud/models/compute/instance.rb

#createObject



60
61
62
63
64
65
# File 'lib/fog/oraclecloud/models/compute/instance.rb', line 60

def create
  requires :name, :sshkeys
  
  data = service.create_instance(name, shape || 'oc3', imagelist || '/oracle/public/oel_6.4_2GB_v1', label, sshkeys)
  merge_attributes(data.body['instances'][0])
end