Method: Fog::Compute::Cloudstack::SecurityGroup#save

Defined in:
lib/fog/cloudstack/models/compute/security_group.rb

#saveObject



30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/fog/cloudstack/models/compute/security_group.rb', line 30

def save
  requires :name

  options = {
    'name'        => self.name,
    'account'     => self.,
    'description' => self.description,
    'projectid'   => self.project_id,
    'domainid'    => self.domain_id,
  }
  data = service.create_security_group(options)
  merge_attributes(data['createsecuritygroupresponse']['securitygroup'])
end