class Fog::Compute::Cloudstack::Real

Public Class Methods

new(options={}) click to toggle source
# File lib/fog/cloudstack/compute.rb, line 500
def initialize(options={})
  @cloudstack_api_key           = options[:cloudstack_api_key]
  @cloudstack_secret_access_key = options[:cloudstack_secret_access_key]
  @cloudstack_session_id        = options[:cloudstack_session_id]
  @cloudstack_session_key       = options[:cloudstack_session_key]
  @host                         = options[:cloudstack_host]
  @path                         = options[:cloudstack_path]    || '/client/api'
  @port                         = options[:cloudstack_port]    || 443
  @scheme                       = options[:cloudstack_scheme]  || 'https'
  @connection = Fog::XML::Connection.new("#{@scheme}://#{@host}:#{@port}#{@path}", options[:cloudstack_persistent], {:ssl_verify_peer => false})
end

Public Instance Methods

acquire_ip_address(options={}) click to toggle source

Creates an account.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/acquire_ip_address.rb, line 8
def acquire_ip_address(options={})
  options.merge!(
    'command' => 'associateIpAddress'
  )

  request(options)
end
activate_project(id, options={}) click to toggle source

Activates a project

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/activate_project.rb, line 9
def activate_project(id, options={})
  options.merge!(
    'command' => 'activateProject', 
    'id' => id  
  )
  request(options)
end
add_account_to_project(projectid, options={}) click to toggle source

Adds acoount to a project

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_account_to_project.rb, line 9
def add_account_to_project(projectid, options={})
  options.merge!(
    'command' => 'addAccountToProject', 
    'projectid' => projectid  
  )
  request(options)
end
add_baremetal_dhcp(dhcpservertype, physicalnetworkid, username, url, password, options={}) click to toggle source

adds a baremetal dhcp server

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_baremetal_dhcp.rb, line 9
def add_baremetal_dhcp(dhcpservertype, physicalnetworkid, username, url, password, options={})
  options.merge!(
    'command' => 'addBaremetalDhcp', 
    'dhcpservertype' => dhcpservertype, 
    'physicalnetworkid' => physicalnetworkid, 
    'username' => username, 
    'url' => url, 
    'password' => password  
  )
  request(options)
end
add_baremetal_host(zoneid, password, podid, username, hypervisor, url, options={}) click to toggle source

add a baremetal host

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_baremetal_host.rb, line 9
def add_baremetal_host(zoneid, password, podid, username, hypervisor, url, options={})
  options.merge!(
    'command' => 'addBaremetalHost', 
    'zoneid' => zoneid, 
    'password' => password, 
    'podid' => podid, 
    'username' => username, 
    'hypervisor' => hypervisor, 
    'url' => url  
  )
  request(options)
end
add_baremetal_pxe_kick_start_server(username, url, physicalnetworkid, password, pxeservertype, tftpdir, options={}) click to toggle source

add a baremetal pxe server

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_baremetal_pxe_kick_start_server.rb, line 9
def add_baremetal_pxe_kick_start_server(username, url, physicalnetworkid, password, pxeservertype, tftpdir, options={})
  options.merge!(
    'command' => 'addBaremetalPxeKickStartServer', 
    'username' => username, 
    'url' => url, 
    'physicalnetworkid' => physicalnetworkid, 
    'password' => password, 
    'pxeservertype' => pxeservertype, 
    'tftpdir' => tftpdir  
  )
  request(options)
end
add_baremetal_pxe_ping_server(password, pxeservertype, pingstorageserverip, tftpdir, url, physicalnetworkid, pingdir, username, options={}) click to toggle source

add a baremetal ping pxe server

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_baremetal_pxe_ping_server.rb, line 9
def add_baremetal_pxe_ping_server(password, pxeservertype, pingstorageserverip, tftpdir, url, physicalnetworkid, pingdir, username, options={})
  options.merge!(
    'command' => 'addBaremetalPxePingServer', 
    'password' => password, 
    'pxeservertype' => pxeservertype, 
    'pingstorageserverip' => pingstorageserverip, 
    'tftpdir' => tftpdir, 
    'url' => url, 
    'physicalnetworkid' => physicalnetworkid, 
    'pingdir' => pingdir, 
    'username' => username  
  )
  request(options)
end
add_cisco_asa1000v_resource(physicalnetworkid, clusterid, hostname, insideportprofile, options={}) click to toggle source

Adds a Cisco Asa 1000v appliance

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_cisco_asa1000v_resource.rb, line 9
def add_cisco_asa1000v_resource(physicalnetworkid, clusterid, hostname, insideportprofile, options={})
  options.merge!(
    'command' => 'addCiscoAsa1000vResource', 
    'physicalnetworkid' => physicalnetworkid, 
    'clusterid' => clusterid, 
    'hostname' => hostname, 
    'insideportprofile' => insideportprofile  
  )
  request(options)
end
add_cisco_vnmc_resource(physicalnetworkid, hostname, password, username, options={}) click to toggle source

Adds a Cisco Vnmc Controller

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_cisco_vnmc_resource.rb, line 9
def add_cisco_vnmc_resource(physicalnetworkid, hostname, password, username, options={})
  options.merge!(
    'command' => 'addCiscoVnmcResource', 
    'physicalnetworkid' => physicalnetworkid, 
    'hostname' => hostname, 
    'password' => password, 
    'username' => username  
  )
  request(options)
end
add_cluster(podid, clustername, clustertype, hypervisor, zoneid, options={}) click to toggle source

Adds a new cluster

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_cluster.rb, line 9
def add_cluster(podid, clustername, clustertype, hypervisor, zoneid, options={})
  options.merge!(
    'command' => 'addCluster', 
    'podid' => podid, 
    'clustername' => clustername, 
    'clustertype' => clustertype, 
    'hypervisor' => hypervisor, 
    'zoneid' => zoneid  
  )
  request(options)
end
add_external_firewall(url, username, password, zoneid, options={}) click to toggle source

Adds an external firewall appliance

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_external_firewall.rb, line 9
def add_external_firewall(url, username, password, zoneid, options={})
  options.merge!(
    'command' => 'addExternalFirewall', 
    'url' => url, 
    'username' => username, 
    'password' => password, 
    'zoneid' => zoneid  
  )
  request(options)
end
add_external_load_balancer(zoneid, username, password, url, options={}) click to toggle source

Adds F5 external load balancer appliance.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_external_load_balancer.rb, line 9
def add_external_load_balancer(zoneid, username, password, url, options={})
  options.merge!(
    'command' => 'addExternalLoadBalancer', 
    'zoneid' => zoneid, 
    'username' => username, 
    'password' => password, 
    'url' => url  
  )
  request(options)
end
add_f5_load_balancer(url, physicalnetworkid, networkdevicetype, username, password, options={}) click to toggle source

Adds a F5 BigIP load balancer device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_f5_load_balancer.rb, line 9
def add_f5_load_balancer(url, physicalnetworkid, networkdevicetype, username, password, options={})
  options.merge!(
    'command' => 'addF5LoadBalancer', 
    'url' => url, 
    'physicalnetworkid' => physicalnetworkid, 
    'networkdevicetype' => networkdevicetype, 
    'username' => username, 
    'password' => password  
  )
  request(options)
end
add_host(hypervisor, zoneid, url, password, podid, username, options={}) click to toggle source

Adds a new host.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_host.rb, line 9
def add_host(hypervisor, zoneid, url, password, podid, username, options={})
  options.merge!(
    'command' => 'addHost', 
    'hypervisor' => hypervisor, 
    'zoneid' => zoneid, 
    'url' => url, 
    'password' => password, 
    'podid' => podid, 
    'username' => username  
  )
  request(options)
end
add_image_store(provider, options={}) click to toggle source

Adds backup image store.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_image_store.rb, line 9
def add_image_store(provider, options={})
  options.merge!(
    'command' => 'addImageStore', 
    'provider' => provider  
  )
  request(options)
end
add_ip_to_nic(nicid, options={}) click to toggle source

Assigns secondary IP to NIC

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_ip_to_nic.rb, line 9
def add_ip_to_nic(nicid, options={})
  options.merge!(
    'command' => 'addIpToNic', 
    'nicid' => nicid  
  )
  request(options)
end
add_netscaler_load_balancer(password, username, physicalnetworkid, networkdevicetype, url, options={}) click to toggle source

Adds a netscaler load balancer device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_netscaler_load_balancer.rb, line 9
def add_netscaler_load_balancer(password, username, physicalnetworkid, networkdevicetype, url, options={})
  options.merge!(
    'command' => 'addNetscalerLoadBalancer', 
    'password' => password, 
    'username' => username, 
    'physicalnetworkid' => physicalnetworkid, 
    'networkdevicetype' => networkdevicetype, 
    'url' => url  
  )
  request(options)
end
add_network_device(options={}) click to toggle source

Adds a network device of one of the following types: ExternalDhcp, ExternalFirewall, ExternalLoadBalancer, PxeServer

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_network_device.rb, line 9
def add_network_device(options={})
  options.merge!(
    'command' => 'addNetworkDevice'  
  )
  request(options)
end
add_network_service_provider(physicalnetworkid, name, options={}) click to toggle source

Adds a network serviceProvider to a physical network

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_network_service_provider.rb, line 9
def add_network_service_provider(physicalnetworkid, name, options={})
  options.merge!(
    'command' => 'addNetworkServiceProvider', 
    'physicalnetworkid' => physicalnetworkid, 
    'name' => name  
  )
  request(options)
end
add_nic_to_virtual_machine(virtualmachineid, networkid, options={}) click to toggle source

Adds VM to specified network by creating a NIC

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_nic_to_virtual_machine.rb, line 9
def add_nic_to_virtual_machine(virtualmachineid, networkid, options={})
  options.merge!(
    'command' => 'addNicToVirtualMachine', 
    'virtualmachineid' => virtualmachineid, 
    'networkid' => networkid  
  )
  request(options)
end
add_nicira_nvp_device(username, physicalnetworkid, transportzoneuuid, password, hostname, options={}) click to toggle source

Adds a Nicira NVP device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_nicira_nvp_device.rb, line 9
def add_nicira_nvp_device(username, physicalnetworkid, transportzoneuuid, password, hostname, options={})
  options.merge!(
    'command' => 'addNiciraNvpDevice', 
    'username' => username, 
    'physicalnetworkid' => physicalnetworkid, 
    'transportzoneuuid' => transportzoneuuid, 
    'password' => password, 
    'hostname' => hostname  
  )
  request(options)
end
add_region(id, name, endpoint, options={}) click to toggle source

Adds a Region

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_region.rb, line 9
def add_region(id, name, endpoint, options={})
  options.merge!(
    'command' => 'addRegion', 
    'id' => id, 
    'name' => name, 
    'endpoint' => endpoint  
  )
  request(options)
end
add_resource_detail(resourcetype, details, resourceid, options={}) click to toggle source

Adds detail for the Resource.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_resource_detail.rb, line 9
def add_resource_detail(resourcetype, details, resourceid, options={})
  options.merge!(
    'command' => 'addResourceDetail', 
    'resourcetype' => resourcetype, 
    'details' => details, 
    'resourceid' => resourceid  
  )
  request(options)
end
add_s3(bucket, accesskey, secretkey, options={}) click to toggle source

Adds S3

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_s3.rb, line 9
def add_s3(bucket, accesskey, secretkey, options={})
  options.merge!(
    'command' => 'addS3', 
    'bucket' => bucket, 
    'accesskey' => accesskey, 
    'secretkey' => secretkey  
  )
  request(options)
end
add_secondary_storage(url, options={}) click to toggle source

Adds secondary storage.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_secondary_storage.rb, line 9
def add_secondary_storage(url, options={})
  options.merge!(
    'command' => 'addSecondaryStorage', 
    'url' => url  
  )
  request(options)
end
add_srx_firewall(username, networkdevicetype, physicalnetworkid, password, url, options={}) click to toggle source

Adds a SRX firewall device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_srx_firewall.rb, line 9
def add_srx_firewall(username, networkdevicetype, physicalnetworkid, password, url, options={})
  options.merge!(
    'command' => 'addSrxFirewall', 
    'username' => username, 
    'networkdevicetype' => networkdevicetype, 
    'physicalnetworkid' => physicalnetworkid, 
    'password' => password, 
    'url' => url  
  )
  request(options)
end
add_swift(url, options={}) click to toggle source

Adds Swift.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_swift.rb, line 9
def add_swift(url, options={})
  options.merge!(
    'command' => 'addSwift', 
    'url' => url  
  )
  request(options)
end
add_traffic_monitor(zoneid, url, options={}) click to toggle source

Adds Traffic Monitor Host for Direct Network Usage

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_traffic_monitor.rb, line 9
def add_traffic_monitor(zoneid, url, options={})
  options.merge!(
    'command' => 'addTrafficMonitor', 
    'zoneid' => zoneid, 
    'url' => url  
  )
  request(options)
end
add_traffic_type(physicalnetworkid, traffictype, options={}) click to toggle source

Adds traffic type to a physical network

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_traffic_type.rb, line 9
def add_traffic_type(physicalnetworkid, traffictype, options={})
  options.merge!(
    'command' => 'addTrafficType', 
    'physicalnetworkid' => physicalnetworkid, 
    'traffictype' => traffictype  
  )
  request(options)
end
add_ucs_manager(zoneid, url, password, username, options={}) click to toggle source

Adds a Ucs manager

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_ucs_manager.rb, line 9
def add_ucs_manager(zoneid, url, password, username, options={})
  options.merge!(
    'command' => 'addUcsManager', 
    'zoneid' => zoneid, 
    'url' => url, 
    'password' => password, 
    'username' => username  
  )
  request(options)
end
add_vmware_dc(zoneid, name, vcenter, options={}) click to toggle source

Adds a VMware datacenter to specified zone

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_vmware_dc.rb, line 9
def add_vmware_dc(zoneid, name, vcenter, options={})
  options.merge!(
    'command' => 'addVmwareDc', 
    'zoneid' => zoneid, 
    'name' => name, 
    'vcenter' => vcenter  
  )
  request(options)
end
add_vpn_user(password, username, options={}) click to toggle source

Adds vpn users

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/add_vpn_user.rb, line 9
def add_vpn_user(password, username, options={})
  options.merge!(
    'command' => 'addVpnUser', 
    'password' => password, 
    'username' => username  
  )
  request(options)
end
archive_alerts(options={}) click to toggle source

Archive one or more alerts.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/archive_alerts.rb, line 9
def archive_alerts(options={})
  options.merge!(
    'command' => 'archiveAlerts'  
  )
  request(options)
end
archive_events(options={}) click to toggle source

Archive one or more events.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/archive_events.rb, line 9
def archive_events(options={})
  options.merge!(
    'command' => 'archiveEvents'  
  )
  request(options)
end
assign_to_global_load_balancer_rule(id, loadbalancerrulelist, options={}) click to toggle source

Assign load balancer rule or list of load balancer rules to a global load balancer rules.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb, line 9
def assign_to_global_load_balancer_rule(id, loadbalancerrulelist, options={})
  options.merge!(
    'command' => 'assignToGlobalLoadBalancerRule', 
    'id' => id, 
    'loadbalancerrulelist' => loadbalancerrulelist  
  )
  request(options)
end
assign_to_load_balancer_rule(id, virtualmachineids, options={}) click to toggle source

Assigns virtual machine or a list of virtual machines to a load balancer rule.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/assign_to_load_balancer_rule.rb, line 9
def assign_to_load_balancer_rule(id, virtualmachineids, options={})
  options.merge!(
    'command' => 'assignToLoadBalancerRule', 
    'id' => id, 
    'virtualmachineids' => virtualmachineids  
  )
  request(options)
end
assign_virtual_machine(virtualmachineid, account, domainid, options={}) click to toggle source

Change ownership of a VM from one account to another. This API is available for Basic zones with security groups and Advanced zones with guest networks. A root administrator can reassign a VM from any account to any other account in any domain. A domain administrator can reassign a VM to any account in the same domain.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/assign_virtual_machine.rb, line 9
def assign_virtual_machine(virtualmachineid, account, domainid, options={})
  options.merge!(
    'command' => 'assignVirtualMachine', 
    'virtualmachineid' => virtualmachineid, 
    'account' => account, 
    'domainid' => domainid  
  )
  request(options)
end
associate_ip_address(options={}) click to toggle source

Acquires and associates a public IP to an account.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/associate_ip_address.rb, line 9
def associate_ip_address(options={})
  options.merge!(
    'command' => 'associateIpAddress'  
  )
  request(options)
end
associate_lun(iqn, name, options={}) click to toggle source

Associate a LUN with a guest IQN

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/associate_lun.rb, line 9
def associate_lun(iqn, name, options={})
  options.merge!(
    'command' => 'associateLun', 
    'iqn' => iqn, 
    'name' => name  
  )
  request(options)
end
associate_ucs_profile_to_blade(bladeid, profiledn, ucsmanagerid, options={}) click to toggle source

associate a profile to a blade

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/associate_ucs_profile_to_blade.rb, line 9
def associate_ucs_profile_to_blade(bladeid, profiledn, ucsmanagerid, options={})
  options.merge!(
    'command' => 'associateUcsProfileToBlade', 
    'bladeid' => bladeid, 
    'profiledn' => profiledn, 
    'ucsmanagerid' => ucsmanagerid  
  )
  request(options)
end
attach_iso(id, virtualmachineid, options={}) click to toggle source

