class Fog::Compute::Cloudstack::Real
Public Class Methods
# 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
Creates an account.
# File lib/fog/cloudstack/requests/compute/acquire_ip_address.rb, line 8 def acquire_ip_address(options={}) options.merge!( 'command' => 'associateIpAddress' ) request(options) end
Activates a project
# 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
Adds acoount to a project
# 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
adds a baremetal dhcp server
# 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 a baremetal host
# 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 a baremetal pxe server
# 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 a baremetal ping pxe server
# 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
Adds a Cisco Asa 1000v appliance
# 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
Adds a Cisco Vnmc Controller
# 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
Adds a new cluster
# 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
Adds an external firewall appliance
# 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
Adds F5 external load balancer appliance.
# 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
Adds a F5 BigIP load balancer device
# 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
Adds a new host.
# 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
Adds backup image store.
# 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
Assigns secondary IP to NIC
# 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
Adds a netscaler load balancer device
# 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
Adds a network device of one of the following types: ExternalDhcp, ExternalFirewall, ExternalLoadBalancer, PxeServer
# File lib/fog/cloudstack/requests/compute/add_network_device.rb, line 9 def add_network_device(options={}) options.merge!( 'command' => 'addNetworkDevice' ) request(options) end
Adds a network serviceProvider to a physical network
# 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
Adds VM to specified network by creating a NIC
# 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
Adds a Nicira NVP device
# 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
Adds a Region
# 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
Adds detail for the Resource.
# 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
Adds S3
# 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
Adds secondary storage.
# 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
Adds a SRX firewall device
# 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
Adds Swift.
# 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
Adds Traffic Monitor Host for Direct Network Usage
# 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
Adds traffic type to a physical network
# 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
Adds a Ucs manager
# 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
Adds a VMware datacenter to specified zone
# 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
Adds vpn users
# 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 one or more alerts.
# File lib/fog/cloudstack/requests/compute/archive_alerts.rb, line 9 def archive_alerts(options={}) options.merge!( 'command' => 'archiveAlerts' ) request(options) end
Archive one or more events.
# File lib/fog/cloudstack/requests/compute/archive_events.rb, line 9 def archive_events(options={}) options.merge!( 'command' => 'archiveEvents' ) request(options) end
Assign load balancer rule or list of load balancer rules to a global load balancer rules.
# 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
Assigns virtual machine or a list of virtual machines to a load balancer rule.
# 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
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.
# 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
Acquires and associates a public IP to an account.
# 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 a LUN with a guest IQN
# 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 a profile to a blade
# 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
Attaches an ISO to a virtual machine.
# 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
Attaches a disk volume to a virtual machine.
# 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
Cancels host maintenance.
# 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
Cancels maintenance for primary storage
# 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
Upgrades domain router to a new service offering
# 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
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.
# 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
Changes the service offering for a virtual machine. The virtual machine must be in a “Stopped” state for this command to take effect.
# 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
Cleanups VM reservations in the database.
# File lib/fog/cloudstack/requests/compute/clean_vmreservations.rb, line 9 def clean_vmreservations(options={}) options.merge!( 'command' => 'cleanVMReservations' ) request(options) end
configures a F5 load balancer device
# 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
Configures an Internal Load Balancer element.
# 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
configures a netscaler load balancer device
# 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
Configures a SRX firewall device
# 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
Configures a virtual router element.
# 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
Copies an iso from one zone to another.
# 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
Copies a template from one zone to another.
# 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
Creates an account
# 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
Creates an affinity/anti-affinity group
# 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
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.
# 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
Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.
# 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
Creates a profile that contains information about the virtual machine which will be provisioned automatically by autoscale feature.
# 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
Creates a condition
# 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
Adds metric counter
# 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
Creates a disk offering.
# 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
Creates a domain
# 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
Creates a egress firewall rule for a given network
# 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
Creates a firewall rule for a given ip address
# 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
Creates a global load balancer rule
# 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
Creates a vm group
# 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 an Internal Load Balancer element.
# 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
Creates an ip forwarding rule
# 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
Creates a Load Balancer healthcheck policy
# 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
Creates a Load Balancer stickiness policy
# 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
Creates a Load Balancer
# 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
Creates a load balancer rule
# 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 a LUN from a pool
# 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
Creates a network
# 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
Creates a ACL rule in the given network (the network has to belong to VPC)
# 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
Creates a Network ACL for the given VPC
# 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
Creates a network offering.
# 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
Creates a physical network
# 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
Creates a new Pod.
# 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 a pool
# 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
Creates a port forwarding rule
# 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
adds a range of portable public IP's to a region
# 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
Creates a private gateway
# 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
Creates a project
# 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
Creates a l2tp/ipsec remote access vpn
# 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.
# 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
Creates a security group
# 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
Creates a service offering.
# 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
Creates an instant snapshot of a volume.
# 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
Creates a snapshot policy for the account.
# 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 a new keypair and returns the private key
# 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
Creates a static route
# 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
Creates a Storage network IP range.
# 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
Creates a storage pool.
# 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
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.
# 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
Creates a user for an account that already exists
# 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 a virtual router element.
# 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
Creates a VLAN IP range.
# 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
Creates snapshot for a vm.
# 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
Creates a disk volume from a disk offering. This disk volume must still be attached to a virtual machine to make use of it.
# 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 a volume
# 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
Creates a VPC
# 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
Creates VPC offering
# 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 site to site vpn connection
# 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
Creates site to site vpn customer gateway
# 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
Creates site to site vpn local gateway
# 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
Creates a Zone.
# 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 an existing cluster
# 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
Dedicates a guest vlan range to an account
# 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
Dedicates a host.
# 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
Dedicates a Pod.
# 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
Dedicates a Public IP range to an account
# 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
Dedicates a zones.
# 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
Deletes a account, and all users associated with this account
# 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
Deletes account from the project
# 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
Deletes affinity group
# 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 one or more alerts.
# File lib/fog/cloudstack/requests/compute/delete_alerts.rb, line 9 def delete_alerts(options={}) options.merge!( 'command' => 'deleteAlerts' ) request(options) end
Deletes a autoscale policy.
# 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
Deletes a autoscale vm group.
# 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
Deletes a autoscale vm profile.
# 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
Deletes a Cisco ASA 1000v appliance
# 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 a Cisco Nexus VSM device
# 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
Deletes a Cisco Vnmc controller
# 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
Deletes a cluster.
# 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
Removes a condition
# 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
Deletes a counter
# 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
Updates a disk offering.
# 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
Deletes a specified domain
# 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
Deletes an ggress firewall rule
# 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 one or more events.
# File lib/fog/cloudstack/requests/compute/delete_events.rb, line 9 def delete_events(options={}) options.merge!( 'command' => 'deleteEvents' ) request(options) end
Deletes an external firewall appliance.
# 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
Deletes a F5 external load balancer appliance added in a zone.
# 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 a F5 load balancer device
# 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
Deletes a firewall rule
# 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
Deletes a global load balancer rule.
# 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
Deletes a host.
# 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
Deletes an image store .
# 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
Deletes a vm group
# 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
Deletes an ip forwarding rule
# 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
Deletes an ISO file.
# 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
Deletes a load balancer HealthCheck policy.
# 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
Deletes a LB stickiness policy.
# 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
Deletes a load balancer
# 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
Deletes a load balancer rule.
# 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 a netscaler load balancer device
# 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
Deletes a network
# 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
Deletes a Network ACL
# 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
Deletes a Network ACL
# 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
Deletes network device.
# 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
Deletes a network offering.
# 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
Deletes a Network Service Provider.
# 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 a nicira nvp device
# 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
Deletes a Physical Network.
# 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
Deletes a Pod.
# 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 a pool
# 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
Deletes a port forwarding rule
# 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
deletes a range of portable public IP's associated with a region
# 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
Deletes a Private gateway
# 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
Deletes a project
# 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
Accepts or declines project invitation
# 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
Destroys a l2tp/ipsec remote access vpn
# 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
Deletes a secondary staging store .
# 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
Deletes security group
# File lib/fog/cloudstack/requests/compute/delete_security_group.rb, line 9 def delete_security_group(options={}) options.merge!( 'command' => 'deleteSecurityGroup' ) request(options) end
Deletes a service offering.
# 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
Deletes a snapshot of a disk volume.
# 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
Deletes snapshot policies for the account.
# 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 a SRX firewall device
# 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
Deletes a keypair by name
# 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
Deletes a static route
# 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
Deletes a storage network IP Range.
# 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
Deletes a storage pool.
# 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
Deletes a template from the system. All virtual machines using the deleted template will not be affected.
# 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
Deletes an traffic monitor host.
# 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
Deletes traffic type of a physical network
# 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 a Ucs manager
# 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
Deletes a user for an account
# 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
Creates a VLAN IP range.
# 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
Deletes a vmsnapshot.
# 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
Deletes a detached disk volume.
# 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
Deletes a VPC
# 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
Deletes VPC offering
# 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 site to site vpn connection
# 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 site to site vpn customer gateway
# 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 site to site vpn gateway
# 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
Deletes a Zone.
# 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
Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.
# 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 a LUN
# 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
Destroys a router.
# 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
Destroyes a system virtual machine.
# 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
Destroys a virtual machine. Once destroyed, only the administrator can recover it.
# 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 a Volume
# 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
Detaches any ISO file (if any) currently attached to a virtual machine.
# 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
Detaches a disk volume from a virtual machine.
# File lib/fog/cloudstack/requests/compute/detach_volume.rb, line 9 def detach_volume(options={}) options.merge!( 'command' => 'detachVolume' ) request(options) end
Disables an account
# 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
Disables an AutoScale Vm Group
# 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 a Cisco Nexus VSM device
# 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
Disables static rule for given ip address
# 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
Disables a user account
# 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
Disassociates an ip address from the account.
# 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 a profile from a blade
# 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 a LUN
# 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
Enables an account
# File lib/fog/cloudstack/requests/compute/enable_account.rb, line 9 def enable_account(options={}) options.merge!( 'command' => 'enableAccount' ) request(options) end
Enables an AutoScale Vm Group
# 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 a Cisco Nexus VSM device
# 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
Enables static nat for given ip address
# 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
Puts storage pool into maintenance state
# 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
Enables a user account
# 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
Extracts an ISO
# 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
Extracts a template
# 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
Extracts volume
# 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 suitable for migrating a virtual machine.
# 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
Lists storage pools available for migration of a volume.
# 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
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
# 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 count for the caller
# File lib/fog/cloudstack/requests/compute/get_api_limit.rb, line 9 def get_api_limit(options={}) options.merge!( 'command' => 'getApiLimit' ) request(options) end
Retrieves a cloud identifier.
# 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
Find user account by API key
# 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
Returns an encrypted password for the VM
# 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
create a profile of template and associate to a blade
# 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
Configure the LDAP context for this site.
# File lib/fog/cloudstack/requests/compute/ldap_config.rb, line 9 def ldap_config(options={}) options.merge!( 'command' => 'ldapConfig' ) request(options) end
Remove the LDAP context for this site.
# File lib/fog/cloudstack/requests/compute/ldap_remove.rb, line 9 def ldap_remove(options={}) options.merge!( 'command' => 'ldapRemove' ) request(options) end
Lists accounts and provides detailed account information for listed accounts
# File lib/fog/cloudstack/requests/compute/list_accounts.rb, line 9 def list_accounts(options={}) options.merge!( 'command' => 'listAccounts' ) request(options) end
Lists affinity group types available
# 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
Lists affinity groups
# File lib/fog/cloudstack/requests/compute/list_affinity_groups.rb, line 9 def list_affinity_groups(options={}) options.merge!( 'command' => 'listAffinityGroups' ) request(options) end
Lists all alerts.
# File lib/fog/cloudstack/requests/compute/list_alerts.rb, line 9 def list_alerts(options={}) options.merge!( 'command' => 'listAlerts' ) request(options) end
lists all available apis on the server, provided by the Api Discovery plugin
# File lib/fog/cloudstack/requests/compute/list_apis.rb, line 9 def list_apis(options={}) options.merge!( 'command' => 'listApis' ) request(options) end
Lists all pending asynchronous jobs for the account.
# File lib/fog/cloudstack/requests/compute/list_async_jobs.rb, line 9 def list_async_jobs(options={}) options.merge!( 'command' => 'listAsyncJobs' ) request(options) end
Lists autoscale policies.
# 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
Lists autoscale vm groups.
# 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
Lists autoscale vm profiles.
# 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 servers
# 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 server
# 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
Lists capabilities
# File lib/fog/cloudstack/requests/compute/list_capabilities.rb, line 9 def list_capabilities(options={}) options.merge!( 'command' => 'listCapabilities' ) request(options) end
Lists all the system wide capacities.
# File lib/fog/cloudstack/requests/compute/list_capacity.rb, line 9 def list_capacity(options={}) options.merge!( 'command' => 'listCapacity' ) request(options) end
Lists Cisco ASA 1000v appliances
# 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
Retrieves a Cisco Nexus 1000v Virtual Switch Manager device associated with a Cluster
# 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
Lists Cisco VNMC controllers
# 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
Lists clusters.
# File lib/fog/cloudstack/requests/compute/list_clusters.rb, line 9 def list_clusters(options={}) options.merge!( 'command' => 'listClusters' ) request(options) end
List Conditions for the specific user
# File lib/fog/cloudstack/requests/compute/list_conditions.rb, line 9 def list_conditions(options={}) options.merge!( 'command' => 'listConditions' ) request(options) end
Lists all configurations.
# File lib/fog/cloudstack/requests/compute/list_configurations.rb, line 9 def list_configurations(options={}) options.merge!( 'command' => 'listConfigurations' ) request(options) end
List the counters
# File lib/fog/cloudstack/requests/compute/list_counters.rb, line 9 def list_counters(options={}) options.merge!( 'command' => 'listCounters' ) request(options) end
Lists dedicated clusters.
# File lib/fog/cloudstack/requests/compute/list_dedicated_clusters.rb, line 9 def list_dedicated_clusters(options={}) options.merge!( 'command' => 'listDedicatedClusters' ) request(options) end
Lists dedicated guest vlan ranges
# 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
Lists dedicated hosts.
# File lib/fog/cloudstack/requests/compute/list_dedicated_hosts.rb, line 9 def list_dedicated_hosts(options={}) options.merge!( 'command' => 'listDedicatedHosts' ) request(options) end
Lists dedicated pods.
# 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.
# File lib/fog/cloudstack/requests/compute/list_dedicated_zones.rb, line 9 def list_dedicated_zones(options={}) options.merge!( 'command' => 'listDedicatedZones' ) request(options) end
Lists all DeploymentPlanners available.
# File lib/fog/cloudstack/requests/compute/list_deployment_planners.rb, line 9 def list_deployment_planners(options={}) options.merge!( 'command' => 'listDeploymentPlanners' ) request(options) end
Lists all available disk offerings.
# File lib/fog/cloudstack/requests/compute/list_disk_offerings.rb, line 9 def list_disk_offerings(options={}) options.merge!( 'command' => 'listDiskOfferings' ) request(options) end
Lists all children domains belonging to a specified domain
# File lib/fog/cloudstack/requests/compute/list_domain_children.rb, line 9 def list_domain_children(options={}) options.merge!( 'command' => 'listDomainChildren' ) request(options) end
Lists domains and provides detailed information for listed domains
# File lib/fog/cloudstack/requests/compute/list_domains.rb, line 9 def list_domains(options={}) options.merge!( 'command' => 'listDomains' ) request(options) end
Lists all egress firewall rules for network id.
# 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
# File lib/fog/cloudstack/requests/compute/list_event_types.rb, line 9 def list_event_types(options={}) options.merge!( 'command' => 'listEventTypes' ) request(options) end
A command to list events.
# File lib/fog/cloudstack/requests/compute/list_events.rb, line 9 def list_events(options={}) options.merge!( 'command' => 'listEvents' ) request(options) end
List external firewall appliances.
# 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
Lists F5 external load balancer appliances added in a zone.
# 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
lists network that are using a F5 load balancer device
# 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
lists F5 load balancer devices
# 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
Lists all firewall rules for an IP address.
# File lib/fog/cloudstack/requests/compute/list_firewall_rules.rb, line 9 def list_firewall_rules(options={}) options.merge!( 'command' => 'listFirewallRules' ) request(options) end
Lists load balancer rules.
# 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
Lists hosts.
# File lib/fog/cloudstack/requests/compute/list_hosts.rb, line 9 def list_hosts(options={}) options.merge!( 'command' => 'listHosts' ) request(options) end
Lists all hypervisor capabilities.
# 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
# File lib/fog/cloudstack/requests/compute/list_hypervisors.rb, line 9 def list_hypervisors(options={}) options.merge!( 'command' => 'listHypervisors' ) request(options) end
Lists image stores.
# File lib/fog/cloudstack/requests/compute/list_image_stores.rb, line 9 def list_image_stores(options={}) options.merge!( 'command' => 'listImageStores' ) request(options) end
Lists vm groups
# File lib/fog/cloudstack/requests/compute/list_instance_groups.rb, line 9 def list_instance_groups(options={}) options.merge!( 'command' => 'listInstanceGroups' ) request(options) end
Lists all available Internal Load Balancer elements.
# 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 LB VMs.
# 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 the ip forwarding rules
# 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 visibility and all accounts that have permissions to view this iso.
# 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
Lists all available ISO files.
# File lib/fog/cloudstack/requests/compute/list_isos.rb, line 9 def list_isos(options={}) options.merge!( 'command' => 'listIsos' ) request(options) end
Lists load balancer HealthCheck policies.
# 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
Lists LBStickiness policies.
# 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 all virtual machine instances that are assigned to a load balancer rule.
# 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
Lists load balancer rules.
# 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
Lists Load Balancers
# 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 LUN
# 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
lists network that are using a netscaler load balancer device
# 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
lists netscaler load balancer devices
# 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
Lists all network ACLs
# 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
Lists all network ACL items
# 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 devices
# File lib/fog/cloudstack/requests/compute/list_network_device.rb, line 9 def list_network_device(options={}) options.merge!( 'command' => 'listNetworkDevice' ) request(options) end
Lists supported methods of network isolation
# 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
Lists all available network offerings.
# File lib/fog/cloudstack/requests/compute/list_network_offerings.rb, line 9 def list_network_offerings(options={}) options.merge!( 'command' => 'listNetworkOfferings' ) request(options) end
Lists network serviceproviders for a given physical network.
# 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
Lists all available networks.
# File lib/fog/cloudstack/requests/compute/list_networks.rb, line 9 def list_networks(options={}) options.merge!( 'command' => 'listNetworks' ) request(options) end
lists network that are using a nicira nvp device
# 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
Lists Nicira NVP devices
# 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 the vm nics IP to NIC
# 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
Lists all supported OS categories for this cloud.
# File lib/fog/cloudstack/requests/compute/list_os_categories.rb, line 9 def list_os_categories(options={}) options.merge!( 'command' => 'listOsCategories' ) request(options) end
Lists all supported OS types for this cloud.
# File lib/fog/cloudstack/requests/compute/list_os_types.rb, line 9 def list_os_types(options={}) options.merge!( 'command' => 'listOsTypes' ) request(options) end
Lists physical networks
# File lib/fog/cloudstack/requests/compute/list_physical_networks.rb, line 9 def list_physical_networks(options={}) options.merge!( 'command' => 'listPhysicalNetworks' ) request(options) end
Lists all Pods.
# File lib/fog/cloudstack/requests/compute/list_pods.rb, line 9 def list_pods(options={}) options.merge!( 'command' => 'listPods' ) request(options) end
List Pool
# File lib/fog/cloudstack/requests/compute/list_pools.rb, line 9 def list_pools(options={}) options.merge!( 'command' => 'listPools' ) request(options) end
Lists all port forwarding rules for an IP address.
# 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
# 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
# File lib/fog/cloudstack/requests/compute/list_private_gateways.rb, line 9 def list_private_gateways(options={}) options.merge!( 'command' => 'listPrivateGateways' ) request(options) end
Lists project's accounts
# 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
Lists projects and provides detailed information for listed projects
# File lib/fog/cloudstack/requests/compute/list_project_invitations.rb, line 9 def list_project_invitations(options={}) options.merge!( 'command' => 'listProjectInvitations' ) request(options) end
Lists projects and provides detailed information for listed projects
# File lib/fog/cloudstack/requests/compute/list_projects.rb, line 9 def list_projects(options={}) options.merge!( 'command' => 'listProjects' ) request(options) end
Lists all public ip addresses
# 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
Lists Regions
# File lib/fog/cloudstack/requests/compute/list_regions.rb, line 9 def list_regions(options={}) options.merge!( 'command' => 'listRegions' ) request(options) end
Lists remote access vpns
# 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 detail(s)
# File lib/fog/cloudstack/requests/compute/list_resource_details.rb, line 9 def list_resource_details(options={}) options.merge!( 'command' => 'listResourceDetails' ) request(options) end
Lists resource limits.
# 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.
# File lib/fog/cloudstack/requests/compute/list_routers.rb, line 9 def list_routers(options={}) options.merge!( 'command' => 'listRouters' ) request(options) end
Lists S3s
# File lib/fog/cloudstack/requests/compute/list_s3s.rb, line 9 def list_s3s(options={}) options.merge!( 'command' => 'listS3s' ) request(options) end
Lists secondary staging stores.
# 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
Lists security groups
# File lib/fog/cloudstack/requests/compute/list_security_groups.rb, line 9 def list_security_groups(options={}) options.merge!( 'command' => 'listSecurityGroups' ) request(options) end
Lists all available service offerings.
# File lib/fog/cloudstack/requests/compute/list_service_offerings.rb, line 9 def list_service_offerings(options={}) options.merge!( 'command' => 'listServiceOfferings' ) request(options) end
Lists snapshot policies.
# 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
Lists all available snapshots for the account.
# File lib/fog/cloudstack/requests/compute/list_snapshots.rb, line 9 def list_snapshots(options={}) options.merge!( 'command' => 'listSnapshots' ) request(options) end
lists network that are using SRX firewall device
# 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
lists SRX firewall devices in a physical network
# 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 registered keypairs
# 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
Lists all static routes
# 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 a storage network IP range.
# 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
Lists storage pools.
# File lib/fog/cloudstack/requests/compute/list_storage_pools.rb, line 9 def list_storage_pools(options={}) options.merge!( 'command' => 'listStoragePools' ) request(options) end
Lists storage providers.
# 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
Lists all network services provided by CloudStack or for the given Provider.
# 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 Swift.
# File lib/fog/cloudstack/requests/compute/list_swifts.rb, line 9 def list_swifts(options={}) options.merge!( 'command' => 'listSwifts' ) request(options) end
List system virtual machines.
# 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 template visibility and all accounts that have permissions to view this template.
# 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 all public, private, and privileged templates.
# 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 monitor Hosts.
# 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
Lists implementors of implementor of a network traffic type or implementors of all network traffic types
# 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
Lists traffic types of a given physical network.
# 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
# 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 manager
# 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 profile in ucs manager
# 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 templates in ucs manager
# 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
Lists usage records for accounts
# 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
# File lib/fog/cloudstack/requests/compute/list_usage_types.rb, line 9 def list_usage_types(options={}) options.merge!( 'command' => 'listUsageTypes' ) request(options) end
Lists user accounts
# File lib/fog/cloudstack/requests/compute/list_users.rb, line 9 def list_users(options={}) options.merge!( 'command' => 'listUsers' ) request(options) end
List the virtual machines owned by the account.
# File lib/fog/cloudstack/requests/compute/list_virtual_machines.rb, line 9 def list_virtual_machines(options={}) options.merge!( 'command' => 'listVirtualMachines' ) request(options) end
Lists all available virtual router elements.
# 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
Lists all VLAN IP ranges.
# 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 virtual machine snapshot by conditions
# File lib/fog/cloudstack/requests/compute/list_vm_snapshot.rb, line 9 def list_vm_snapshot(options={}) options.merge!( 'command' => 'listVMSnapshot' ) request(options) end
Retrieves VMware DC(s) associated with a zone.
# 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
Lists all volumes.
# File lib/fog/cloudstack/requests/compute/list_volumes.rb, line 9 def list_volumes(options={}) options.merge!( 'command' => 'listVolumes' ) request(options) end
List Volumes
# 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
Lists VPC offerings
# File lib/fog/cloudstack/requests/compute/list_vpc_offerings.rb, line 9 def list_vpc_offerings(options={}) options.merge!( 'command' => 'listVPCOfferings' ) request(options) end
Lists VPCs
# File lib/fog/cloudstack/requests/compute/list_vpcs.rb, line 9 def list_vpcs(options={}) options.merge!( 'command' => 'listVPCs' ) request(options) end
Lists site to site vpn connection gateways
# File lib/fog/cloudstack/requests/compute/list_vpn_connections.rb, line 9 def list_vpn_connections(options={}) options.merge!( 'command' => 'listVpnConnections' ) request(options) end
Lists site to site vpn customer gateways
# 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
Lists site 2 site vpn gateways
# File lib/fog/cloudstack/requests/compute/list_vpn_gateways.rb, line 9 def list_vpn_gateways(options={}) options.merge!( 'command' => 'listVpnGateways' ) request(options) end
Lists vpn users
# File lib/fog/cloudstack/requests/compute/list_vpn_users.rb, line 9 def list_vpn_users(options={}) options.merge!( 'command' => 'listVpnUsers' ) request(options) end
Lists zones
# File lib/fog/cloudstack/requests/compute/list_zones.rb, line 9 def list_zones(options={}) options.merge!( 'command' => 'listZones' ) request(options) end
Locks an account
# 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
Locks a user account
# 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
# 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
Marks a default zone for this account
# 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
Attempts Migration of a system virtual machine to the host specified.
# 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
Attempts Migration of a VM to a different host or Root volume of the vm to a different storage pool
# 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
Attempts Migration of a VM with its volumes to a different host
# 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
# 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
# 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
Prepares a host for maintenance.
# 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
load template into primary storage
# 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
Retrieves the current status of asynchronous job.
# 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
Starts a router.
# 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
Reboots a system VM.
# 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
Reboots a virtual machine.
# 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
Reconnects a host.
# 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
Recovers a virtual machine.
# 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 to sync with UCS manager
# 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
Registers an existing ISO into the CloudStack Cloud.
# 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 a public key in a keypair under a certain name
# 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
Registers an existing template into the CloudStack cloud.
# 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
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
# 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 the dedication for cluster
# 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
Releases a dedicated guest vlan range to the system
# 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 the dedication for host
# 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 the dedication for the pod
# 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 dedication of zone
# 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
Releases host reservation.
# 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
Releases a Public IP range back to the system pool
# 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
# File lib/fog/cloudstack/compute.rb, line 512 def reload @connection.reset end
Removes a load balancer rule association with global load balancer rule
# 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
Removes a virtual machine or a list of virtual machines from a load balancer rule.
# 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
Assigns secondary IP to NIC.
# 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
Removes VM from specified network by deleting a NIC
# 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
Removes specified region
# 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
Removes detail for the Resource.
# 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 a VMware datacenter from a zone.
# 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
Removes vpn user
# 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
Replaces ACL associated with a Network or private gateway
# 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
# 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 count
# File lib/fog/cloudstack/requests/compute/reset_api_limit.rb, line 9 def reset_api_limit(options={}) options.merge!( 'command' => 'resetApiLimit' ) request(options) end
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]
# 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
Resets the SSH Key for virtual machine. The virtual machine must be in a “Stopped” state. [async]
# 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 site to site vpn connection
# 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
Resizes a volume
# File lib/fog/cloudstack/requests/compute/resize_volume.rb, line 9 def resize_volume(options={}) options.merge!( 'command' => 'resizeVolume' ) request(options) end
Restarts the network; includes 1) restarting network elements - virtual routers, dhcp servers 2) reapplying all public ips 3) reapplying loadBalancing/portForwarding rules
# 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
Restarts a VPC
# 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 a VM to original template/ISO or new template/ISO
# 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 VM from a vmsnapshot.
# 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
Deletes a particular egress rule from this security group
# 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
Deletes a particular ingress rule from this security group
# 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 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.
# 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
Scales the virtual machine to a new service offering.
# 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
Starts an existing internal lb vm.
# 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
Starts a router.
# 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
Starts a system virtual machine.
# 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
Starts a virtual machine.
# 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
Stops an Internal LB vm.
# 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
Stops a router.
# 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
Stops a system VM.
# 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
Stops a virtual machine.
# 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
Suspends a project
# 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
Updates account information for the authenticated user
# 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
Updates an existing autoscale policy.
# 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
Updates an existing autoscale vm group.
# 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
Updates an existing autoscale vm profile.
# 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
Updates an existing cluster
# 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
Updates a configuration.
# 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
Changes the default NIC on a VM
# 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
Updates a disk offering.
# 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
Updates a domain with a new name
# 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 rules.
# 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
Updates a host.
# 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 password of a host/pool on management server.
# 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
Updates a hypervisor capabilities.
# File lib/fog/cloudstack/requests/compute/update_hypervisor_capabilities.rb, line 9 def update_hypervisor_capabilities(options={}) options.merge!( 'command' => 'updateHypervisorCapabilities' ) request(options) end
Updates a vm group
# 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
Updates an ISO file.
# 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
Updates iso permissions
# 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
Updates load balancer
# 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
Updates a network
# 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
Updates ACL Item with specified Id
# 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
Updates a network offering.
# File lib/fog/cloudstack/requests/compute/update_network_offering.rb, line 9 def update_network_offering(options={}) options.merge!( 'command' => 'updateNetworkOffering' ) request(options) end
Updates a network serviceProvider of a physical network
# 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
Updates a physical network
# 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
Updates a Pod.
# 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
Updates a port forwarding rule. Only the private port and the virtual machine can be updated.
# 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
Updates a project
# 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
Accepts or declines project invitation
# 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
Updates a region
# 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
Recalculate and update resource count for an account or domain.
# 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
Updates resource limits for an account or domain.
# 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
Updates a service offering.
# 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 a Storage network IP range, only allowed when no IPs in this range have been allocated.
# 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
Updates a storage pool.
# 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
Updates attributes of a template.
# 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
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.
# 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
Updates traffic type of a physical network
# 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
Updates a user account
# 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
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.
# 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
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.
# 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
Updates the volume.
# 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
Updates a VPC
# 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
Updates VPC offering
# 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 site to site vpn customer gateway
# 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
Updates a Zone.
# 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
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.
# 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
Uploads a data disk.
# 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
# File lib/fog/cloudstack/compute.rb, line 562 def has_keys? @cloudstack_api_key && @cloudstack_secret_access_key end
# File lib/fog/cloudstack/compute.rb, line 558 def has_session? @cloudstack_session_id && @cloudstack_session_key end
# 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