Attaches an ISO to a virtual machine.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/attach_iso.rb, line 9
def attach_iso(id, virtualmachineid, options={})
  options.merge!(
    'command' => 'attachIso', 
    'id' => id, 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end
attach_volume(virtualmachineid, id, options={}) click to toggle source

Attaches a disk volume to a virtual machine.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/attach_volume.rb, line 9
def attach_volume(virtualmachineid, id, options={})
  options.merge!(
    'command' => 'attachVolume', 
    'virtualmachineid' => virtualmachineid, 
    'id' => id  
  )
  request(options)
end
authorize_security_group_egress(options={}) click to toggle source

Authorizes a particular egress rule for this security group

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/authorize_security_group_egress.rb, line 9
def authorize_security_group_egress(options={})
  options.merge!(
    'command' => 'authorizeSecurityGroupEgress'  
  )
  request(options)
end
authorize_security_group_ingress(options={}) click to toggle source

Authorizes a particular ingress rule for this security group

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/authorize_security_group_ingress.rb, line 9
def authorize_security_group_ingress(options={})
  options.merge!(
    'command' => 'authorizeSecurityGroupIngress'  
  )
  request(options)
end
cancel_host_maintenance(id, options={}) click to toggle source

Cancels host maintenance.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/cancel_host_maintenance.rb, line 9
def cancel_host_maintenance(id, options={})
  options.merge!(
    'command' => 'cancelHostMaintenance', 
    'id' => id  
  )
  request(options)
end
cancel_storage_maintenance(id, options={}) click to toggle source

Cancels maintenance for primary storage

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/cancel_storage_maintenance.rb, line 9
def cancel_storage_maintenance(id, options={})
  options.merge!(
    'command' => 'cancelStorageMaintenance', 
    'id' => id  
  )
  request(options)
end
change_service_for_router(serviceofferingid, id, options={}) click to toggle source

Upgrades domain router to a new service offering

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/change_service_for_router.rb, line 9
def change_service_for_router(serviceofferingid, id, options={})
  options.merge!(
    'command' => 'changeServiceForRouter', 
    'serviceofferingid' => serviceofferingid, 
    'id' => id  
  )
  request(options)
end
change_service_for_system_vm(id, serviceofferingid, options={}) click to toggle source

Changes the service offering for a system vm (console proxy or secondary storage). The system vm must be in a “Stopped” state for this command to take effect.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/change_service_for_system_vm.rb, line 9
def change_service_for_system_vm(id, serviceofferingid, options={})
  options.merge!(
    'command' => 'changeServiceForSystemVm', 
    'id' => id, 
    'serviceofferingid' => serviceofferingid  
  )
  request(options)
end
change_service_for_virtual_machine(serviceofferingid, id, options={}) click to toggle source

Changes the service offering for a virtual machine. The virtual machine must be in a “Stopped” state for this command to take effect.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/change_service_for_virtual_machine.rb, line 9
def change_service_for_virtual_machine(serviceofferingid, id, options={})
  options.merge!(
    'command' => 'changeServiceForVirtualMachine', 
    'serviceofferingid' => serviceofferingid, 
    'id' => id  
  )
  request(options)
end
clean_vmreservations(options={}) click to toggle source

Cleanups VM reservations in the database.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/clean_vmreservations.rb, line 9
def clean_vmreservations(options={})
  options.merge!(
    'command' => 'cleanVMReservations'  
  )
  request(options)
end
configure_f5_load_balancer(lbdeviceid, options={}) click to toggle source

configures a F5 load balancer device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/configure_f5_load_balancer.rb, line 9
def configure_f5_load_balancer(lbdeviceid, options={})
  options.merge!(
    'command' => 'configureF5LoadBalancer', 
    'lbdeviceid' => lbdeviceid  
  )
  request(options)
end
configure_internal_load_balancer_element(id, enabled, options={}) click to toggle source

Configures an Internal Load Balancer element.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/configure_internal_load_balancer_element.rb, line 9
def configure_internal_load_balancer_element(id, enabled, options={})
  options.merge!(
    'command' => 'configureInternalLoadBalancerElement', 
    'id' => id, 
    'enabled' => enabled  
  )
  request(options)
end
configure_netscaler_load_balancer(lbdeviceid, options={}) click to toggle source

configures a netscaler load balancer device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/configure_netscaler_load_balancer.rb, line 9
def configure_netscaler_load_balancer(lbdeviceid, options={})
  options.merge!(
    'command' => 'configureNetscalerLoadBalancer', 
    'lbdeviceid' => lbdeviceid  
  )
  request(options)
end
configure_srx_firewall(fwdeviceid, options={}) click to toggle source

Configures a SRX firewall device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/configure_srx_firewall.rb, line 9
def configure_srx_firewall(fwdeviceid, options={})
  options.merge!(
    'command' => 'configureSrxFirewall', 
    'fwdeviceid' => fwdeviceid  
  )
  request(options)
end
configure_virtual_router_element(id, enabled, options={}) click to toggle source

Configures a virtual router element.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/configure_virtual_router_element.rb, line 9
def configure_virtual_router_element(id, enabled, options={})
  options.merge!(
    'command' => 'configureVirtualRouterElement', 
    'id' => id, 
    'enabled' => enabled  
  )
  request(options)
end
copy_iso(id, sourcezoneid, destzoneid, options={}) click to toggle source

Copies an iso from one zone to another.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/copy_iso.rb, line 9
def copy_iso(id, sourcezoneid, destzoneid, options={})
  options.merge!(
    'command' => 'copyIso', 
    'id' => id, 
    'sourcezoneid' => sourcezoneid, 
    'destzoneid' => destzoneid  
  )
  request(options)
end
copy_template(destzoneid, id, sourcezoneid, options={}) click to toggle source

Copies a template from one zone to another.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/copy_template.rb, line 9
def copy_template(destzoneid, id, sourcezoneid, options={})
  options.merge!(
    'command' => 'copyTemplate', 
    'destzoneid' => destzoneid, 
    'id' => id, 
    'sourcezoneid' => sourcezoneid  
  )
  request(options)
end
create_account(password, lastname, accounttype, username, email, firstname, options={}) click to toggle source

Creates an account

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_account.rb, line 9
def create_account(password, lastname, accounttype, username, email, firstname, options={})
  options.merge!(
    'command' => 'createAccount', 
    'password' => password, 
    'lastname' => lastname, 
    'accounttype' => accounttype, 
    'username' => username, 
    'email' => email, 
    'firstname' => firstname  
  )
  request(options)
end
create_affinity_group(name, type, options={}) click to toggle source

Creates an affinity/anti-affinity group

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_affinity_group.rb, line 9
def create_affinity_group(name, type, options={})
  options.merge!(
    'command' => 'createAffinityGroup', 
    'name' => name, 
    'type' => type  
  )
  request(options)
end
create_auto_scale_policy(action, duration, conditionids, options={}) click to toggle source

Creates an autoscale policy for a provision or deprovision action, the action is taken when the all the conditions evaluates to true for the specified duration. The policy is in effect once it is attached to a autscale vm group.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_auto_scale_policy.rb, line 9
def create_auto_scale_policy(action, duration, conditionids, options={})
  options.merge!(
    'command' => 'createAutoScalePolicy', 
    'action' => action, 
    'duration' => duration, 
    'conditionids' => conditionids  
  )
  request(options)
end
create_auto_scale_vm_group(lbruleid, vmprofileid, scaleuppolicyids, minmembers, scaledownpolicyids, maxmembers, options={}) click to toggle source

Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_auto_scale_vm_group.rb, line 9
def create_auto_scale_vm_group(lbruleid, vmprofileid, scaleuppolicyids, minmembers, scaledownpolicyids, maxmembers, options={})
  options.merge!(
    'command' => 'createAutoScaleVmGroup', 
    'lbruleid' => lbruleid, 
    'vmprofileid' => vmprofileid, 
    'scaleuppolicyids' => scaleuppolicyids, 
    'minmembers' => minmembers, 
    'scaledownpolicyids' => scaledownpolicyids, 
    'maxmembers' => maxmembers  
  )
  request(options)
end
create_auto_scale_vm_profile(serviceofferingid, templateid, zoneid, options={}) click to toggle source

Creates a profile that contains information about the virtual machine which will be provisioned automatically by autoscale feature.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_auto_scale_vm_profile.rb, line 9
def create_auto_scale_vm_profile(serviceofferingid, templateid, zoneid, options={})
  options.merge!(
    'command' => 'createAutoScaleVmProfile', 
    'serviceofferingid' => serviceofferingid, 
    'templateid' => templateid, 
    'zoneid' => zoneid  
  )
  request(options)
end
create_condition(relationaloperator, threshold, counterid, options={}) click to toggle source

Creates a condition

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_condition.rb, line 9
def create_condition(relationaloperator, threshold, counterid, options={})
  options.merge!(
    'command' => 'createCondition', 
    'relationaloperator' => relationaloperator, 
    'threshold' => threshold, 
    'counterid' => counterid  
  )
  request(options)
end
create_counter(source, value, name, options={}) click to toggle source

Adds metric counter

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_counter.rb, line 9
def create_counter(source, value, name, options={})
  options.merge!(
    'command' => 'createCounter', 
    'source' => source, 
    'value' => value, 
    'name' => name  
  )
  request(options)
end
create_disk_offering(name, displaytext, options={}) click to toggle source

Creates a disk offering.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_disk_offering.rb, line 9
def create_disk_offering(name, displaytext, options={})
  options.merge!(
    'command' => 'createDiskOffering', 
    'name' => name, 
    'displaytext' => displaytext  
  )
  request(options)
end
create_domain(name, options={}) click to toggle source

Creates a domain

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_domain.rb, line 9
def create_domain(name, options={})
  options.merge!(
    'command' => 'createDomain', 
    'name' => name  
  )
  request(options)
end
create_egress_firewall_rule(protocol, networkid, options={}) click to toggle source

Creates a egress firewall rule for a given network

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_egress_firewall_rule.rb, line 9
def create_egress_firewall_rule(protocol, networkid, options={})
  options.merge!(
    'command' => 'createEgressFirewallRule', 
    'protocol' => protocol, 
    'networkid' => networkid  
  )
  request(options)
end
create_firewall_rule(ipaddressid, protocol, options={}) click to toggle source

Creates a firewall rule for a given ip address

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_firewall_rule.rb, line 9
def create_firewall_rule(ipaddressid, protocol, options={})
  options.merge!(
    'command' => 'createFirewallRule', 
    'ipaddressid' => ipaddressid, 
    'protocol' => protocol  
  )
  request(options)
end
create_global_load_balancer_rule(gslbservicetype, gslbdomainname, regionid, name, options={}) click to toggle source

Creates a global load balancer rule

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_global_load_balancer_rule.rb, line 9
def create_global_load_balancer_rule(gslbservicetype, gslbdomainname, regionid, name, options={})
  options.merge!(
    'command' => 'createGlobalLoadBalancerRule', 
    'gslbservicetype' => gslbservicetype, 
    'gslbdomainname' => gslbdomainname, 
    'regionid' => regionid, 
    'name' => name  
  )
  request(options)
end
create_instance_group(name, options={}) click to toggle source

Creates a vm group

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_instance_group.rb, line 9
def create_instance_group(name, options={})
  options.merge!(
    'command' => 'createInstanceGroup', 
    'name' => name  
  )
  request(options)
end
create_internal_load_balancer_element(nspid, options={}) click to toggle source

Create an Internal Load Balancer element.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_internal_load_balancer_element.rb, line 9
def create_internal_load_balancer_element(nspid, options={})
  options.merge!(
    'command' => 'createInternalLoadBalancerElement', 
    'nspid' => nspid  
  )
  request(options)
end
create_ip_forwarding_rule(startport, protocol, ipaddressid, options={}) click to toggle source

Creates an ip forwarding rule

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_ip_forwarding_rule.rb, line 9
def create_ip_forwarding_rule(startport, protocol, ipaddressid, options={})
  options.merge!(
    'command' => 'createIpForwardingRule', 
    'startport' => startport, 
    'protocol' => protocol, 
    'ipaddressid' => ipaddressid  
  )
  request(options)
end
create_lb_health_check_policy(lbruleid, options={}) click to toggle source

Creates a Load Balancer healthcheck policy

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_lb_health_check_policy.rb, line 9
def create_lb_health_check_policy(lbruleid, options={})
  options.merge!(
    'command' => 'createLBHealthCheckPolicy', 
    'lbruleid' => lbruleid  
  )
  request(options)
end
create_lb_stickiness_policy(lbruleid, methodname, name, options={}) click to toggle source

Creates a Load Balancer stickiness policy

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_lb_stickiness_policy.rb, line 9
def create_lb_stickiness_policy(lbruleid, methodname, name, options={})
  options.merge!(
    'command' => 'createLBStickinessPolicy', 
    'lbruleid' => lbruleid, 
    'methodname' => methodname, 
    'name' => name  
  )
  request(options)
end
create_load_balancer(scheme, networkid, instanceport, name, algorithm, sourceipaddressnetworkid, sourceport, options={}) click to toggle source

Creates a Load Balancer

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_load_balancer.rb, line 9
def create_load_balancer(scheme, networkid, instanceport, name, algorithm, sourceipaddressnetworkid, sourceport, options={})
  options.merge!(
    'command' => 'createLoadBalancer', 
    'scheme' => scheme, 
    'networkid' => networkid, 
    'instanceport' => instanceport, 
    'name' => name, 
    'algorithm' => algorithm, 
    'sourceipaddressnetworkid' => sourceipaddressnetworkid, 
    'sourceport' => sourceport  
  )
  request(options)
end
create_load_balancer_rule(publicport, algorithm, privateport, name, options={}) click to toggle source

Creates a load balancer rule

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_load_balancer_rule.rb, line 9
def create_load_balancer_rule(publicport, algorithm, privateport, name, options={})
  options.merge!(
    'command' => 'createLoadBalancerRule', 
    'publicport' => publicport, 
    'algorithm' => algorithm, 
    'privateport' => privateport, 
    'name' => name  
  )
  request(options)
end
create_lun_on_filer(size, name, options={}) click to toggle source

Create a LUN from a pool

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_lun_on_filer.rb, line 9
def create_lun_on_filer(size, name, options={})
  options.merge!(
    'command' => 'createLunOnFiler', 
    'size' => size, 
    'name' => name  
  )
  request(options)
end
create_network(displaytext, name, networkofferingid, zoneid, options={}) click to toggle source

Creates a network

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_network.rb, line 9
def create_network(displaytext, name, networkofferingid, zoneid, options={})
  options.merge!(
    'command' => 'createNetwork', 
    'displaytext' => displaytext, 
    'name' => name, 
    'networkofferingid' => networkofferingid, 
    'zoneid' => zoneid  
  )
  request(options)
end
create_network_acl(protocol, options={}) click to toggle source

Creates a ACL rule in the given network (the network has to belong to VPC)

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_network_acl.rb, line 9
def create_network_acl(protocol, options={})
  options.merge!(
    'command' => 'createNetworkACL', 
    'protocol' => protocol  
  )
  request(options)
end
create_network_acl_list(vpcid, name, options={}) click to toggle source

Creates a Network ACL for the given VPC

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_network_acl_list.rb, line 9
def create_network_acl_list(vpcid, name, options={})
  options.merge!(
    'command' => 'createNetworkACLList', 
    'vpcid' => vpcid, 
    'name' => name  
  )
  request(options)
end
create_network_offering(guestiptype, traffictype, name, supportedservices, displaytext, options={}) click to toggle source

Creates a network offering.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_network_offering.rb, line 9
def create_network_offering(guestiptype, traffictype, name, supportedservices, displaytext, options={})
  options.merge!(
    'command' => 'createNetworkOffering', 
    'guestiptype' => guestiptype, 
    'traffictype' => traffictype, 
    'name' => name, 
    'supportedservices' => supportedservices, 
    'displaytext' => displaytext  
  )
  request(options)
end
create_physical_network(zoneid, name, options={}) click to toggle source

Creates a physical network

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_physical_network.rb, line 9
def create_physical_network(zoneid, name, options={})
  options.merge!(
    'command' => 'createPhysicalNetwork', 
    'zoneid' => zoneid, 
    'name' => name  
  )
  request(options)
end
create_pod(netmask, name, startip, gateway, zoneid, options={}) click to toggle source

Creates a new Pod.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_pod.rb, line 9
def create_pod(netmask, name, startip, gateway, zoneid, options={})
  options.merge!(
    'command' => 'createPod', 
    'netmask' => netmask, 
    'name' => name, 
    'startip' => startip, 
    'gateway' => gateway, 
    'zoneid' => zoneid  
  )
  request(options)
end
create_pool(algorithm, name, options={}) click to toggle source

Create a pool

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_pool.rb, line 9
def create_pool(algorithm, name, options={})
  options.merge!(
    'command' => 'createPool', 
    'algorithm' => algorithm, 
    'name' => name  
  )
  request(options)
end
create_port_forwarding_rule(publicport, virtualmachineid, ipaddressid, privateport, protocol, options={}) click to toggle source

Creates a port forwarding rule

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_port_forwarding_rule.rb, line 9
def create_port_forwarding_rule(publicport, virtualmachineid, ipaddressid, privateport, protocol, options={})
  options.merge!(
    'command' => 'createPortForwardingRule', 
    'publicport' => publicport, 
    'virtualmachineid' => virtualmachineid, 
    'ipaddressid' => ipaddressid, 
    'privateport' => privateport, 
    'protocol' => protocol  
  )
  request(options)
end
create_portable_ip_range(endip, startip, gateway, netmask, regionid, options={}) click to toggle source

adds a range of portable public IP's to a region

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_portable_ip_range.rb, line 9
def create_portable_ip_range(endip, startip, gateway, netmask, regionid, options={})
  options.merge!(
    'command' => 'createPortableIpRange', 
    'endip' => endip, 
    'startip' => startip, 
    'gateway' => gateway, 
    'netmask' => netmask, 
    'regionid' => regionid  
  )
  request(options)
end
create_private_gateway(vpcid, gateway, ipaddress, vlan, netmask, options={}) click to toggle source

Creates a private gateway

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_private_gateway.rb, line 9
def create_private_gateway(vpcid, gateway, ipaddress, vlan, netmask, options={})
  options.merge!(
    'command' => 'createPrivateGateway', 
    'vpcid' => vpcid, 
    'gateway' => gateway, 
    'ipaddress' => ipaddress, 
    'vlan' => vlan, 
    'netmask' => netmask  
  )
  request(options)
end
create_project(displaytext, name, options={}) click to toggle source

Creates a project

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_project.rb, line 9
def create_project(displaytext, name, options={})
  options.merge!(
    'command' => 'createProject', 
    'displaytext' => displaytext, 
    'name' => name  
  )
  request(options)
end
create_remote_access_vpn(publicipid, options={}) click to toggle source

Creates a l2tp/ipsec remote access vpn

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_remote_access_vpn.rb, line 9
def create_remote_access_vpn(publicipid, options={})
  options.merge!(
    'command' => 'createRemoteAccessVpn', 
    'publicipid' => publicipid  
  )
  request(options)
end
create_secondary_staging_store(url, options={}) click to toggle source

create secondary staging store.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_secondary_staging_store.rb, line 9
def create_secondary_staging_store(url, options={})
  options.merge!(
    'command' => 'createSecondaryStagingStore', 
    'url' => url  
  )
  request(options)
end
create_security_group(name, options={}) click to toggle source

Creates a security group

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_security_group.rb, line 9
def create_security_group(name, options={})
  options.merge!(
    'command' => 'createSecurityGroup', 
    'name' => name  
  )
  request(options)
end
create_service_offering(displaytext, cpunumber, name, memory, cpuspeed, options={}) click to toggle source

Creates a service offering.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_service_offering.rb, line 9
def create_service_offering(displaytext, cpunumber, name, memory, cpuspeed, options={})
  options.merge!(
    'command' => 'createServiceOffering', 
    'displaytext' => displaytext, 
    'cpunumber' => cpunumber, 
    'name' => name, 
    'memory' => memory, 
    'cpuspeed' => cpuspeed  
  )
  request(options)
end
create_snapshot(volumeid, options={}) click to toggle source

Creates an instant snapshot of a volume.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_snapshot.rb, line 9
def create_snapshot(volumeid, options={})
  options.merge!(
    'command' => 'createSnapshot', 
    'volumeid' => volumeid  
  )
  request(options)
end
create_snapshot_policy(intervaltype, volumeid, schedule, maxsnaps, timezone, options={}) click to toggle source

Creates a snapshot policy for the account.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_snapshot_policy.rb, line 9
def create_snapshot_policy(intervaltype, volumeid, schedule, maxsnaps, timezone, options={})
  options.merge!(
    'command' => 'createSnapshotPolicy', 
    'intervaltype' => intervaltype, 
    'volumeid' => volumeid, 
    'schedule' => schedule, 
    'maxsnaps' => maxsnaps, 
    'timezone' => timezone  
  )
  request(options)
end
create_ssh_key_pair(name, options={}) click to toggle source

Create a new keypair and returns the private key

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_ssh_key_pair.rb, line 9
def create_ssh_key_pair(name, options={})
  options.merge!(
    'command' => 'createSSHKeyPair', 
    'name' => name  
  )
  request(options)
end
create_static_route(cidr, gatewayid, options={}) click to toggle source

Creates a static route

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_static_route.rb, line 9
def create_static_route(cidr, gatewayid, options={})
  options.merge!(
    'command' => 'createStaticRoute', 
    'cidr' => cidr, 
    'gatewayid' => gatewayid  
  )
  request(options)
end
create_storage_network_ip_range(netmask, gateway, startip, podid, options={}) click to toggle source

Creates a Storage network IP range.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_storage_network_ip_range.rb, line 9
def create_storage_network_ip_range(netmask, gateway, startip, podid, options={})
  options.merge!(
    'command' => 'createStorageNetworkIpRange', 
    'netmask' => netmask, 
    'gateway' => gateway, 
    'startip' => startip, 
    'podid' => podid  
  )
  request(options)
end
create_storage_pool(url, zoneid, name, options={}) click to toggle source

Creates a storage pool.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_storage_pool.rb, line 9
def create_storage_pool(url, zoneid, name, options={})
  options.merge!(
    'command' => 'createStoragePool', 
    'url' => url, 
    'zoneid' => zoneid, 
    'name' => name  
  )
  request(options)
end
create_tags(resourceids, resourcetype, tags, options={}) click to toggle source

Creates resource tag(s)

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_tags.rb, line 9
def create_tags(resourceids, resourcetype, tags, options={})
  options.merge!(
    'command' => 'createTags', 
    'resourceids' => resourceids, 
    'resourcetype' => resourcetype, 
    'tags' => tags  
  )
  request(options)
end
create_template(ostypeid, displaytext, name, options={}) click to toggle source

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

# File lib/fog/cloudstack/requests/compute/create_template.rb, line 9
def create_template(ostypeid, displaytext, name, options={})
  options.merge!(
    'command' => 'createTemplate', 
    'ostypeid' => ostypeid, 
    'displaytext' => displaytext, 
    'name' => name  
  )
  request(options)
end
create_user(username, email, firstname, lastname, password, account, options={}) click to toggle source

Creates a user for an account that already exists

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_user.rb, line 9
def create_user(username, email, firstname, lastname, password, account, options={})
  options.merge!(
    'command' => 'createUser', 
    'username' => username, 
    'email' => email, 
    'firstname' => firstname, 
    'lastname' => lastname, 
    'password' => password, 
    'account' => account  
  )
  request(options)
end
create_virtual_router_element(nspid, options={}) click to toggle source

Create a virtual router element.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_virtual_router_element.rb, line 9
def create_virtual_router_element(nspid, options={})
  options.merge!(
    'command' => 'createVirtualRouterElement', 
    'nspid' => nspid  
  )
  request(options)
end
create_vlan_ip_range(options={}) click to toggle source

Creates a VLAN IP range.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_vlan_ip_range.rb, line 9
def create_vlan_ip_range(options={})
  options.merge!(
    'command' => 'createVlanIpRange'  
  )
  request(options)
end
create_vm_snapshot(virtualmachineid, options={}) click to toggle source

Creates snapshot for a vm.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_vm_snapshot.rb, line 9
def create_vm_snapshot(virtualmachineid, options={})
  options.merge!(
    'command' => 'createVMSnapshot', 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end
create_volume(name, options={}) click to toggle source

Creates a disk volume from a disk offering. This disk volume must still be attached to a virtual machine to make use of it.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_volume.rb, line 9
def create_volume(name, options={})
  options.merge!(
    'command' => 'createVolume', 
    'name' => name  
  )
  request(options)
end
create_volume_on_filer(password, ipaddress, size, volumename, username, poolname, aggregatename, options={}) click to toggle source

Create a volume

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_volume_on_filer.rb, line 9
def create_volume_on_filer(password, ipaddress, size, volumename, username, poolname, aggregatename, options={})
  options.merge!(
    'command' => 'createVolumeOnFiler', 
    'password' => password, 
    'ipaddress' => ipaddress, 
    'size' => size, 
    'volumename' => volumename, 
    'username' => username, 
    'poolname' => poolname, 
    'aggregatename' => aggregatename  
  )
  request(options)
end
create_vpc(cidr, vpcofferingid, name, displaytext, zoneid, options={}) click to toggle source

Creates a VPC

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_vpc.rb, line 9
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
create_vpcoffering(supportedservices, name, displaytext, options={}) click to toggle source

Creates VPC offering

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_vpcoffering.rb, line 9
def create_vpcoffering(supportedservices, name, displaytext, options={})
  options.merge!(
    'command' => 'createVPCOffering', 
    'supportedservices' => supportedservices, 
    'name' => name, 
    'displaytext' => displaytext  
  )
  request(options)
end
create_vpn_connection(s2scustomergatewayid, s2svpngatewayid, options={}) click to toggle source

Create site to site vpn connection

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_vpn_connection.rb, line 9
def create_vpn_connection(s2scustomergatewayid, s2svpngatewayid, options={})
  options.merge!(
    'command' => 'createVpnConnection', 
    's2scustomergatewayid' => s2scustomergatewayid, 
    's2svpngatewayid' => s2svpngatewayid  
  )
  request(options)
end
create_vpn_customer_gateway(gateway, cidrlist, ipsecpsk, ikepolicy, esppolicy, options={}) click to toggle source

Creates site to site vpn customer gateway

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_vpn_customer_gateway.rb, line 9
def create_vpn_customer_gateway(gateway, cidrlist, ipsecpsk, ikepolicy, esppolicy, options={})
  options.merge!(
    'command' => 'createVpnCustomerGateway', 
    'gateway' => gateway, 
    'cidrlist' => cidrlist, 
    'ipsecpsk' => ipsecpsk, 
    'ikepolicy' => ikepolicy, 
    'esppolicy' => esppolicy  
  )
  request(options)
end
create_vpn_gateway(vpcid, options={}) click to toggle source

Creates site to site vpn local gateway

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_vpn_gateway.rb, line 9
def create_vpn_gateway(vpcid, options={})
  options.merge!(
    'command' => 'createVpnGateway', 
    'vpcid' => vpcid  
  )
  request(options)
end
create_zone(internaldns1, name, networktype, dns1, options={}) click to toggle source

Creates a Zone.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/create_zone.rb, line 9
def create_zone(internaldns1, name, networktype, dns1, options={})
  options.merge!(
    'command' => 'createZone', 
    'internaldns1' => internaldns1, 
    'name' => name, 
    'networktype' => networktype, 
    'dns1' => dns1  
  )
  request(options)
end
dedicate_cluster(clusterid, domainid, options={}) click to toggle source

Dedicate an existing cluster

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/dedicate_cluster.rb, line 9
def dedicate_cluster(clusterid, domainid, options={})
  options.merge!(
    'command' => 'dedicateCluster', 
    'clusterid' => clusterid, 
    'domainid' => domainid  
  )
  request(options)
end
dedicate_guest_vlan_range(account, domainid, vlanrange, physicalnetworkid, options={}) click to toggle source

Dedicates a guest vlan range to an account

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/dedicate_guest_vlan_range.rb, line 9
def dedicate_guest_vlan_range(account, domainid, vlanrange, physicalnetworkid, options={})
  options.merge!(
    'command' => 'dedicateGuestVlanRange', 
    'account' => account, 
    'domainid' => domainid, 
    'vlanrange' => vlanrange, 
    'physicalnetworkid' => physicalnetworkid  
  )
  request(options)
end
dedicate_host(hostid, domainid, options={}) click to toggle source

Dedicates a host.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/dedicate_host.rb, line 9
def dedicate_host(hostid, domainid, options={})
  options.merge!(
    'command' => 'dedicateHost', 
    'hostid' => hostid, 
    'domainid' => domainid  
  )
  request(options)
end
dedicate_pod(domainid, podid, options={}) click to toggle source

Dedicates a Pod.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/dedicate_pod.rb, line 9
def dedicate_pod(domainid, podid, options={})
  options.merge!(
    'command' => 'dedicatePod', 
    'domainid' => domainid, 
    'podid' => podid  
  )
  request(options)
end
dedicate_public_ip_range(domainid, id, account, options={}) click to toggle source

Dedicates a Public IP range to an account

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/dedicate_public_ip_range.rb, line 9
def dedicate_public_ip_range(domainid, id, account, options={})
  options.merge!(
    'command' => 'dedicatePublicIpRange', 
    'domainid' => domainid, 
    'id' => id, 
    'account' => account  
  )
  request(options)
end
dedicate_zone(domainid, zoneid, options={}) click to toggle source

Dedicates a zones.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/dedicate_zone.rb, line 9
def dedicate_zone(domainid, zoneid, options={})
  options.merge!(
    'command' => 'dedicateZone', 
    'domainid' => domainid, 
    'zoneid' => zoneid  
  )
  request(options)
end
delete_account(id, options={}) click to toggle source

Deletes a account, and all users associated with this account

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_account.rb, line 9
def delete_account(id, options={})
  options.merge!(
    'command' => 'deleteAccount', 
    'id' => id  
  )
  request(options)
end
delete_account_from_project(account, projectid, options={}) click to toggle source

Deletes account from the project

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_account_from_project.rb, line 9
def delete_account_from_project(account, projectid, options={})
  options.merge!(
    'command' => 'deleteAccountFromProject', 
    'account' => account, 
    'projectid' => projectid  
  )
  request(options)
end
delete_affinity_group(options={}) click to toggle source

Deletes affinity group

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_affinity_group.rb, line 9
def delete_affinity_group(options={})
  options.merge!(
    'command' => 'deleteAffinityGroup'  
  )
  request(options)
end
delete_alerts(options={}) click to toggle source

Delete one or more alerts.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_alerts.rb, line 9
def delete_alerts(options={})
  options.merge!(
    'command' => 'deleteAlerts'  
  )
  request(options)
end
delete_auto_scale_policy(id, options={}) click to toggle source

Deletes a autoscale policy.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_auto_scale_policy.rb, line 9
def delete_auto_scale_policy(id, options={})
  options.merge!(
    'command' => 'deleteAutoScalePolicy', 
    'id' => id  
  )
  request(options)
end
delete_auto_scale_vm_group(id, options={}) click to toggle source

Deletes a autoscale vm group.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_group.rb, line 9
def delete_auto_scale_vm_group(id, options={})
  options.merge!(
    'command' => 'deleteAutoScaleVmGroup', 
    'id' => id  
  )
  request(options)
end
delete_auto_scale_vm_profile(id, options={}) click to toggle source

Deletes a autoscale vm profile.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_profile.rb, line 9
def delete_auto_scale_vm_profile(id, options={})
  options.merge!(
    'command' => 'deleteAutoScaleVmProfile', 
    'id' => id  
  )
  request(options)
end
delete_cisco_asa1000v_resource(resourceid, options={}) click to toggle source

Deletes a Cisco ASA 1000v appliance

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_cisco_asa1000v_resource.rb, line 9
def delete_cisco_asa1000v_resource(resourceid, options={})
  options.merge!(
    'command' => 'deleteCiscoAsa1000vResource', 
    'resourceid' => resourceid  
  )
  request(options)
end
delete_cisco_nexus_vsm(id, options={}) click to toggle source
delete a Cisco Nexus VSM device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_cisco_nexus_vsm.rb, line 9
def delete_cisco_nexus_vsm(id, options={})
  options.merge!(
    'command' => 'deleteCiscoNexusVSM', 
    'id' => id  
  )
  request(options)
end
delete_cisco_vnmc_resource(resourceid, options={}) click to toggle source

Deletes a Cisco Vnmc controller

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_cisco_vnmc_resource.rb, line 9
def delete_cisco_vnmc_resource(resourceid, options={})
  options.merge!(
    'command' => 'deleteCiscoVnmcResource', 
    'resourceid' => resourceid  
  )
  request(options)
end
delete_cluster(id, options={}) click to toggle source

Deletes a cluster.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_cluster.rb, line 9
def delete_cluster(id, options={})
  options.merge!(
    'command' => 'deleteCluster', 
    'id' => id  
  )
  request(options)
end
delete_condition(id, options={}) click to toggle source

Removes a condition

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_condition.rb, line 9
def delete_condition(id, options={})
  options.merge!(
    'command' => 'deleteCondition', 
    'id' => id  
  )
  request(options)
end
delete_counter(id, options={}) click to toggle source

Deletes a counter

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_counter.rb, line 9
def delete_counter(id, options={})
  options.merge!(
    'command' => 'deleteCounter', 
    'id' => id  
  )
  request(options)
end
delete_disk_offering(id, options={}) click to toggle source

Updates a disk offering.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_disk_offering.rb, line 9
def delete_disk_offering(id, options={})
  options.merge!(
    'command' => 'deleteDiskOffering', 
    'id' => id  
  )
  request(options)
end
delete_domain(id, options={}) click to toggle source

Deletes a specified domain

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_domain.rb, line 9
def delete_domain(id, options={})
  options.merge!(
    'command' => 'deleteDomain', 
    'id' => id  
  )
  request(options)
end
delete_egress_firewall_rule(id, options={}) click to toggle source

Deletes an ggress firewall rule

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_egress_firewall_rule.rb, line 9
def delete_egress_firewall_rule(id, options={})
  options.merge!(
    'command' => 'deleteEgressFirewallRule', 
    'id' => id  
  )
  request(options)
end
delete_events(options={}) click to toggle source

Delete one or more events.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_events.rb, line 9
def delete_events(options={})
  options.merge!(
    'command' => 'deleteEvents'  
  )
  request(options)
end
delete_external_firewall(id, options={}) click to toggle source

Deletes an external firewall appliance.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_external_firewall.rb, line 9
def delete_external_firewall(id, options={})
  options.merge!(
    'command' => 'deleteExternalFirewall', 
    'id' => id  
  )
  request(options)
end
delete_external_load_balancer(id, options={}) click to toggle source

Deletes a F5 external load balancer appliance added in a zone.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_external_load_balancer.rb, line 9
def delete_external_load_balancer(id, options={})
  options.merge!(
    'command' => 'deleteExternalLoadBalancer', 
    'id' => id  
  )
  request(options)
end
delete_f5_load_balancer(lbdeviceid, options={}) click to toggle source
delete a F5 load balancer device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_f5_load_balancer.rb, line 9
def delete_f5_load_balancer(lbdeviceid, options={})
  options.merge!(
    'command' => 'deleteF5LoadBalancer', 
    'lbdeviceid' => lbdeviceid  
  )
  request(options)
end
delete_firewall_rule(id, options={}) click to toggle source

Deletes a firewall rule

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_firewall_rule.rb, line 9
def delete_firewall_rule(id, options={})
  options.merge!(
    'command' => 'deleteFirewallRule', 
    'id' => id  
  )
  request(options)
end
delete_global_load_balancer_rule(id, options={}) click to toggle source

Deletes a global load balancer rule.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_global_load_balancer_rule.rb, line 9
def delete_global_load_balancer_rule(id, options={})
  options.merge!(
    'command' => 'deleteGlobalLoadBalancerRule', 
    'id' => id  
  )
  request(options)
end
delete_host(id, options={}) click to toggle source

Deletes a host.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_host.rb, line 9
def delete_host(id, options={})
  options.merge!(
    'command' => 'deleteHost', 
    'id' => id  
  )
  request(options)
end
delete_image_store(id, options={}) click to toggle source

Deletes an image store .

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_image_store.rb, line 9
def delete_image_store(id, options={})
  options.merge!(
    'command' => 'deleteImageStore', 
    'id' => id  
  )
  request(options)
end
delete_instance_group(id, options={}) click to toggle source

Deletes a vm group

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_instance_group.rb, line 9
def delete_instance_group(id, options={})
  options.merge!(
    'command' => 'deleteInstanceGroup', 
    'id' => id  
  )
  request(options)
end
delete_ip_forwarding_rule(id, options={}) click to toggle source

Deletes an ip forwarding rule

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_ip_forwarding_rule.rb, line 9
def delete_ip_forwarding_rule(id, options={})
  options.merge!(
    'command' => 'deleteIpForwardingRule', 
    'id' => id  
  )
  request(options)
end
delete_iso(id, options={}) click to toggle source

Deletes an ISO file.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_iso.rb, line 9
def delete_iso(id, options={})
  options.merge!(
    'command' => 'deleteIso', 
    'id' => id  
  )
  request(options)
end
delete_lb_health_check_policy(id, options={}) click to toggle source

Deletes a load balancer HealthCheck policy.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_lb_health_check_policy.rb, line 9
def delete_lb_health_check_policy(id, options={})
  options.merge!(
    'command' => 'deleteLBHealthCheckPolicy', 
    'id' => id  
  )
  request(options)
end
delete_lb_stickiness_policy(id, options={}) click to toggle source

Deletes a LB stickiness policy.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_lb_stickiness_policy.rb, line 9
def delete_lb_stickiness_policy(id, options={})
  options.merge!(
    'command' => 'deleteLBStickinessPolicy', 
    'id' => id  
  )
  request(options)
end
delete_load_balancer(id, options={}) click to toggle source

Deletes a load balancer

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_load_balancer.rb, line 9
def delete_load_balancer(id, options={})
  options.merge!(
    'command' => 'deleteLoadBalancer', 
    'id' => id  
  )
  request(options)
end
delete_load_balancer_rule(id, options={}) click to toggle source

Deletes a load balancer rule.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_load_balancer_rule.rb, line 9
def delete_load_balancer_rule(id, options={})
  options.merge!(
    'command' => 'deleteLoadBalancerRule', 
    'id' => id  
  )
  request(options)
end
delete_netscaler_load_balancer(lbdeviceid, options={}) click to toggle source
delete a netscaler load balancer device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_netscaler_load_balancer.rb, line 9
def delete_netscaler_load_balancer(lbdeviceid, options={})
  options.merge!(
    'command' => 'deleteNetscalerLoadBalancer', 
    'lbdeviceid' => lbdeviceid  
  )
  request(options)
end
delete_network(id, options={}) click to toggle source

Deletes a network

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_network.rb, line 9
def delete_network(id, options={})
  options.merge!(
    'command' => 'deleteNetwork', 
    'id' => id  
  )
  request(options)
end
delete_network_acl(id, options={}) click to toggle source

Deletes a Network ACL

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_network_acl.rb, line 9
def delete_network_acl(id, options={})
  options.merge!(
    'command' => 'deleteNetworkACL', 
    'id' => id  
  )
  request(options)
end
delete_network_acl_list(id, options={}) click to toggle source

Deletes a Network ACL

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_network_acl_list.rb, line 9
def delete_network_acl_list(id, options={})
  options.merge!(
    'command' => 'deleteNetworkACLList', 
    'id' => id  
  )
  request(options)
end
delete_network_device(id, options={}) click to toggle source

Deletes network device.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_network_device.rb, line 9
def delete_network_device(id, options={})
  options.merge!(
    'command' => 'deleteNetworkDevice', 
    'id' => id  
  )
  request(options)
end
delete_network_offering(id, options={}) click to toggle source

Deletes a network offering.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_network_offering.rb, line 9
def delete_network_offering(id, options={})
  options.merge!(
    'command' => 'deleteNetworkOffering', 
    'id' => id  
  )
  request(options)
end
delete_network_service_provider(id, options={}) click to toggle source

Deletes a Network Service Provider.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_network_service_provider.rb, line 9
def delete_network_service_provider(id, options={})
  options.merge!(
    'command' => 'deleteNetworkServiceProvider', 
    'id' => id  
  )
  request(options)
end
delete_nicira_nvp_device(nvpdeviceid, options={}) click to toggle source
delete a nicira nvp device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_nicira_nvp_device.rb, line 9
def delete_nicira_nvp_device(nvpdeviceid, options={})
  options.merge!(
    'command' => 'deleteNiciraNvpDevice', 
    'nvpdeviceid' => nvpdeviceid  
  )
  request(options)
end
delete_physical_network(id, options={}) click to toggle source

Deletes a Physical Network.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_physical_network.rb, line 9
def delete_physical_network(id, options={})
  options.merge!(
    'command' => 'deletePhysicalNetwork', 
    'id' => id  
  )
  request(options)
end
delete_pod(id, options={}) click to toggle source

Deletes a Pod.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_pod.rb, line 9
def delete_pod(id, options={})
  options.merge!(
    'command' => 'deletePod', 
    'id' => id  
  )
  request(options)
end
delete_pool(poolname, options={}) click to toggle source

Delete a pool

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_pool.rb, line 9
def delete_pool(poolname, options={})
  options.merge!(
    'command' => 'deletePool', 
    'poolname' => poolname  
  )
  request(options)
end
delete_port_forwarding_rule(id, options={}) click to toggle source

Deletes a port forwarding rule

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_port_forwarding_rule.rb, line 9
def delete_port_forwarding_rule(id, options={})
  options.merge!(
    'command' => 'deletePortForwardingRule', 
    'id' => id  
  )
  request(options)
end
delete_portable_ip_range(id, options={}) click to toggle source

deletes a range of portable public IP's associated with a region

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_portable_ip_range.rb, line 9
def delete_portable_ip_range(id, options={})
  options.merge!(
    'command' => 'deletePortableIpRange', 
    'id' => id  
  )
  request(options)
end
delete_private_gateway(id, options={}) click to toggle source

Deletes a Private gateway

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_private_gateway.rb, line 9
def delete_private_gateway(id, options={})
  options.merge!(
    'command' => 'deletePrivateGateway', 
    'id' => id  
  )
  request(options)
end
delete_project(id, options={}) click to toggle source

Deletes a project

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_project.rb, line 9
def delete_project(id, options={})
  options.merge!(
    'command' => 'deleteProject', 
    'id' => id  
  )
  request(options)
end
delete_project_invitation(id, options={}) click to toggle source

Accepts or declines project invitation

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_project_invitation.rb, line 9
def delete_project_invitation(id, options={})
  options.merge!(
    'command' => 'deleteProjectInvitation', 
    'id' => id  
  )
  request(options)
end
delete_remote_access_vpn(publicipid, options={}) click to toggle source

Destroys a l2tp/ipsec remote access vpn

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_remote_access_vpn.rb, line 9
def delete_remote_access_vpn(publicipid, options={})
  options.merge!(
    'command' => 'deleteRemoteAccessVpn', 
    'publicipid' => publicipid  
  )
  request(options)
end
delete_secondary_staging_store(id, options={}) click to toggle source

Deletes a secondary staging store .

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_secondary_staging_store.rb, line 9
def delete_secondary_staging_store(id, options={})
  options.merge!(
    'command' => 'deleteSecondaryStagingStore', 
    'id' => id  
  )
  request(options)
end
delete_security_group(options={}) click to toggle source

Deletes security group

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_security_group.rb, line 9
def delete_security_group(options={})
  options.merge!(
    'command' => 'deleteSecurityGroup'  
  )
  request(options)
end
delete_service_offering(id, options={}) click to toggle source

Deletes a service offering.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_service_offering.rb, line 9
def delete_service_offering(id, options={})
  options.merge!(
    'command' => 'deleteServiceOffering', 
    'id' => id  
  )
  request(options)
end
delete_snapshot(id, options={}) click to toggle source

Deletes a snapshot of a disk volume.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_snapshot.rb, line 9
def delete_snapshot(id, options={})
  options.merge!(
    'command' => 'deleteSnapshot', 
    'id' => id  
  )
  request(options)
end
delete_snapshot_policies(options={}) click to toggle source

Deletes snapshot policies for the account.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_snapshot_policies.rb, line 9
def delete_snapshot_policies(options={})
  options.merge!(
    'command' => 'deleteSnapshotPolicies'  
  )
  request(options)
end
delete_srx_firewall(fwdeviceid, options={}) click to toggle source
delete a SRX firewall device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_srx_firewall.rb, line 9
def delete_srx_firewall(fwdeviceid, options={})
  options.merge!(
    'command' => 'deleteSrxFirewall', 
    'fwdeviceid' => fwdeviceid  
  )
  request(options)
end
delete_ssh_key_pair(name, options={}) click to toggle source

Deletes a keypair by name

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_ssh_key_pair.rb, line 9
def delete_ssh_key_pair(name, options={})
  options.merge!(
    'command' => 'deleteSSHKeyPair', 
    'name' => name  
  )
  request(options)
end
delete_static_route(id, options={}) click to toggle source

Deletes a static route

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_static_route.rb, line 9
def delete_static_route(id, options={})
  options.merge!(
    'command' => 'deleteStaticRoute', 
    'id' => id  
  )
  request(options)
end
delete_storage_network_ip_range(id, options={}) click to toggle source

Deletes a storage network IP Range.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_storage_network_ip_range.rb, line 9
def delete_storage_network_ip_range(id, options={})
  options.merge!(
    'command' => 'deleteStorageNetworkIpRange', 
    'id' => id  
  )
  request(options)
end
delete_storage_pool(id, options={}) click to toggle source

Deletes a storage pool.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_storage_pool.rb, line 9
def delete_storage_pool(id, options={})
  options.merge!(
    'command' => 'deleteStoragePool', 
    'id' => id  
  )
  request(options)
end
delete_tags(resourceids, resourcetype, options={}) click to toggle source

Deleting resource tag(s)

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_tags.rb, line 9
def delete_tags(resourceids, resourcetype, options={})
  options.merge!(
    'command' => 'deleteTags', 
    'resourceids' => resourceids, 
    'resourcetype' => resourcetype  
  )
  request(options)
end
delete_template(id, options={}) click to toggle source

Deletes a template from the system. All virtual machines using the deleted template will not be affected.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_template.rb, line 9
def delete_template(id, options={})
  options.merge!(
    'command' => 'deleteTemplate', 
    'id' => id  
  )
  request(options)
end
delete_traffic_monitor(id, options={}) click to toggle source

Deletes an traffic monitor host.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_traffic_monitor.rb, line 9
def delete_traffic_monitor(id, options={})
  options.merge!(
    'command' => 'deleteTrafficMonitor', 
    'id' => id  
  )
  request(options)
end
delete_traffic_type(id, options={}) click to toggle source

Deletes traffic type of a physical network

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_traffic_type.rb, line 9
def delete_traffic_type(id, options={})
  options.merge!(
    'command' => 'deleteTrafficType', 
    'id' => id  
  )
  request(options)
end
delete_ucs_manager(ucsmanagerid, options={}) click to toggle source

Delete a Ucs manager

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_ucs_manager.rb, line 9
def delete_ucs_manager(ucsmanagerid, options={})
  options.merge!(
    'command' => 'deleteUcsManager', 
    'ucsmanagerid' => ucsmanagerid  
  )
  request(options)
end
delete_user(id, options={}) click to toggle source

Deletes a user for an account

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_user.rb, line 9
def delete_user(id, options={})
  options.merge!(
    'command' => 'deleteUser', 
    'id' => id  
  )
  request(options)
end
delete_vlan_ip_range(id, options={}) click to toggle source

Creates a VLAN IP range.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_vlan_ip_range.rb, line 9
def delete_vlan_ip_range(id, options={})
  options.merge!(
    'command' => 'deleteVlanIpRange', 
    'id' => id  
  )
  request(options)
end
delete_vm_snapshot(vmsnapshotid, options={}) click to toggle source

Deletes a vmsnapshot.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_vm_snapshot.rb, line 9
def delete_vm_snapshot(vmsnapshotid, options={})
  options.merge!(
    'command' => 'deleteVMSnapshot', 
    'vmsnapshotid' => vmsnapshotid  
  )
  request(options)
end
delete_volume(id, options={}) click to toggle source

Deletes a detached disk volume.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_volume.rb, line 9
def delete_volume(id, options={})
  options.merge!(
    'command' => 'deleteVolume', 
    'id' => id  
  )
  request(options)
end
delete_vpc(id, options={}) click to toggle source

Deletes a VPC

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_vpc.rb, line 9
def delete_vpc(id, options={})
  options.merge!(
    'command' => 'deleteVPC', 
    'id' => id  
  )
  request(options)
end
delete_vpcoffering(id, options={}) click to toggle source

Deletes VPC offering

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_vpcoffering.rb, line 9
def delete_vpcoffering(id, options={})
  options.merge!(
    'command' => 'deleteVPCOffering', 
    'id' => id  
  )
  request(options)
end
delete_vpn_connection(id, options={}) click to toggle source

Delete site to site vpn connection

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_vpn_connection.rb, line 9
def delete_vpn_connection(id, options={})
  options.merge!(
    'command' => 'deleteVpnConnection', 
    'id' => id  
  )
  request(options)
end
delete_vpn_customer_gateway(id, options={}) click to toggle source

Delete site to site vpn customer gateway

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_vpn_customer_gateway.rb, line 9
def delete_vpn_customer_gateway(id, options={})
  options.merge!(
    'command' => 'deleteVpnCustomerGateway', 
    'id' => id  
  )
  request(options)
end
delete_vpn_gateway(id, options={}) click to toggle source

Delete site to site vpn gateway

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_vpn_gateway.rb, line 9
def delete_vpn_gateway(id, options={})
  options.merge!(
    'command' => 'deleteVpnGateway', 
    'id' => id  
  )
  request(options)
end
delete_zone(id, options={}) click to toggle source

Deletes a Zone.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/delete_zone.rb, line 9
def delete_zone(id, options={})
  options.merge!(
    'command' => 'deleteZone', 
    'id' => id  
  )
  request(options)
end
deploy_virtual_machine(serviceofferingid, templateid, zoneid, options={}) click to toggle source

Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb, line 9
def deploy_virtual_machine(serviceofferingid, templateid, zoneid, options={})
  options.merge!(
    'command' => 'deployVirtualMachine', 
    'serviceofferingid' => serviceofferingid, 
    'templateid' => templateid, 
    'zoneid' => zoneid  
  )
  request(options)
end
destroy_lun_on_filer(path, options={}) click to toggle source

Destroy a LUN

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/destroy_lun_on_filer.rb, line 9
def destroy_lun_on_filer(path, options={})
  options.merge!(
    'command' => 'destroyLunOnFiler', 
    'path' => path  
  )
  request(options)
end
destroy_router(id, options={}) click to toggle source

Destroys a router.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/destroy_router.rb, line 9
def destroy_router(id, options={})
  options.merge!(
    'command' => 'destroyRouter', 
    'id' => id  
  )
  request(options)
end
destroy_system_vm(id, options={}) click to toggle source

Destroyes a system virtual machine.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/destroy_system_vm.rb, line 9
def destroy_system_vm(id, options={})
  options.merge!(
    'command' => 'destroySystemVm', 
    'id' => id  
  )
  request(options)
end
destroy_virtual_machine(id, options={}) click to toggle source

Destroys a virtual machine. Once destroyed, only the administrator can recover it.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/destroy_virtual_machine.rb, line 9
def destroy_virtual_machine(id, options={})
  options.merge!(
    'command' => 'destroyVirtualMachine', 
    'id' => id  
  )
  request(options)
end
destroy_volume_on_filer(ipaddress, aggregatename, volumename, options={}) click to toggle source

Destroy a Volume

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/destroy_volume_on_filer.rb, line 9
def destroy_volume_on_filer(ipaddress, aggregatename, volumename, options={})
  options.merge!(
    'command' => 'destroyVolumeOnFiler', 
    'ipaddress' => ipaddress, 
    'aggregatename' => aggregatename, 
    'volumename' => volumename  
  )
  request(options)
end
detach_iso(virtualmachineid, options={}) click to toggle source

Detaches any ISO file (if any) currently attached to a virtual machine.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/detach_iso.rb, line 9
def detach_iso(virtualmachineid, options={})
  options.merge!(
    'command' => 'detachIso', 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end
detach_volume(options={}) click to toggle source

Detaches a disk volume from a virtual machine.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/detach_volume.rb, line 9
def detach_volume(options={})
  options.merge!(
    'command' => 'detachVolume'  
  )
  request(options)
end
disable_account(lock, options={}) click to toggle source

Disables an account

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/disable_account.rb, line 9
def disable_account(lock, options={})
  options.merge!(
    'command' => 'disableAccount', 
    'lock' => lock  
  )
  request(options)
end
disable_auto_scale_vm_group(id, options={}) click to toggle source

Disables an AutoScale Vm Group

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/disable_auto_scale_vm_group.rb, line 9
def disable_auto_scale_vm_group(id, options={})
  options.merge!(
    'command' => 'disableAutoScaleVmGroup', 
    'id' => id  
  )
  request(options)
end
disable_cisco_nexus_vsm(id, options={}) click to toggle source

disable a Cisco Nexus VSM device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/disable_cisco_nexus_vsm.rb, line 9
def disable_cisco_nexus_vsm(id, options={})
  options.merge!(
    'command' => 'disableCiscoNexusVSM', 
    'id' => id  
  )
  request(options)
end
disable_static_nat(ipaddressid, options={}) click to toggle source

Disables static rule for given ip address

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/disable_static_nat.rb, line 9
def disable_static_nat(ipaddressid, options={})
  options.merge!(
    'command' => 'disableStaticNat', 
    'ipaddressid' => ipaddressid  
  )
  request(options)
end
disable_user(id, options={}) click to toggle source

Disables a user account

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/disable_user.rb, line 9
def disable_user(id, options={})
  options.merge!(
    'command' => 'disableUser', 
    'id' => id  
  )
  request(options)
end
disassociate_ip_address(id, options={}) click to toggle source

Disassociates an ip address from the account.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/disassociate_ip_address.rb, line 9
def disassociate_ip_address(id, options={})
  options.merge!(
    'command' => 'disassociateIpAddress', 
    'id' => id  
  )
  request(options)
end
disassociate_ucs_profile_from_blade(bladeid, options={}) click to toggle source

disassociate a profile from a blade

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/disassociate_ucs_profile_from_blade.rb, line 9
def disassociate_ucs_profile_from_blade(bladeid, options={})
  options.merge!(
    'command' => 'disassociateUcsProfileFromBlade', 
    'bladeid' => bladeid  
  )
  request(options)
end
dissociate_lun(iqn, path, options={}) click to toggle source

Dissociate a LUN

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/dissociate_lun.rb, line 9
def dissociate_lun(iqn, path, options={})
  options.merge!(
    'command' => 'dissociateLun', 
    'iqn' => iqn, 
    'path' => path  
  )
  request(options)
end
enable_account(options={}) click to toggle source

Enables an account

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/enable_account.rb, line 9
def enable_account(options={})
  options.merge!(
    'command' => 'enableAccount'  
  )
  request(options)
end
enable_auto_scale_vm_group(id, options={}) click to toggle source

Enables an AutoScale Vm Group

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/enable_auto_scale_vm_group.rb, line 9
def enable_auto_scale_vm_group(id, options={})
  options.merge!(
    'command' => 'enableAutoScaleVmGroup', 
    'id' => id  
  )
  request(options)
end
enable_cisco_nexus_vsm(id, options={}) click to toggle source

Enable a Cisco Nexus VSM device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/enable_cisco_nexus_vsm.rb, line 9
def enable_cisco_nexus_vsm(id, options={})
  options.merge!(
    'command' => 'enableCiscoNexusVSM', 
    'id' => id  
  )
  request(options)
end
enable_static_nat(ipaddressid, virtualmachineid, options={}) click to toggle source

Enables static nat for given ip address

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/enable_static_nat.rb, line 9
def enable_static_nat(ipaddressid, virtualmachineid, options={})
  options.merge!(
    'command' => 'enableStaticNat', 
    'ipaddressid' => ipaddressid, 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end
enable_storage_maintenance(id, options={}) click to toggle source

Puts storage pool into maintenance state

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/enable_storage_maintenance.rb, line 9
def enable_storage_maintenance(id, options={})
  options.merge!(
    'command' => 'enableStorageMaintenance', 
    'id' => id  
  )
  request(options)
end
enable_user(id, options={}) click to toggle source

Enables a user account

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/enable_user.rb, line 9
def enable_user(id, options={})
  options.merge!(
    'command' => 'enableUser', 
    'id' => id  
  )
  request(options)
end
extract_iso(mode, id, options={}) click to toggle source

Extracts an ISO

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/extract_iso.rb, line 9
def extract_iso(mode, id, options={})
  options.merge!(
    'command' => 'extractIso', 
    'mode' => mode, 
    'id' => id  
  )
  request(options)
end
extract_template(mode, id, options={}) click to toggle source

Extracts a template

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/extract_template.rb, line 9
def extract_template(mode, id, options={})
  options.merge!(
    'command' => 'extractTemplate', 
    'mode' => mode, 
    'id' => id  
  )
  request(options)
end
extract_volume(zoneid, mode, id, options={}) click to toggle source

Extracts volume

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/extract_volume.rb, line 9
def extract_volume(zoneid, mode, id, options={})
  options.merge!(
    'command' => 'extractVolume', 
    'zoneid' => zoneid, 
    'mode' => mode, 
    'id' => id  
  )
  request(options)
end
find_hosts_for_migration(virtualmachineid, options={}) click to toggle source

Find hosts suitable for migrating a virtual machine.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/find_hosts_for_migration.rb, line 9
def find_hosts_for_migration(virtualmachineid, options={})
  options.merge!(
    'command' => 'findHostsForMigration', 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end
find_storage_pools_for_migration(id, options={}) click to toggle source

Lists storage pools available for migration of a volume.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/find_storage_pools_for_migration.rb, line 9
def find_storage_pools_for_migration(id, options={})
  options.merge!(
    'command' => 'findStoragePoolsForMigration', 
    'id' => id  
  )
  request(options)
end
generate_usage_records(enddate, startdate, options={}) click to toggle source

Generates usage records. This will generate records only if there any records to be generated, i.e if the scheduled usage job was not run or failed

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/generate_usage_records.rb, line 9
def generate_usage_records(enddate, startdate, options={})
  options.merge!(
    'command' => 'generateUsageRecords', 
    'enddate' => enddate, 
    'startdate' => startdate  
  )
  request(options)
end
get_api_limit(options={}) click to toggle source

Get API limit count for the caller

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/get_api_limit.rb, line 9
def get_api_limit(options={})
  options.merge!(
    'command' => 'getApiLimit'  
  )
  request(options)
end
get_cloud_identifier(userid, options={}) click to toggle source

Retrieves a cloud identifier.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/get_cloud_identifier.rb, line 9
def get_cloud_identifier(userid, options={})
  options.merge!(
    'command' => 'getCloudIdentifier', 
    'userid' => userid  
  )
  request(options)
end
get_user(userapikey, options={}) click to toggle source

Find user account by API key

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/get_user.rb, line 9
def get_user(userapikey, options={})
  options.merge!(
    'command' => 'getUser', 
    'userapikey' => userapikey  
  )
  request(options)
end
get_vm_password(id, options={}) click to toggle source

Returns an encrypted password for the VM

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/get_vm_password.rb, line 9
def get_vm_password(id, options={})
  options.merge!(
    'command' => 'getVMPassword', 
    'id' => id  
  )
  request(options)
end
instantiate_ucs_template_and_assocaciate_to_blade(bladeid, templatedn, ucsmanagerid, options={}) click to toggle source

create a profile of template and associate to a blade

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/instantiate_ucs_template_and_assocaciate_to_blade.rb, line 9
def instantiate_ucs_template_and_assocaciate_to_blade(bladeid, templatedn, ucsmanagerid, options={})
  options.merge!(
    'command' => 'instantiateUcsTemplateAndAssocaciateToBlade', 
    'bladeid' => bladeid, 
    'templatedn' => templatedn, 
    'ucsmanagerid' => ucsmanagerid  
  )
  request(options)
end
ldap_config(options={}) click to toggle source

Configure the LDAP context for this site.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/ldap_config.rb, line 9
def ldap_config(options={})
  options.merge!(
    'command' => 'ldapConfig'  
  )
  request(options)
end
ldap_remove(options={}) click to toggle source

Remove the LDAP context for this site.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/ldap_remove.rb, line 9
def ldap_remove(options={})
  options.merge!(
    'command' => 'ldapRemove'  
  )
  request(options)
end
list_accounts(options={}) click to toggle source

Lists accounts and provides detailed account information for listed accounts

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_accounts.rb, line 9
def list_accounts(options={})
  options.merge!(
    'command' => 'listAccounts'  
  )
  request(options)
end
list_affinity_group_types(options={}) click to toggle source

Lists affinity group types available

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_affinity_group_types.rb, line 9
def list_affinity_group_types(options={})
  options.merge!(
    'command' => 'listAffinityGroupTypes'  
  )
  request(options)
end
list_affinity_groups(options={}) click to toggle source

Lists affinity groups

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_affinity_groups.rb, line 9
def list_affinity_groups(options={})
  options.merge!(
    'command' => 'listAffinityGroups'  
  )
  request(options)
end
list_alerts(options={}) click to toggle source

Lists all alerts.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_alerts.rb, line 9
def list_alerts(options={})
  options.merge!(
    'command' => 'listAlerts'  
  )
  request(options)
end
list_apis(options={}) click to toggle source

lists all available apis on the server, provided by the Api Discovery plugin

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_apis.rb, line 9
def list_apis(options={})
  options.merge!(
    'command' => 'listApis'  
  )
  request(options)
end
list_async_jobs(options={}) click to toggle source

Lists all pending asynchronous jobs for the account.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_async_jobs.rb, line 9
def list_async_jobs(options={})
  options.merge!(
    'command' => 'listAsyncJobs'  
  )
  request(options)
end
list_auto_scale_policies(options={}) click to toggle source

Lists autoscale policies.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_auto_scale_policies.rb, line 9
def list_auto_scale_policies(options={})
  options.merge!(
    'command' => 'listAutoScalePolicies'  
  )
  request(options)
end
list_auto_scale_vm_groups(options={}) click to toggle source

Lists autoscale vm groups.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_auto_scale_vm_groups.rb, line 9
def list_auto_scale_vm_groups(options={})
  options.merge!(
    'command' => 'listAutoScaleVmGroups'  
  )
  request(options)
end
list_auto_scale_vm_profiles(options={}) click to toggle source

Lists autoscale vm profiles.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_auto_scale_vm_profiles.rb, line 9
def list_auto_scale_vm_profiles(options={})
  options.merge!(
    'command' => 'listAutoScaleVmProfiles'  
  )
  request(options)
end
list_baremetal_dhcp(options={}) click to toggle source

list baremetal dhcp servers

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_baremetal_dhcp.rb, line 9
def list_baremetal_dhcp(options={})
  options.merge!(
    'command' => 'listBaremetalDhcp'  
  )
  request(options)
end
list_baremetal_pxe_servers(options={}) click to toggle source

list baremetal pxe server

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_baremetal_pxe_servers.rb, line 9
def list_baremetal_pxe_servers(options={})
  options.merge!(
    'command' => 'listBaremetalPxeServers'  
  )
  request(options)
end
list_capabilities(options={}) click to toggle source

Lists capabilities

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_capabilities.rb, line 9
def list_capabilities(options={})
  options.merge!(
    'command' => 'listCapabilities'  
  )
  request(options)
end
list_capacity(options={}) click to toggle source

Lists all the system wide capacities.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_capacity.rb, line 9
def list_capacity(options={})
  options.merge!(
    'command' => 'listCapacity'  
  )
  request(options)
end
list_cisco_asa1000v_resources(options={}) click to toggle source

Lists Cisco ASA 1000v appliances

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_cisco_asa1000v_resources.rb, line 9
def list_cisco_asa1000v_resources(options={})
  options.merge!(
    'command' => 'listCiscoAsa1000vResources'  
  )
  request(options)
end
list_cisco_nexus_vsms(options={}) click to toggle source

Retrieves a Cisco Nexus 1000v Virtual Switch Manager device associated with a Cluster

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_cisco_nexus_vsms.rb, line 9
def list_cisco_nexus_vsms(options={})
  options.merge!(
    'command' => 'listCiscoNexusVSMs'  
  )
  request(options)
end
list_cisco_vnmc_resources(options={}) click to toggle source

Lists Cisco VNMC controllers

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_cisco_vnmc_resources.rb, line 9
def list_cisco_vnmc_resources(options={})
  options.merge!(
    'command' => 'listCiscoVnmcResources'  
  )
  request(options)
end
list_clusters(options={}) click to toggle source

Lists clusters.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_clusters.rb, line 9
def list_clusters(options={})
  options.merge!(
    'command' => 'listClusters'  
  )
  request(options)
end
list_conditions(options={}) click to toggle source

List Conditions for the specific user

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_conditions.rb, line 9
def list_conditions(options={})
  options.merge!(
    'command' => 'listConditions'  
  )
  request(options)
end
list_configurations(options={}) click to toggle source

Lists all configurations.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_configurations.rb, line 9
def list_configurations(options={})
  options.merge!(
    'command' => 'listConfigurations'  
  )
  request(options)
end
list_counters(options={}) click to toggle source

List the counters

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_counters.rb, line 9
def list_counters(options={})
  options.merge!(
    'command' => 'listCounters'  
  )
  request(options)
end
list_dedicated_clusters(options={}) click to toggle source

Lists dedicated clusters.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_dedicated_clusters.rb, line 9
def list_dedicated_clusters(options={})
  options.merge!(
    'command' => 'listDedicatedClusters'  
  )
  request(options)
end
list_dedicated_guest_vlan_ranges(options={}) click to toggle source

Lists dedicated guest vlan ranges

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_dedicated_guest_vlan_ranges.rb, line 9
def list_dedicated_guest_vlan_ranges(options={})
  options.merge!(
    'command' => 'listDedicatedGuestVlanRanges'  
  )
  request(options)
end
list_dedicated_hosts(options={}) click to toggle source

Lists dedicated hosts.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_dedicated_hosts.rb, line 9
def list_dedicated_hosts(options={})
  options.merge!(
    'command' => 'listDedicatedHosts'  
  )
  request(options)
end
list_dedicated_pods(options={}) click to toggle source

Lists dedicated pods.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_dedicated_pods.rb, line 9
def list_dedicated_pods(options={})
  options.merge!(
    'command' => 'listDedicatedPods'  
  )
  request(options)
end
list_dedicated_zones(options={}) click to toggle source

List dedicated zones.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_dedicated_zones.rb, line 9
def list_dedicated_zones(options={})
  options.merge!(
    'command' => 'listDedicatedZones'  
  )
  request(options)
end
list_deployment_planners(options={}) click to toggle source

Lists all DeploymentPlanners available.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_deployment_planners.rb, line 9
def list_deployment_planners(options={})
  options.merge!(
    'command' => 'listDeploymentPlanners'  
  )
  request(options)
end
list_disk_offerings(options={}) click to toggle source

Lists all available disk offerings.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_disk_offerings.rb, line 9
def list_disk_offerings(options={})
  options.merge!(
    'command' => 'listDiskOfferings'  
  )
  request(options)
end
list_domain_children(options={}) click to toggle source

Lists all children domains belonging to a specified domain

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_domain_children.rb, line 9
def list_domain_children(options={})
  options.merge!(
    'command' => 'listDomainChildren'  
  )
  request(options)
end
list_domains(options={}) click to toggle source

Lists domains and provides detailed information for listed domains

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_domains.rb, line 9
def list_domains(options={})
  options.merge!(
    'command' => 'listDomains'  
  )
  request(options)
end
list_egress_firewall_rules(options={}) click to toggle source

Lists all egress firewall rules for network id.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_egress_firewall_rules.rb, line 9
def list_egress_firewall_rules(options={})
  options.merge!(
    'command' => 'listEgressFirewallRules'  
  )
  request(options)
end
list_event_types(options={}) click to toggle source

List Event Types

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_event_types.rb, line 9
def list_event_types(options={})
  options.merge!(
    'command' => 'listEventTypes'  
  )
  request(options)
end
list_events(options={}) click to toggle source

A command to list events.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_events.rb, line 9
def list_events(options={})
  options.merge!(
    'command' => 'listEvents'  
  )
  request(options)
end
list_external_firewalls(zoneid, options={}) click to toggle source

List external firewall appliances.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_external_firewalls.rb, line 9
def list_external_firewalls(zoneid, options={})
  options.merge!(
    'command' => 'listExternalFirewalls', 
    'zoneid' => zoneid  
  )
  request(options)
end
list_external_load_balancers(options={}) click to toggle source

Lists F5 external load balancer appliances added in a zone.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_external_load_balancers.rb, line 9
def list_external_load_balancers(options={})
  options.merge!(
    'command' => 'listExternalLoadBalancers'  
  )
  request(options)
end
list_f5_load_balancer_networks(lbdeviceid, options={}) click to toggle source

lists network that are using a F5 load balancer device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_f5_load_balancer_networks.rb, line 9
def list_f5_load_balancer_networks(lbdeviceid, options={})
  options.merge!(
    'command' => 'listF5LoadBalancerNetworks', 
    'lbdeviceid' => lbdeviceid  
  )
  request(options)
end
list_f5_load_balancers(options={}) click to toggle source

lists F5 load balancer devices

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_f5_load_balancers.rb, line 9
def list_f5_load_balancers(options={})
  options.merge!(
    'command' => 'listF5LoadBalancers'  
  )
  request(options)
end
list_firewall_rules(options={}) click to toggle source

Lists all firewall rules for an IP address.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_firewall_rules.rb, line 9
def list_firewall_rules(options={})
  options.merge!(
    'command' => 'listFirewallRules'  
  )
  request(options)
end
list_global_load_balancer_rules(options={}) click to toggle source

Lists load balancer rules.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_global_load_balancer_rules.rb, line 9
def list_global_load_balancer_rules(options={})
  options.merge!(
    'command' => 'listGlobalLoadBalancerRules'  
  )
  request(options)
end
list_hosts(options={}) click to toggle source

Lists hosts.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_hosts.rb, line 9
def list_hosts(options={})
  options.merge!(
    'command' => 'listHosts'  
  )
  request(options)
end
list_hypervisor_capabilities(options={}) click to toggle source

Lists all hypervisor capabilities.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_hypervisor_capabilities.rb, line 9
def list_hypervisor_capabilities(options={})
  options.merge!(
    'command' => 'listHypervisorCapabilities'  
  )
  request(options)
end
list_hypervisors(options={}) click to toggle source

List hypervisors

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_hypervisors.rb, line 9
def list_hypervisors(options={})
  options.merge!(
    'command' => 'listHypervisors'  
  )
  request(options)
end
list_image_stores(options={}) click to toggle source

Lists image stores.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_image_stores.rb, line 9
def list_image_stores(options={})
  options.merge!(
    'command' => 'listImageStores'  
  )
  request(options)
end
list_instance_groups(options={}) click to toggle source

Lists vm groups

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_instance_groups.rb, line 9
def list_instance_groups(options={})
  options.merge!(
    'command' => 'listInstanceGroups'  
  )
  request(options)
end
list_internal_load_balancer_elements(options={}) click to toggle source

Lists all available Internal Load Balancer elements.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_internal_load_balancer_elements.rb, line 9
def list_internal_load_balancer_elements(options={})
  options.merge!(
    'command' => 'listInternalLoadBalancerElements'  
  )
  request(options)
end
list_internal_load_balancer_vms(options={}) click to toggle source

List internal LB VMs.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_internal_load_balancer_vms.rb, line 9
def list_internal_load_balancer_vms(options={})
  options.merge!(
    'command' => 'listInternalLoadBalancerVMs'  
  )
  request(options)
end
list_ip_forwarding_rules(options={}) click to toggle source

List the ip forwarding rules

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_ip_forwarding_rules.rb, line 9
def list_ip_forwarding_rules(options={})
  options.merge!(
    'command' => 'listIpForwardingRules'  
  )
  request(options)
end
list_iso_permissions(id, options={}) click to toggle source

List iso visibility and all accounts that have permissions to view this iso.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_iso_permissions.rb, line 9
def list_iso_permissions(id, options={})
  options.merge!(
    'command' => 'listIsoPermissions', 
    'id' => id  
  )
  request(options)
end
list_isos(options={}) click to toggle source

Lists all available ISO files.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_isos.rb, line 9
def list_isos(options={})
  options.merge!(
    'command' => 'listIsos'  
  )
  request(options)
end
list_lb_health_check_policies(lbruleid, options={}) click to toggle source

Lists load balancer HealthCheck policies.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_lb_health_check_policies.rb, line 9
def list_lb_health_check_policies(lbruleid, options={})
  options.merge!(
    'command' => 'listLBHealthCheckPolicies', 
    'lbruleid' => lbruleid  
  )
  request(options)
end
list_lb_stickiness_policies(lbruleid, options={}) click to toggle source

Lists LBStickiness policies.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_lb_stickiness_policies.rb, line 9
def list_lb_stickiness_policies(lbruleid, options={})
  options.merge!(
    'command' => 'listLBStickinessPolicies', 
    'lbruleid' => lbruleid  
  )
  request(options)
end
list_load_balancer_rule_instances(id, options={}) click to toggle source

List all virtual machine instances that are assigned to a load balancer rule.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_load_balancer_rule_instances.rb, line 9
def list_load_balancer_rule_instances(id, options={})
  options.merge!(
    'command' => 'listLoadBalancerRuleInstances', 
    'id' => id  
  )
  request(options)
end
list_load_balancer_rules(options={}) click to toggle source

Lists load balancer rules.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_load_balancer_rules.rb, line 9
def list_load_balancer_rules(options={})
  options.merge!(
    'command' => 'listLoadBalancerRules'  
  )
  request(options)
end
list_load_balancers(options={}) click to toggle source

Lists Load Balancers

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_load_balancers.rb, line 9
def list_load_balancers(options={})
  options.merge!(
    'command' => 'listLoadBalancers'  
  )
  request(options)
end
list_luns_on_filer(poolname, options={}) click to toggle source

List LUN

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_luns_on_filer.rb, line 9
def list_luns_on_filer(poolname, options={})
  options.merge!(
    'command' => 'listLunsOnFiler', 
    'poolname' => poolname  
  )
  request(options)
end
list_netscaler_load_balancer_networks(lbdeviceid, options={}) click to toggle source

lists network that are using a netscaler load balancer device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_netscaler_load_balancer_networks.rb, line 9
def list_netscaler_load_balancer_networks(lbdeviceid, options={})
  options.merge!(
    'command' => 'listNetscalerLoadBalancerNetworks', 
    'lbdeviceid' => lbdeviceid  
  )
  request(options)
end
list_netscaler_load_balancers(options={}) click to toggle source

lists netscaler load balancer devices

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_netscaler_load_balancers.rb, line 9
def list_netscaler_load_balancers(options={})
  options.merge!(
    'command' => 'listNetscalerLoadBalancers'  
  )
  request(options)
end
list_network_acl_lists(options={}) click to toggle source

Lists all network ACLs

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_network_acl_lists.rb, line 9
def list_network_acl_lists(options={})
  options.merge!(
    'command' => 'listNetworkACLLists'  
  )
  request(options)
end
list_network_acls(options={}) click to toggle source

Lists all network ACL items

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_network_acls.rb, line 9
def list_network_acls(options={})
  options.merge!(
    'command' => 'listNetworkACLs'  
  )
  request(options)
end
list_network_device(options={}) click to toggle source

List network devices

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_network_device.rb, line 9
def list_network_device(options={})
  options.merge!(
    'command' => 'listNetworkDevice'  
  )
  request(options)
end
list_network_isolation_methods(options={}) click to toggle source

Lists supported methods of network isolation

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_network_isolation_methods.rb, line 9
def list_network_isolation_methods(options={})
  options.merge!(
    'command' => 'listNetworkIsolationMethods'  
  )
  request(options)
end
list_network_offerings(options={}) click to toggle source

Lists all available network offerings.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_network_offerings.rb, line 9
def list_network_offerings(options={})
  options.merge!(
    'command' => 'listNetworkOfferings'  
  )
  request(options)
end
list_network_service_providers(options={}) click to toggle source

Lists network serviceproviders for a given physical network.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_network_service_providers.rb, line 9
def list_network_service_providers(options={})
  options.merge!(
    'command' => 'listNetworkServiceProviders'  
  )
  request(options)
end
list_networks(options={}) click to toggle source

Lists all available networks.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_networks.rb, line 9
def list_networks(options={})
  options.merge!(
    'command' => 'listNetworks'  
  )
  request(options)
end
list_nicira_nvp_device_networks(nvpdeviceid, options={}) click to toggle source

lists network that are using a nicira nvp device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_nicira_nvp_device_networks.rb, line 9
def list_nicira_nvp_device_networks(nvpdeviceid, options={})
  options.merge!(
    'command' => 'listNiciraNvpDeviceNetworks', 
    'nvpdeviceid' => nvpdeviceid  
  )
  request(options)
end
list_nicira_nvp_devices(options={}) click to toggle source

Lists Nicira NVP devices

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_nicira_nvp_devices.rb, line 9
def list_nicira_nvp_devices(options={})
  options.merge!(
    'command' => 'listNiciraNvpDevices'  
  )
  request(options)
end
list_nics(virtualmachineid, options={}) click to toggle source

list the vm nics IP to NIC

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_nics.rb, line 9
def list_nics(virtualmachineid, options={})
  options.merge!(
    'command' => 'listNics', 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end
list_os_categories(options={}) click to toggle source

Lists all supported OS categories for this cloud.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_os_categories.rb, line 9
def list_os_categories(options={})
  options.merge!(
    'command' => 'listOsCategories'  
  )
  request(options)
end
list_os_types(options={}) click to toggle source

Lists all supported OS types for this cloud.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_os_types.rb, line 9
def list_os_types(options={})
  options.merge!(
    'command' => 'listOsTypes'  
  )
  request(options)
end
list_physical_networks(options={}) click to toggle source

Lists physical networks

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_physical_networks.rb, line 9
def list_physical_networks(options={})
  options.merge!(
    'command' => 'listPhysicalNetworks'  
  )
  request(options)
end
list_pods(options={}) click to toggle source

Lists all Pods.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_pods.rb, line 9
def list_pods(options={})
  options.merge!(
    'command' => 'listPods'  
  )
  request(options)
end
list_pools(options={}) click to toggle source

List Pool

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_pools.rb, line 9
def list_pools(options={})
  options.merge!(
    'command' => 'listPools'  
  )
  request(options)
end
list_port_forwarding_rules(options={}) click to toggle source

Lists all port forwarding rules for an IP address.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_port_forwarding_rules.rb, line 9
def list_port_forwarding_rules(options={})
  options.merge!(
    'command' => 'listPortForwardingRules'  
  )
  request(options)
end
list_portable_ip_ranges(options={}) click to toggle source

list portable IP ranges

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_portable_ip_ranges.rb, line 9
def list_portable_ip_ranges(options={})
  options.merge!(
    'command' => 'listPortableIpRanges'  
  )
  request(options)
end
list_private_gateways(options={}) click to toggle source

List private gateways

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_private_gateways.rb, line 9
def list_private_gateways(options={})
  options.merge!(
    'command' => 'listPrivateGateways'  
  )
  request(options)
end
list_project_accounts(projectid, options={}) click to toggle source

Lists project's accounts

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_project_accounts.rb, line 9
def list_project_accounts(projectid, options={})
  options.merge!(
    'command' => 'listProjectAccounts', 
    'projectid' => projectid  
  )
  request(options)
end
list_project_invitations(options={}) click to toggle source

Lists projects and provides detailed information for listed projects

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_project_invitations.rb, line 9
def list_project_invitations(options={})
  options.merge!(
    'command' => 'listProjectInvitations'  
  )
  request(options)
end
list_projects(options={}) click to toggle source

Lists projects and provides detailed information for listed projects

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_projects.rb, line 9
def list_projects(options={})
  options.merge!(
    'command' => 'listProjects'  
  )
  request(options)
end
list_public_ip_addresses(options={}) click to toggle source

Lists all public ip addresses

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_public_ip_addresses.rb, line 9
def list_public_ip_addresses(options={})
  options.merge!(
    'command' => 'listPublicIpAddresses'  
  )
  request(options)
end
list_regions(options={}) click to toggle source

Lists Regions

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_regions.rb, line 9
def list_regions(options={})
  options.merge!(
    'command' => 'listRegions'  
  )
  request(options)
end
list_remote_access_vpns(publicipid, options={}) click to toggle source

Lists remote access vpns

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_remote_access_vpns.rb, line 9
def list_remote_access_vpns(publicipid, options={})
  options.merge!(
    'command' => 'listRemoteAccessVpns', 
    'publicipid' => publicipid  
  )
  request(options)
end
list_resource_details(options={}) click to toggle source

List resource detail(s)

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_resource_details.rb, line 9
def list_resource_details(options={})
  options.merge!(
    'command' => 'listResourceDetails'  
  )
  request(options)
end
list_resource_limits(options={}) click to toggle source

Lists resource limits.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_resource_limits.rb, line 9
def list_resource_limits(options={})
  options.merge!(
    'command' => 'listResourceLimits'  
  )
  request(options)
end
list_routers(options={}) click to toggle source

List routers.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_routers.rb, line 9
def list_routers(options={})
  options.merge!(
    'command' => 'listRouters'  
  )
  request(options)
end
list_s3s(options={}) click to toggle source

Lists S3s

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_s3s.rb, line 9
def list_s3s(options={})
  options.merge!(
    'command' => 'listS3s'  
  )
  request(options)
end
list_secondary_staging_stores(options={}) click to toggle source

Lists secondary staging stores.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_secondary_staging_stores.rb, line 9
def list_secondary_staging_stores(options={})
  options.merge!(
    'command' => 'listSecondaryStagingStores'  
  )
  request(options)
end
list_security_groups(options={}) click to toggle source

Lists security groups

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_security_groups.rb, line 9
def list_security_groups(options={})
  options.merge!(
    'command' => 'listSecurityGroups'  
  )
  request(options)
end
list_service_offerings(options={}) click to toggle source

Lists all available service offerings.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_service_offerings.rb, line 9
def list_service_offerings(options={})
  options.merge!(
    'command' => 'listServiceOfferings'  
  )
  request(options)
end
list_snapshot_policies(volumeid, options={}) click to toggle source

Lists snapshot policies.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_snapshot_policies.rb, line 9
def list_snapshot_policies(volumeid, options={})
  options.merge!(
    'command' => 'listSnapshotPolicies', 
    'volumeid' => volumeid  
  )
  request(options)
end
list_snapshots(options={}) click to toggle source

Lists all available snapshots for the account.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_snapshots.rb, line 9
def list_snapshots(options={})
  options.merge!(
    'command' => 'listSnapshots'  
  )
  request(options)
end
list_srx_firewall_networks(lbdeviceid, options={}) click to toggle source

lists network that are using SRX firewall device

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_srx_firewall_networks.rb, line 9
def list_srx_firewall_networks(lbdeviceid, options={})
  options.merge!(
    'command' => 'listSrxFirewallNetworks', 
    'lbdeviceid' => lbdeviceid  
  )
  request(options)
end
list_srx_firewalls(options={}) click to toggle source

lists SRX firewall devices in a physical network

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_srx_firewalls.rb, line 9
def list_srx_firewalls(options={})
  options.merge!(
    'command' => 'listSrxFirewalls'  
  )
  request(options)
end
list_ssh_key_pairs(options={}) click to toggle source

List registered keypairs

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_ssh_key_pairs.rb, line 9
def list_ssh_key_pairs(options={})
  options.merge!(
    'command' => 'listSSHKeyPairs'  
  )
  request(options)
end
list_static_routes(options={}) click to toggle source

Lists all static routes

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_static_routes.rb, line 9
def list_static_routes(options={})
  options.merge!(
    'command' => 'listStaticRoutes'  
  )
  request(options)
end
list_storage_network_ip_range(options={}) click to toggle source

List a storage network IP range.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_storage_network_ip_range.rb, line 9
def list_storage_network_ip_range(options={})
  options.merge!(
    'command' => 'listStorageNetworkIpRange'  
  )
  request(options)
end
list_storage_pools(options={}) click to toggle source

Lists storage pools.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_storage_pools.rb, line 9
def list_storage_pools(options={})
  options.merge!(
    'command' => 'listStoragePools'  
  )
  request(options)
end
list_storage_providers(type, options={}) click to toggle source

Lists storage providers.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_storage_providers.rb, line 9
def list_storage_providers(type, options={})
  options.merge!(
    'command' => 'listStorageProviders', 
    'type' => type  
  )
  request(options)
end
list_supported_network_services(options={}) click to toggle source

Lists all network services provided by CloudStack or for the given Provider.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_supported_network_services.rb, line 9
def list_supported_network_services(options={})
  options.merge!(
    'command' => 'listSupportedNetworkServices'  
  )
  request(options)
end
list_swifts(options={}) click to toggle source

List Swift.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_swifts.rb, line 9
def list_swifts(options={})
  options.merge!(
    'command' => 'listSwifts'  
  )
  request(options)
end
list_system_vms(options={}) click to toggle source

List system virtual machines.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_system_vms.rb, line 9
def list_system_vms(options={})
  options.merge!(
    'command' => 'listSystemVms'  
  )
  request(options)
end
list_tags(options={}) click to toggle source

List resource tag(s)

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_tags.rb, line 9
def list_tags(options={})
  options.merge!(
    'command' => 'listTags'  
  )
  request(options)
end
list_template_permissions(id, options={}) click to toggle source

List template visibility and all accounts that have permissions to view this template.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_template_permissions.rb, line 9
def list_template_permissions(id, options={})
  options.merge!(
    'command' => 'listTemplatePermissions', 
    'id' => id  
  )
  request(options)
end
list_templates(templatefilter, options={}) click to toggle source

List all public, private, and privileged templates.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_templates.rb, line 9
def list_templates(templatefilter, options={})
  options.merge!(
    'command' => 'listTemplates', 
    'templatefilter' => templatefilter  
  )
  request(options)
end
list_traffic_monitors(zoneid, options={}) click to toggle source

List traffic monitor Hosts.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_traffic_monitors.rb, line 9
def list_traffic_monitors(zoneid, options={})
  options.merge!(
    'command' => 'listTrafficMonitors', 
    'zoneid' => zoneid  
  )
  request(options)
end
list_traffic_type_implementors(options={}) click to toggle source

Lists implementors of implementor of a network traffic type or implementors of all network traffic types

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_traffic_type_implementors.rb, line 9
def list_traffic_type_implementors(options={})
  options.merge!(
    'command' => 'listTrafficTypeImplementors'  
  )
  request(options)
end
list_traffic_types(physicalnetworkid, options={}) click to toggle source

Lists traffic types of a given physical network.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_traffic_types.rb, line 9
def list_traffic_types(physicalnetworkid, options={})
  options.merge!(
    'command' => 'listTrafficTypes', 
    'physicalnetworkid' => physicalnetworkid  
  )
  request(options)
end
list_ucs_blades(ucsmanagerid, options={}) click to toggle source

List ucs blades

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_ucs_blades.rb, line 9
def list_ucs_blades(ucsmanagerid, options={})
  options.merge!(
    'command' => 'listUcsBlades', 
    'ucsmanagerid' => ucsmanagerid  
  )
  request(options)
end
list_ucs_managers(options={}) click to toggle source

List ucs manager

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_ucs_managers.rb, line 9
def list_ucs_managers(options={})
  options.merge!(
    'command' => 'listUcsManagers'  
  )
  request(options)
end
list_ucs_profiles(ucsmanagerid, options={}) click to toggle source

List profile in ucs manager

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_ucs_profiles.rb, line 9
def list_ucs_profiles(ucsmanagerid, options={})
  options.merge!(
    'command' => 'listUcsProfiles', 
    'ucsmanagerid' => ucsmanagerid  
  )
  request(options)
end
list_ucs_templates(ucsmanagerid, options={}) click to toggle source

List templates in ucs manager

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_ucs_templates.rb, line 9
def list_ucs_templates(ucsmanagerid, options={})
  options.merge!(
    'command' => 'listUcsTemplates', 
    'ucsmanagerid' => ucsmanagerid  
  )
  request(options)
end
list_usage_records(enddate, startdate, options={}) click to toggle source

Lists usage records for accounts

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_usage_records.rb, line 9
def list_usage_records(enddate, startdate, options={})
  options.merge!(
    'command' => 'listUsageRecords', 
    'enddate' => enddate, 
    'startdate' => startdate  
  )
  request(options)
end
list_usage_types(options={}) click to toggle source

List Usage Types

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_usage_types.rb, line 9
def list_usage_types(options={})
  options.merge!(
    'command' => 'listUsageTypes'  
  )
  request(options)
end
list_users(options={}) click to toggle source

Lists user accounts

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_users.rb, line 9
def list_users(options={})
  options.merge!(
    'command' => 'listUsers'  
  )
  request(options)
end
list_virtual_machines(options={}) click to toggle source

List the virtual machines owned by the account.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_virtual_machines.rb, line 9
def list_virtual_machines(options={})
  options.merge!(
    'command' => 'listVirtualMachines'  
  )
  request(options)
end
list_virtual_router_elements(options={}) click to toggle source

Lists all available virtual router elements.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_virtual_router_elements.rb, line 9
def list_virtual_router_elements(options={})
  options.merge!(
    'command' => 'listVirtualRouterElements'  
  )
  request(options)
end
list_vlan_ip_ranges(options={}) click to toggle source

Lists all VLAN IP ranges.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_vlan_ip_ranges.rb, line 9
def list_vlan_ip_ranges(options={})
  options.merge!(
    'command' => 'listVlanIpRanges'  
  )
  request(options)
end
list_vm_snapshot(options={}) click to toggle source

List virtual machine snapshot by conditions

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_vm_snapshot.rb, line 9
def list_vm_snapshot(options={})
  options.merge!(
    'command' => 'listVMSnapshot'  
  )
  request(options)
end
list_vmware_dcs(zoneid, options={}) click to toggle source

Retrieves VMware DC(s) associated with a zone.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_vmware_dcs.rb, line 9
def list_vmware_dcs(zoneid, options={})
  options.merge!(
    'command' => 'listVmwareDcs', 
    'zoneid' => zoneid  
  )
  request(options)
end
list_volumes(options={}) click to toggle source

Lists all volumes.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_volumes.rb, line 9
def list_volumes(options={})
  options.merge!(
    'command' => 'listVolumes'  
  )
  request(options)
end
list_volumes_on_filer(poolname, options={}) click to toggle source

List Volumes

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_volumes_on_filer.rb, line 9
def list_volumes_on_filer(poolname, options={})
  options.merge!(
    'command' => 'listVolumesOnFiler', 
    'poolname' => poolname  
  )
  request(options)
end
list_vpc_offerings(options={}) click to toggle source

Lists VPC offerings

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_vpc_offerings.rb, line 9
def list_vpc_offerings(options={})
  options.merge!(
    'command' => 'listVPCOfferings'  
  )
  request(options)
end
list_vpcs(options={}) click to toggle source

Lists VPCs

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_vpcs.rb, line 9
def list_vpcs(options={})
  options.merge!(
    'command' => 'listVPCs'  
  )
  request(options)
end
list_vpn_connections(options={}) click to toggle source

Lists site to site vpn connection gateways

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_vpn_connections.rb, line 9
def list_vpn_connections(options={})
  options.merge!(
    'command' => 'listVpnConnections'  
  )
  request(options)
end
list_vpn_customer_gateways(options={}) click to toggle source

Lists site to site vpn customer gateways

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_vpn_customer_gateways.rb, line 9
def list_vpn_customer_gateways(options={})
  options.merge!(
    'command' => 'listVpnCustomerGateways'  
  )
  request(options)
end
list_vpn_gateways(options={}) click to toggle source

Lists site 2 site vpn gateways

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_vpn_gateways.rb, line 9
def list_vpn_gateways(options={})
  options.merge!(
    'command' => 'listVpnGateways'  
  )
  request(options)
end
list_vpn_users(options={}) click to toggle source

Lists vpn users

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_vpn_users.rb, line 9
def list_vpn_users(options={})
  options.merge!(
    'command' => 'listVpnUsers'  
  )
  request(options)
end
list_zones(options={}) click to toggle source

Lists zones

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/list_zones.rb, line 9
def list_zones(options={})
  options.merge!(
    'command' => 'listZones'  
  )
  request(options)
end
lock_account(account, domainid, options={}) click to toggle source

Locks an account

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/lock_account.rb, line 9
def lock_account(account, domainid, options={})
  options.merge!(
    'command' => 'lockAccount', 
    'account' => account, 
    'domainid' => domainid  
  )
  request(options)
end
lock_user(id, options={}) click to toggle source

Locks a user account

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/lock_user.rb, line 9
def lock_user(id, options={})
  options.merge!(
    'command' => 'lockUser', 
    'id' => id  
  )
  request(options)
end
login(username,password,domain) click to toggle source
# File lib/fog/cloudstack/compute.rb, line 516
def login(username,password,domain)
  response = issue_request({
    'response' => 'json',
    'command'  => 'login',
    'username' => username,
    'password' => Digest::MD5.hexdigest(password),
    'domain'   => domain
  })

  # Parse response cookies to retrive JSESSIONID token
  cookies   = CGI::Cookie.parse(response.headers['Set-Cookie'])
  sessionid = cookies['JSESSIONID'].first

  # Decode the login response
  response   = Fog::JSON.decode(response.body)

  user = response['loginresponse']
  user.merge!('sessionid' => sessionid)

  @cloudstack_session_id  = user['sessionid']
  @cloudstack_session_key = user['sessionkey']

  user
end
mark_default_zone_for_account(zoneid, domainid, account, options={}) click to toggle source

Marks a default zone for this account

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/mark_default_zone_for_account.rb, line 9
def mark_default_zone_for_account(zoneid, domainid, account, options={})
  options.merge!(
    'command' => 'markDefaultZoneForAccount', 
    'zoneid' => zoneid, 
    'domainid' => domainid, 
    'account' => account  
  )
  request(options)
end
migrate_system_vm(virtualmachineid, hostid, options={}) click to toggle source

Attempts Migration of a system virtual machine to the host specified.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/migrate_system_vm.rb, line 9
def migrate_system_vm(virtualmachineid, hostid, options={})
  options.merge!(
    'command' => 'migrateSystemVm', 
    'virtualmachineid' => virtualmachineid, 
    'hostid' => hostid  
  )
  request(options)
end
migrate_virtual_machine(virtualmachineid, options={}) click to toggle source

Attempts Migration of a VM to a different host or Root volume of the vm to a different storage pool

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/migrate_virtual_machine.rb, line 9
def migrate_virtual_machine(virtualmachineid, options={})
  options.merge!(
    'command' => 'migrateVirtualMachine', 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end
migrate_virtual_machine_with_volume(hostid, virtualmachineid, options={}) click to toggle source

Attempts Migration of a VM with its volumes to a different host

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/migrate_virtual_machine_with_volume.rb, line 9
def migrate_virtual_machine_with_volume(hostid, virtualmachineid, options={})
  options.merge!(
    'command' => 'migrateVirtualMachineWithVolume', 
    'hostid' => hostid, 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end
migrate_volume(volumeid, storageid, options={}) click to toggle source

Migrate volume

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/migrate_volume.rb, line 9
def migrate_volume(volumeid, storageid, options={})
  options.merge!(
    'command' => 'migrateVolume', 
    'volumeid' => volumeid, 
    'storageid' => storageid  
  )
  request(options)
end
modify_pool(algorithm, poolname, options={}) click to toggle source

Modify pool

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/modify_pool.rb, line 9
def modify_pool(algorithm, poolname, options={})
  options.merge!(
    'command' => 'modifyPool', 
    'algorithm' => algorithm, 
    'poolname' => poolname  
  )
  request(options)
end
prepare_host_for_maintenance(id, options={}) click to toggle source

Prepares a host for maintenance.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/prepare_host_for_maintenance.rb, line 9
def prepare_host_for_maintenance(id, options={})
  options.merge!(
    'command' => 'prepareHostForMaintenance', 
    'id' => id  
  )
  request(options)
end
prepare_template(templateid, zoneid, options={}) click to toggle source

load template into primary storage

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/prepare_template.rb, line 9
def prepare_template(templateid, zoneid, options={})
  options.merge!(
    'command' => 'prepareTemplate', 
    'templateid' => templateid, 
    'zoneid' => zoneid  
  )
  request(options)
end
query_async_job_result(jobid, options={}) click to toggle source

Retrieves the current status of asynchronous job.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/query_async_job_result.rb, line 9
def query_async_job_result(jobid, options={})
  options.merge!(
    'command' => 'queryAsyncJobResult', 
    'jobid' => jobid  
  )
  request(options)
end
reboot_router(id, options={}) click to toggle source

Starts a router.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/reboot_router.rb, line 9
def reboot_router(id, options={})
  options.merge!(
    'command' => 'rebootRouter', 
    'id' => id  
  )
  request(options)
end
reboot_system_vm(id, options={}) click to toggle source

Reboots a system VM.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/reboot_system_vm.rb, line 9
def reboot_system_vm(id, options={})
  options.merge!(
    'command' => 'rebootSystemVm', 
    'id' => id  
  )
  request(options)
end
reboot_virtual_machine(id, options={}) click to toggle source

Reboots a virtual machine.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/reboot_virtual_machine.rb, line 9
def reboot_virtual_machine(id, options={})
  options.merge!(
    'command' => 'rebootVirtualMachine', 
    'id' => id  
  )
  request(options)
end
reconnect_host(id, options={}) click to toggle source

Reconnects a host.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/reconnect_host.rb, line 9
def reconnect_host(id, options={})
  options.merge!(
    'command' => 'reconnectHost', 
    'id' => id  
  )
  request(options)
end
recover_virtual_machine(id, options={}) click to toggle source

Recovers a virtual machine.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/recover_virtual_machine.rb, line 9
def recover_virtual_machine(id, options={})
  options.merge!(
    'command' => 'recoverVirtualMachine', 
    'id' => id  
  )
  request(options)
end
refresh_ucs_blades(ucsmanagerid, options={}) click to toggle source

refresh ucs blades to sync with UCS manager

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/refresh_ucs_blades.rb, line 9
def refresh_ucs_blades(ucsmanagerid, options={})
  options.merge!(
    'command' => 'refreshUcsBlades', 
    'ucsmanagerid' => ucsmanagerid  
  )
  request(options)
end
register_iso(url, zoneid, displaytext, name, options={}) click to toggle source

Registers an existing ISO into the CloudStack Cloud.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/register_iso.rb, line 9
def register_iso(url, zoneid, displaytext, name, options={})
  options.merge!(
    'command' => 'registerIso', 
    'url' => url, 
    'zoneid' => zoneid, 
    'displaytext' => displaytext, 
    'name' => name  
  )
  request(options)
end
register_ssh_key_pair(publickey, name, options={}) click to toggle source

Register a public key in a keypair under a certain name

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/register_ssh_key_pair.rb, line 9
def register_ssh_key_pair(publickey, name, options={})
  options.merge!(
    'command' => 'registerSSHKeyPair', 
    'publickey' => publickey, 
    'name' => name  
  )
  request(options)
end
register_template(ostypeid, hypervisor, name, format, zoneid, displaytext, url, options={}) click to toggle source

Registers an existing template into the CloudStack cloud.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/register_template.rb, line 9
def register_template(ostypeid, hypervisor, name, format, zoneid, displaytext, url, options={})
  options.merge!(
    'command' => 'registerTemplate', 
    'ostypeid' => ostypeid, 
    'hypervisor' => hypervisor, 
    'name' => name, 
    'format' => format, 
    'zoneid' => zoneid, 
    'displaytext' => displaytext, 
    'url' => url  
  )
  request(options)
end
register_user_keys(id, options={}) click to toggle source

This command allows a user to register for the developer API, returning a secret key and an API key. This request is made through the integration API port, so it is a privileged command and must be made on behalf of a user. It is up to the implementer just how the username and password are entered, and then how that translates to an integration API request. Both secret key and API key should be returned to the user

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/register_user_keys.rb, line 9
def register_user_keys(id, options={})
  options.merge!(
    'command' => 'registerUserKeys', 
    'id' => id  
  )
  request(options)
end
release_dedicated_cluster(clusterid, options={}) click to toggle source

Release the dedication for cluster

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/release_dedicated_cluster.rb, line 9
def release_dedicated_cluster(clusterid, options={})
  options.merge!(
    'command' => 'releaseDedicatedCluster', 
    'clusterid' => clusterid  
  )
  request(options)
end
release_dedicated_guest_vlan_range(id, options={}) click to toggle source

Releases a dedicated guest vlan range to the system

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/release_dedicated_guest_vlan_range.rb, line 9
def release_dedicated_guest_vlan_range(id, options={})
  options.merge!(
    'command' => 'releaseDedicatedGuestVlanRange', 
    'id' => id  
  )
  request(options)
end
release_dedicated_host(hostid, options={}) click to toggle source

Release the dedication for host

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/release_dedicated_host.rb, line 9
def release_dedicated_host(hostid, options={})
  options.merge!(
    'command' => 'releaseDedicatedHost', 
    'hostid' => hostid  
  )
  request(options)
end
release_dedicated_pod(podid, options={}) click to toggle source

Release the dedication for the pod

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/release_dedicated_pod.rb, line 9
def release_dedicated_pod(podid, options={})
  options.merge!(
    'command' => 'releaseDedicatedPod', 
    'podid' => podid  
  )
  request(options)
end
release_dedicated_zone(zoneid, options={}) click to toggle source

Release dedication of zone

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/release_dedicated_zone.rb, line 9
def release_dedicated_zone(zoneid, options={})
  options.merge!(
    'command' => 'releaseDedicatedZone', 
    'zoneid' => zoneid  
  )
  request(options)
end
release_host_reservation(id, options={}) click to toggle source

Releases host reservation.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/release_host_reservation.rb, line 9
def release_host_reservation(id, options={})
  options.merge!(
    'command' => 'releaseHostReservation', 
    'id' => id  
  )
  request(options)
end
release_public_ip_range(id, options={}) click to toggle source

Releases a Public IP range back to the system pool

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/release_public_ip_range.rb, line 9
def release_public_ip_range(id, options={})
  options.merge!(
    'command' => 'releasePublicIpRange', 
    'id' => id  
  )
  request(options)
end
reload() click to toggle source
# File lib/fog/cloudstack/compute.rb, line 512
def reload
  @connection.reset
end
remove_from_global_load_balancer_rule(id, loadbalancerrulelist, options={}) click to toggle source

Removes a load balancer rule association with global load balancer rule

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/remove_from_global_load_balancer_rule.rb, line 9
def remove_from_global_load_balancer_rule(id, loadbalancerrulelist, options={})
  options.merge!(
    'command' => 'removeFromGlobalLoadBalancerRule', 
    'id' => id, 
    'loadbalancerrulelist' => loadbalancerrulelist  
  )
  request(options)
end
remove_from_load_balancer_rule(id, virtualmachineids, options={}) click to toggle source

Removes a virtual machine or a list of virtual machines from a load balancer rule.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/remove_from_load_balancer_rule.rb, line 9
def remove_from_load_balancer_rule(id, virtualmachineids, options={})
  options.merge!(
    'command' => 'removeFromLoadBalancerRule', 
    'id' => id, 
    'virtualmachineids' => virtualmachineids  
  )
  request(options)
end
remove_ip_from_nic(id, options={}) click to toggle source

Assigns secondary IP to NIC.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/remove_ip_from_nic.rb, line 9
def remove_ip_from_nic(id, options={})
  options.merge!(
    'command' => 'removeIpFromNic', 
    'id' => id  
  )
  request(options)
end
remove_nic_from_virtual_machine(virtualmachineid, nicid, options={}) click to toggle source

Removes VM from specified network by deleting a NIC

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/remove_nic_from_virtual_machine.rb, line 9
def remove_nic_from_virtual_machine(virtualmachineid, nicid, options={})
  options.merge!(
    'command' => 'removeNicFromVirtualMachine', 
    'virtualmachineid' => virtualmachineid, 
    'nicid' => nicid  
  )
  request(options)
end
remove_region(id, options={}) click to toggle source

Removes specified region

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/remove_region.rb, line 9
def remove_region(id, options={})
  options.merge!(
    'command' => 'removeRegion', 
    'id' => id  
  )
  request(options)
end
remove_resource_detail(resourcetype, resourceid, options={}) click to toggle source

Removes detail for the Resource.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/remove_resource_detail.rb, line 9
def remove_resource_detail(resourcetype, resourceid, options={})
  options.merge!(
    'command' => 'removeResourceDetail', 
    'resourcetype' => resourcetype, 
    'resourceid' => resourceid  
  )
  request(options)
end
remove_vmware_dc(zoneid, options={}) click to toggle source

Remove a VMware datacenter from a zone.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/remove_vmware_dc.rb, line 9
def remove_vmware_dc(zoneid, options={})
  options.merge!(
    'command' => 'removeVmwareDc', 
    'zoneid' => zoneid  
  )
  request(options)
end
remove_vpn_user(username, options={}) click to toggle source

Removes vpn user

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/remove_vpn_user.rb, line 9
def remove_vpn_user(username, options={})
  options.merge!(
    'command' => 'removeVpnUser', 
    'username' => username  
  )
  request(options)
end
replace_network_acl_list(aclid, options={}) click to toggle source

Replaces ACL associated with a Network or private gateway

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/replace_network_acl_list.rb, line 9
def replace_network_acl_list(aclid, options={})
  options.merge!(
    'command' => 'replaceNetworkACLList', 
    'aclid' => aclid  
  )
  request(options)
end
request(params) click to toggle source
# File lib/fog/cloudstack/compute.rb, line 541
def request(params)
  params.reject!{|k,v| v.nil?}

  params.merge!('response' => 'json')

  if has_session?
    params, headers = authorize_session(params)
  elsif has_keys?
    params, headers = authorize_api_keys(params)
  end

  response = issue_request(params,headers)
  response = Fog::JSON.decode(response.body) unless response.body.empty?
  response
end
reset_api_limit(options={}) click to toggle source

Reset api count

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/reset_api_limit.rb, line 9
def reset_api_limit(options={})
  options.merge!(
    'command' => 'resetApiLimit'  
  )
  request(options)
end
reset_password_for_virtual_machine(id, options={}) click to toggle source

Resets the password for virtual machine. The virtual machine must be in a “Stopped” state and the template must already support this feature for this command to take effect. [async]

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/reset_password_for_virtual_machine.rb, line 9
def reset_password_for_virtual_machine(id, options={})
  options.merge!(
    'command' => 'resetPasswordForVirtualMachine', 
    'id' => id  
  )
  request(options)
end
reset_ssh_key_for_virtual_machine(id, keypair, options={}) click to toggle source

Resets the SSH Key for virtual machine. The virtual machine must be in a “Stopped” state. [async]

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/reset_ssh_key_for_virtual_machine.rb, line 9
def reset_ssh_key_for_virtual_machine(id, keypair, options={})
  options.merge!(
    'command' => 'resetSSHKeyForVirtualMachine', 
    'id' => id, 
    'keypair' => keypair  
  )
  request(options)
end
reset_vpn_connection(id, options={}) click to toggle source

Reset site to site vpn connection

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/reset_vpn_connection.rb, line 9
def reset_vpn_connection(id, options={})
  options.merge!(
    'command' => 'resetVpnConnection', 
    'id' => id  
  )
  request(options)
end
resize_volume(options={}) click to toggle source

Resizes a volume

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/resize_volume.rb, line 9
def resize_volume(options={})
  options.merge!(
    'command' => 'resizeVolume'  
  )
  request(options)
end
restart_network(id, options={}) click to toggle source

Restarts the network; includes 1) restarting network elements - virtual routers, dhcp servers 2) reapplying all public ips 3) reapplying loadBalancing/portForwarding rules

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/restart_network.rb, line 9
def restart_network(id, options={})
  options.merge!(
    'command' => 'restartNetwork', 
    'id' => id  
  )
  request(options)
end
restart_vpc(id, options={}) click to toggle source

Restarts a VPC

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/restart_vpc.rb, line 9
def restart_vpc(id, options={})
  options.merge!(
    'command' => 'restartVPC', 
    'id' => id  
  )
  request(options)
end
restore_virtual_machine(virtualmachineid, options={}) click to toggle source

Restore a VM to original template/ISO or new template/ISO

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/restore_virtual_machine.rb, line 9
def restore_virtual_machine(virtualmachineid, options={})
  options.merge!(
    'command' => 'restoreVirtualMachine', 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end
revert_to_vm_snapshot(vmsnapshotid, options={}) click to toggle source

Revert VM from a vmsnapshot.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/revert_to_vm_snapshot.rb, line 9
def revert_to_vm_snapshot(vmsnapshotid, options={})
  options.merge!(
    'command' => 'revertToVMSnapshot', 
    'vmsnapshotid' => vmsnapshotid  
  )
  request(options)
end
revoke_security_group_egress(id, options={}) click to toggle source

Deletes a particular egress rule from this security group

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/revoke_security_group_egress.rb, line 9
def revoke_security_group_egress(id, options={})
  options.merge!(
    'command' => 'revokeSecurityGroupEgress', 
    'id' => id  
  )
  request(options)
end
revoke_security_group_ingress(id, options={}) click to toggle source

Deletes a particular ingress rule from this security group

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/revoke_security_group_ingress.rb, line 9
def revoke_security_group_ingress(id, options={})
  options.merge!(
    'command' => 'revokeSecurityGroupIngress', 
    'id' => id  
  )
  request(options)
end
scale_system_vm(id, serviceofferingid, options={}) click to toggle source

Scale the service offering for a system vm (console proxy or secondary storage). The system vm must be in a “Stopped” state for this command to take effect.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/scale_system_vm.rb, line 9
def scale_system_vm(id, serviceofferingid, options={})
  options.merge!(
    'command' => 'scaleSystemVm', 
    'id' => id, 
    'serviceofferingid' => serviceofferingid  
  )
  request(options)
end
scale_virtual_machine(id, serviceofferingid, options={}) click to toggle source

Scales the virtual machine to a new service offering.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/scale_virtual_machine.rb, line 9
def scale_virtual_machine(id, serviceofferingid, options={})
  options.merge!(
    'command' => 'scaleVirtualMachine', 
    'id' => id, 
    'serviceofferingid' => serviceofferingid  
  )
  request(options)
end
start_internal_load_balancer_vm(id, options={}) click to toggle source

Starts an existing internal lb vm.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/start_internal_load_balancer_vm.rb, line 9
def start_internal_load_balancer_vm(id, options={})
  options.merge!(
    'command' => 'startInternalLoadBalancerVM', 
    'id' => id  
  )
  request(options)
end
start_router(id, options={}) click to toggle source

Starts a router.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/start_router.rb, line 9
def start_router(id, options={})
  options.merge!(
    'command' => 'startRouter', 
    'id' => id  
  )
  request(options)
end
start_system_vm(id, options={}) click to toggle source

Starts a system virtual machine.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/start_system_vm.rb, line 9
def start_system_vm(id, options={})
  options.merge!(
    'command' => 'startSystemVm', 
    'id' => id  
  )
  request(options)
end
start_virtual_machine(id, options={}) click to toggle source

Starts a virtual machine.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/start_virtual_machine.rb, line 9
def start_virtual_machine(id, options={})
  options.merge!(
    'command' => 'startVirtualMachine', 
    'id' => id  
  )
  request(options)
end
stop_internal_load_balancer_vm(id, options={}) click to toggle source

Stops an Internal LB vm.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/stop_internal_load_balancer_vm.rb, line 9
def stop_internal_load_balancer_vm(id, options={})
  options.merge!(
    'command' => 'stopInternalLoadBalancerVM', 
    'id' => id  
  )
  request(options)
end
stop_router(id, options={}) click to toggle source

Stops a router.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/stop_router.rb, line 9
def stop_router(id, options={})
  options.merge!(
    'command' => 'stopRouter', 
    'id' => id  
  )
  request(options)
end
stop_system_vm(id, options={}) click to toggle source

Stops a system VM.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/stop_system_vm.rb, line 9
def stop_system_vm(id, options={})
  options.merge!(
    'command' => 'stopSystemVm', 
    'id' => id  
  )
  request(options)
end
stop_virtual_machine(id, options={}) click to toggle source

Stops a virtual machine.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/stop_virtual_machine.rb, line 9
def stop_virtual_machine(id, options={})
  options.merge!(
    'command' => 'stopVirtualMachine', 
    'id' => id  
  )
  request(options)
end
suspend_project(id, options={}) click to toggle source

Suspends a project

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/suspend_project.rb, line 9
def suspend_project(id, options={})
  options.merge!(
    'command' => 'suspendProject', 
    'id' => id  
  )
  request(options)
end
update_account(newname, options={}) click to toggle source

Updates account information for the authenticated user

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_account.rb, line 9
def update_account(newname, options={})
  options.merge!(
    'command' => 'updateAccount', 
    'newname' => newname  
  )
  request(options)
end
update_auto_scale_policy(id, options={}) click to toggle source

Updates an existing autoscale policy.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_auto_scale_policy.rb, line 9
def update_auto_scale_policy(id, options={})
  options.merge!(
    'command' => 'updateAutoScalePolicy', 
    'id' => id  
  )
  request(options)
end
update_auto_scale_vm_group(id, options={}) click to toggle source

Updates an existing autoscale vm group.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_auto_scale_vm_group.rb, line 9
def update_auto_scale_vm_group(id, options={})
  options.merge!(
    'command' => 'updateAutoScaleVmGroup', 
    'id' => id  
  )
  request(options)
end
update_auto_scale_vm_profile(id, options={}) click to toggle source

Updates an existing autoscale vm profile.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_auto_scale_vm_profile.rb, line 9
def update_auto_scale_vm_profile(id, options={})
  options.merge!(
    'command' => 'updateAutoScaleVmProfile', 
    'id' => id  
  )
  request(options)
end
update_cluster(id, options={}) click to toggle source

Updates an existing cluster

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_cluster.rb, line 9
def update_cluster(id, options={})
  options.merge!(
    'command' => 'updateCluster', 
    'id' => id  
  )
  request(options)
end
update_configuration(name, options={}) click to toggle source

Updates a configuration.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_configuration.rb, line 9
def update_configuration(name, options={})
  options.merge!(
    'command' => 'updateConfiguration', 
    'name' => name  
  )
  request(options)
end
update_default_nic_for_virtual_machine(nicid, virtualmachineid, options={}) click to toggle source

Changes the default NIC on a VM

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_default_nic_for_virtual_machine.rb, line 9
def update_default_nic_for_virtual_machine(nicid, virtualmachineid, options={})
  options.merge!(
    'command' => 'updateDefaultNicForVirtualMachine', 
    'nicid' => nicid, 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end
update_disk_offering(id, options={}) click to toggle source

Updates a disk offering.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_disk_offering.rb, line 9
def update_disk_offering(id, options={})
  options.merge!(
    'command' => 'updateDiskOffering', 
    'id' => id  
  )
  request(options)
end
update_domain(id, options={}) click to toggle source

Updates a domain with a new name

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_domain.rb, line 9
def update_domain(id, options={})
  options.merge!(
    'command' => 'updateDomain', 
    'id' => id  
  )
  request(options)
end
update_global_load_balancer_rule(id, options={}) click to toggle source

update global load balancer rules.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_global_load_balancer_rule.rb, line 9
def update_global_load_balancer_rule(id, options={})
  options.merge!(
    'command' => 'updateGlobalLoadBalancerRule', 
    'id' => id  
  )
  request(options)
end
update_host(id, options={}) click to toggle source

Updates a host.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_host.rb, line 9
def update_host(id, options={})
  options.merge!(
    'command' => 'updateHost', 
    'id' => id  
  )
  request(options)
end
update_host_password(password, username, options={}) click to toggle source

Update password of a host/pool on management server.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_host_password.rb, line 9
def update_host_password(password, username, options={})
  options.merge!(
    'command' => 'updateHostPassword', 
    'password' => password, 
    'username' => username  
  )
  request(options)
end
update_hypervisor_capabilities(options={}) click to toggle source

Updates a hypervisor capabilities.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_hypervisor_capabilities.rb, line 9
def update_hypervisor_capabilities(options={})
  options.merge!(
    'command' => 'updateHypervisorCapabilities'  
  )
  request(options)
end
update_instance_group(id, options={}) click to toggle source

Updates a vm group

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_instance_group.rb, line 9
def update_instance_group(id, options={})
  options.merge!(
    'command' => 'updateInstanceGroup', 
    'id' => id  
  )
  request(options)
end
update_iso(id, options={}) click to toggle source

Updates an ISO file.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_iso.rb, line 9
def update_iso(id, options={})
  options.merge!(
    'command' => 'updateIso', 
    'id' => id  
  )
  request(options)
end
update_iso_permissions(id, options={}) click to toggle source

Updates iso permissions

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_iso_permissions.rb, line 9
def update_iso_permissions(id, options={})
  options.merge!(
    'command' => 'updateIsoPermissions', 
    'id' => id  
  )
  request(options)
end
update_load_balancer_rule(id, options={}) click to toggle source

Updates load balancer

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_load_balancer_rule.rb, line 9
def update_load_balancer_rule(id, options={})
  options.merge!(
    'command' => 'updateLoadBalancerRule', 
    'id' => id  
  )
  request(options)
end
update_network(id, options={}) click to toggle source

Updates a network

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_network.rb, line 9
def update_network(id, options={})
  options.merge!(
    'command' => 'updateNetwork', 
    'id' => id  
  )
  request(options)
end
update_network_acl_item(id, options={}) click to toggle source

Updates ACL Item with specified Id

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_network_acl_item.rb, line 9
def update_network_acl_item(id, options={})
  options.merge!(
    'command' => 'updateNetworkACLItem', 
    'id' => id  
  )
  request(options)
end
update_network_offering(options={}) click to toggle source

Updates a network offering.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_network_offering.rb, line 9
def update_network_offering(options={})
  options.merge!(
    'command' => 'updateNetworkOffering'  
  )
  request(options)
end
update_network_service_provider(id, options={}) click to toggle source

Updates a network serviceProvider of a physical network

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_network_service_provider.rb, line 9
def update_network_service_provider(id, options={})
  options.merge!(
    'command' => 'updateNetworkServiceProvider', 
    'id' => id  
  )
  request(options)
end
update_physical_network(id, options={}) click to toggle source

Updates a physical network

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_physical_network.rb, line 9
def update_physical_network(id, options={})
  options.merge!(
    'command' => 'updatePhysicalNetwork', 
    'id' => id  
  )
  request(options)
end
update_pod(id, options={}) click to toggle source

Updates a Pod.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_pod.rb, line 9
def update_pod(id, options={})
  options.merge!(
    'command' => 'updatePod', 
    'id' => id  
  )
  request(options)
end
update_port_forwarding_rule(publicport, privateport, protocol, ipaddressid, options={}) click to toggle source

Updates a port forwarding rule. Only the private port and the virtual machine can be updated.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_port_forwarding_rule.rb, line 9
def update_port_forwarding_rule(publicport, privateport, protocol, ipaddressid, options={})
  options.merge!(
    'command' => 'updatePortForwardingRule', 
    'publicport' => publicport, 
    'privateport' => privateport, 
    'protocol' => protocol, 
    'ipaddressid' => ipaddressid  
  )
  request(options)
end
update_project(id, options={}) click to toggle source

Updates a project

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_project.rb, line 9
def update_project(id, options={})
  options.merge!(
    'command' => 'updateProject', 
    'id' => id  
  )
  request(options)
end
update_project_invitation(projectid, options={}) click to toggle source

Accepts or declines project invitation

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_project_invitation.rb, line 9
def update_project_invitation(projectid, options={})
  options.merge!(
    'command' => 'updateProjectInvitation', 
    'projectid' => projectid  
  )
  request(options)
end
update_region(id, options={}) click to toggle source

Updates a region

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_region.rb, line 9
def update_region(id, options={})
  options.merge!(
    'command' => 'updateRegion', 
    'id' => id  
  )
  request(options)
end
update_resource_count(domainid, options={}) click to toggle source

Recalculate and update resource count for an account or domain.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_resource_count.rb, line 9
def update_resource_count(domainid, options={})
  options.merge!(
    'command' => 'updateResourceCount', 
    'domainid' => domainid  
  )
  request(options)
end
update_resource_limit(resourcetype, options={}) click to toggle source

Updates resource limits for an account or domain.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_resource_limit.rb, line 9
def update_resource_limit(resourcetype, options={})
  options.merge!(
    'command' => 'updateResourceLimit', 
    'resourcetype' => resourcetype  
  )
  request(options)
end
update_service_offering(id, options={}) click to toggle source

Updates a service offering.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_service_offering.rb, line 9
def update_service_offering(id, options={})
  options.merge!(
    'command' => 'updateServiceOffering', 
    'id' => id  
  )
  request(options)
end
update_storage_network_ip_range(id, options={}) click to toggle source

Update a Storage network IP range, only allowed when no IPs in this range have been allocated.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_storage_network_ip_range.rb, line 9
def update_storage_network_ip_range(id, options={})
  options.merge!(
    'command' => 'updateStorageNetworkIpRange', 
    'id' => id  
  )
  request(options)
end
update_storage_pool(id, options={}) click to toggle source

Updates a storage pool.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_storage_pool.rb, line 9
def update_storage_pool(id, options={})
  options.merge!(
    'command' => 'updateStoragePool', 
    'id' => id  
  )
  request(options)
end
update_template(id, options={}) click to toggle source

Updates attributes of a template.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_template.rb, line 9
def update_template(id, options={})
  options.merge!(
    'command' => 'updateTemplate', 
    'id' => id  
  )
  request(options)
end
update_template_permissions(id, options={}) click to toggle source

Updates a template visibility permissions. A public template is visible to all accounts within the same domain. A private template is visible only to the owner of the template. A priviledged template is a private template with account permissions added. Only accounts specified under the template permissions are visible to them.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_template_permissions.rb, line 9
def update_template_permissions(id, options={})
  options.merge!(
    'command' => 'updateTemplatePermissions', 
    'id' => id  
  )
  request(options)
end
update_traffic_type(id, options={}) click to toggle source

Updates traffic type of a physical network

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_traffic_type.rb, line 9
def update_traffic_type(id, options={})
  options.merge!(
    'command' => 'updateTrafficType', 
    'id' => id  
  )
  request(options)
end
update_user(id, options={}) click to toggle source

Updates a user account

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_user.rb, line 9
def update_user(id, options={})
  options.merge!(
    'command' => 'updateUser', 
    'id' => id  
  )
  request(options)
end
update_virtual_machine(id, options={}) click to toggle source

Updates properties of a virtual machine. The VM has to be stopped and restarted for the new properties to take effect. UpdateVirtualMachine does not first check whether the VM is stopped. Therefore, stop the VM manually before issuing this call.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_virtual_machine.rb, line 9
def update_virtual_machine(id, options={})
  options.merge!(
    'command' => 'updateVirtualMachine', 
    'id' => id  
  )
  request(options)
end
update_vm_affinity_group(id, options={}) click to toggle source

Updates the affinity/anti-affinity group associations of a virtual machine. The VM has to be stopped and restarted for the new properties to take effect.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_vm_affinity_group.rb, line 9
def update_vm_affinity_group(id, options={})
  options.merge!(
    'command' => 'updateVMAffinityGroup', 
    'id' => id  
  )
  request(options)
end
update_volume(id, path, options={}) click to toggle source

Updates the volume.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_volume.rb, line 9
def update_volume(id, path, options={})
  options.merge!(
    'command' => 'updateVolume', 
    'id' => id, 
    'path' => path  
  )
  request(options)
end
update_vpc(id, name, options={}) click to toggle source

Updates a VPC

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_vpc.rb, line 9
def update_vpc(id, name, options={})
  options.merge!(
    'command' => 'updateVPC', 
    'id' => id, 
    'name' => name  
  )
  request(options)
end
update_vpcoffering(id, options={}) click to toggle source

Updates VPC offering

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_vpcoffering.rb, line 9
def update_vpcoffering(id, options={})
  options.merge!(
    'command' => 'updateVPCOffering', 
    'id' => id  
  )
  request(options)
end
update_vpn_customer_gateway(id, esppolicy, ikepolicy, cidrlist, gateway, ipsecpsk, options={}) click to toggle source

Update site to site vpn customer gateway

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_vpn_customer_gateway.rb, line 9
def update_vpn_customer_gateway(id, esppolicy, ikepolicy, cidrlist, gateway, ipsecpsk, options={})
  options.merge!(
    'command' => 'updateVpnCustomerGateway', 
    'id' => id, 
    'esppolicy' => esppolicy, 
    'ikepolicy' => ikepolicy, 
    'cidrlist' => cidrlist, 
    'gateway' => gateway, 
    'ipsecpsk' => ipsecpsk  
  )
  request(options)
end
update_zone(id, options={}) click to toggle source

Updates a Zone.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/update_zone.rb, line 9
def update_zone(id, options={})
  options.merge!(
    'command' => 'updateZone', 
    'id' => id  
  )
  request(options)
end
upload_custom_certificate(domainsuffix, certificate, options={}) click to toggle source

Uploads a custom certificate for the console proxy VMs to use for SSL. Can be used to upload a single certificate signed by a known CA. Can also be used, through multiple calls, to upload a chain of certificates from CA to the custom certificate itself.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/upload_custom_certificate.rb, line 9
def upload_custom_certificate(domainsuffix, certificate, options={})
  options.merge!(
    'command' => 'uploadCustomCertificate', 
    'domainsuffix' => domainsuffix, 
    'certificate' => certificate  
  )
  request(options)
end
upload_volume(zoneid, name, url, format, options={}) click to toggle source

Uploads a data disk.

CloudStack API Reference

# File lib/fog/cloudstack/requests/compute/upload_volume.rb, line 9
def upload_volume(zoneid, name, url, format, options={})
  options.merge!(
    'command' => 'uploadVolume', 
    'zoneid' => zoneid, 
    'name' => name, 
    'url' => url, 
    'format' => format  
  )
  request(options)
end

Private Instance Methods

authorize_api_keys(params) click to toggle source
# File lib/fog/cloudstack/compute.rb, line 575
def authorize_api_keys(params)
  headers = {}
  # merge the api key into the params
  params.merge!('apiKey' => @cloudstack_api_key)
  # sign the request parameters
  signature = Fog::Cloudstack.signed_params(@cloudstack_secret_access_key,params)
  # merge signature into request param
  params.merge!({'signature' => signature})

  return params, headers
end
authorize_session(params) click to toggle source
# File lib/fog/cloudstack/compute.rb, line 566
def authorize_session(params)
  # set the session id cookie for the request
  headers = {'Cookie' => "JSESSIONID=#{@cloudstack_session_id};"}
  # set the sesion key for the request, params are not signed using session auth
  params.merge!('sessionkey' => @cloudstack_session_key)

  return params, headers
end
has_keys?() click to toggle source
# File lib/fog/cloudstack/compute.rb, line 562
def has_keys?
  @cloudstack_api_key && @cloudstack_secret_access_key
end
has_session?() click to toggle source
# File lib/fog/cloudstack/compute.rb, line 558
def has_session?
  @cloudstack_session_id && @cloudstack_session_key
end
issue_request(params={},headers={},method='GET',expects=200) click to toggle source
# File lib/fog/cloudstack/compute.rb, line 587
def issue_request(params={},headers={},method='GET',expects=200)
  begin
    @connection.request({
      :query => params,
      :headers => headers,
      :method => method,
      :expects => expects
    })

  rescue Excon::Errors::HTTPStatusError => error
    error_response = Fog::JSON.decode(error.response.body)

    error_code = error_response.values.first['errorcode']
    error_text = error_response.values.first['errortext']

    case error_code
    when 401
      raise Fog::Compute::Cloudstack::Unauthorized, error_text
    when 431
      raise Fog::Compute::Cloudstack::BadRequest, error_text
    else
      raise Fog::Compute::Cloudstack::Error, error_text
    end
  end

end