Class: Fog::Compute::Cloudstack::Real

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/cloudstack/compute.rb,
lib/fog/cloudstack/requests/compute/add_s3.rb,
lib/fog/cloudstack/requests/compute/add_host.rb,
lib/fog/cloudstack/requests/compute/copy_iso.rb,
lib/fog/cloudstack/requests/compute/get_user.rb,
lib/fog/cloudstack/requests/compute/list_s3s.rb,
lib/fog/cloudstack/requests/compute/add_swift.rb,
lib/fog/cloudstack/requests/compute/list_apis.rb,
lib/fog/cloudstack/requests/compute/list_isos.rb,
lib/fog/cloudstack/requests/compute/list_nics.rb,
lib/fog/cloudstack/requests/compute/list_pods.rb,
lib/fog/cloudstack/requests/compute/list_tags.rb,
lib/fog/cloudstack/requests/compute/list_vpcs.rb,
lib/fog/cloudstack/requests/compute/lock_user.rb,
lib/fog/cloudstack/requests/compute/add_region.rb,
lib/fog/cloudstack/requests/compute/attach_iso.rb,
lib/fog/cloudstack/requests/compute/create_pod.rb,
lib/fog/cloudstack/requests/compute/create_vpc.rb,
lib/fog/cloudstack/requests/compute/delete_iso.rb,
lib/fog/cloudstack/requests/compute/delete_pod.rb,
lib/fog/cloudstack/requests/compute/delete_vpc.rb,
lib/fog/cloudstack/requests/compute/detach_iso.rb,
lib/fog/cloudstack/requests/compute/list_hosts.rb,
lib/fog/cloudstack/requests/compute/list_pools.rb,
lib/fog/cloudstack/requests/compute/list_users.rb,
lib/fog/cloudstack/requests/compute/list_zones.rb,
lib/fog/cloudstack/requests/compute/update_iso.rb,
lib/fog/cloudstack/requests/compute/update_pod.rb,
lib/fog/cloudstack/requests/compute/update_vpc.rb,
lib/fog/cloudstack/requests/compute/add_cluster.rb,
lib/fog/cloudstack/requests/compute/create_pool.rb,
lib/fog/cloudstack/requests/compute/create_tags.rb,
lib/fog/cloudstack/requests/compute/create_user.rb,
lib/fog/cloudstack/requests/compute/create_zone.rb,
lib/fog/cloudstack/requests/compute/delete_host.rb,
lib/fog/cloudstack/requests/compute/delete_pool.rb,
lib/fog/cloudstack/requests/compute/delete_tags.rb,
lib/fog/cloudstack/requests/compute/delete_user.rb,
lib/fog/cloudstack/requests/compute/delete_zone.rb,
lib/fog/cloudstack/requests/compute/enable_user.rb,
lib/fog/cloudstack/requests/compute/extract_iso.rb,
lib/fog/cloudstack/requests/compute/ldap_config.rb,
lib/fog/cloudstack/requests/compute/ldap_remove.rb,
lib/fog/cloudstack/requests/compute/list_alerts.rb,
lib/fog/cloudstack/requests/compute/list_events.rb,
lib/fog/cloudstack/requests/compute/list_swifts.rb,
lib/fog/cloudstack/requests/compute/modify_pool.rb,
lib/fog/cloudstack/requests/compute/restart_vpc.rb,
lib/fog/cloudstack/requests/compute/stop_router.rb,
lib/fog/cloudstack/requests/compute/update_host.rb,
lib/fog/cloudstack/requests/compute/update_user.rb,
lib/fog/cloudstack/requests/compute/update_zone.rb,
lib/fog/cloudstack/requests/compute/add_guest_os.rb,
lib/fog/cloudstack/requests/compute/add_vpn_user.rb,
lib/fog/cloudstack/requests/compute/dedicate_pod.rb,
lib/fog/cloudstack/requests/compute/disable_user.rb,
lib/fog/cloudstack/requests/compute/list_domains.rb,
lib/fog/cloudstack/requests/compute/list_regions.rb,
lib/fog/cloudstack/requests/compute/list_routers.rb,
lib/fog/cloudstack/requests/compute/list_volumes.rb,
lib/fog/cloudstack/requests/compute/lock_account.rb,
lib/fog/cloudstack/requests/compute/register_iso.rb,
lib/fog/cloudstack/requests/compute/start_router.rb,
lib/fog/cloudstack/requests/compute/add_ip_to_nic.rb,
lib/fog/cloudstack/requests/compute/add_vmware_dc.rb,
lib/fog/cloudstack/requests/compute/associate_lun.rb,
lib/fog/cloudstack/requests/compute/attach_volume.rb,
lib/fog/cloudstack/requests/compute/copy_template.rb,
lib/fog/cloudstack/requests/compute/create_domain.rb,
lib/fog/cloudstack/requests/compute/create_volume.rb,
lib/fog/cloudstack/requests/compute/dedicate_host.rb,
lib/fog/cloudstack/requests/compute/dedicate_zone.rb,
lib/fog/cloudstack/requests/compute/delete_alerts.rb,
lib/fog/cloudstack/requests/compute/delete_domain.rb,
lib/fog/cloudstack/requests/compute/delete_events.rb,
lib/fog/cloudstack/requests/compute/delete_volume.rb,
lib/fog/cloudstack/requests/compute/detach_volume.rb,
lib/fog/cloudstack/requests/compute/get_api_limit.rb,
lib/fog/cloudstack/requests/compute/list_accounts.rb,
lib/fog/cloudstack/requests/compute/list_capacity.rb,
lib/fog/cloudstack/requests/compute/list_clusters.rb,
lib/fog/cloudstack/requests/compute/list_counters.rb,
lib/fog/cloudstack/requests/compute/list_networks.rb,
lib/fog/cloudstack/requests/compute/list_os_types.rb,
lib/fog/cloudstack/requests/compute/list_projects.rb,
lib/fog/cloudstack/requests/compute/reboot_router.rb,
lib/fog/cloudstack/requests/compute/remove_region.rb,
lib/fog/cloudstack/requests/compute/resize_volume.rb,
lib/fog/cloudstack/requests/compute/update_domain.rb,
lib/fog/cloudstack/requests/compute/update_region.rb,
lib/fog/cloudstack/requests/compute/update_volume.rb,
lib/fog/cloudstack/requests/compute/upload_volume.rb,
lib/fog/cloudstack/requests/compute/archive_alerts.rb,
lib/fog/cloudstack/requests/compute/archive_events.rb,
lib/fog/cloudstack/requests/compute/create_account.rb,
lib/fog/cloudstack/requests/compute/create_counter.rb,
lib/fog/cloudstack/requests/compute/create_network.rb,
lib/fog/cloudstack/requests/compute/create_project.rb,
lib/fog/cloudstack/requests/compute/delete_account.rb,
lib/fog/cloudstack/requests/compute/delete_cluster.rb,
lib/fog/cloudstack/requests/compute/delete_counter.rb,
lib/fog/cloudstack/requests/compute/delete_network.rb,
lib/fog/cloudstack/requests/compute/delete_project.rb,
lib/fog/cloudstack/requests/compute/destroy_router.rb,
lib/fog/cloudstack/requests/compute/dissociate_lun.rb,
lib/fog/cloudstack/requests/compute/enable_account.rb,
lib/fog/cloudstack/requests/compute/extract_volume.rb,
lib/fog/cloudstack/requests/compute/generate_alert.rb,
lib/fog/cloudstack/requests/compute/list_snapshots.rb,
lib/fog/cloudstack/requests/compute/list_ssl_certs.rb,
lib/fog/cloudstack/requests/compute/list_templates.rb,
lib/fog/cloudstack/requests/compute/list_vpn_users.rb,
lib/fog/cloudstack/requests/compute/migrate_volume.rb,
lib/fog/cloudstack/requests/compute/reconnect_host.rb,
lib/fog/cloudstack/requests/compute/stop_system_vm.rb,
lib/fog/cloudstack/requests/compute/update_account.rb,
lib/fog/cloudstack/requests/compute/update_cluster.rb,
lib/fog/cloudstack/requests/compute/update_network.rb,
lib/fog/cloudstack/requests/compute/update_project.rb,
lib/fog/cloudstack/requests/compute/add_image_store.rb,
lib/fog/cloudstack/requests/compute/add_ucs_manager.rb,
lib/fog/cloudstack/requests/compute/create_snapshot.rb,
lib/fog/cloudstack/requests/compute/create_template.rb,
lib/fog/cloudstack/requests/compute/delete_snapshot.rb,
lib/fog/cloudstack/requests/compute/delete_ssl_cert.rb,
lib/fog/cloudstack/requests/compute/delete_template.rb,
lib/fog/cloudstack/requests/compute/disable_account.rb,
lib/fog/cloudstack/requests/compute/get_vm_password.rb,
lib/fog/cloudstack/requests/compute/list_async_jobs.rb,
lib/fog/cloudstack/requests/compute/list_conditions.rb,
lib/fog/cloudstack/requests/compute/list_ldap_users.rb,
lib/fog/cloudstack/requests/compute/list_system_vms.rb,
lib/fog/cloudstack/requests/compute/list_ucs_blades.rb,
lib/fog/cloudstack/requests/compute/list_vmware_dcs.rb,
lib/fog/cloudstack/requests/compute/remove_guest_os.rb,
lib/fog/cloudstack/requests/compute/remove_vpn_user.rb,
lib/fog/cloudstack/requests/compute/reset_api_limit.rb,
lib/fog/cloudstack/requests/compute/restart_network.rb,
lib/fog/cloudstack/requests/compute/revert_snapshot.rb,
lib/fog/cloudstack/requests/compute/scale_system_vm.rb,
lib/fog/cloudstack/requests/compute/start_system_vm.rb,
lib/fog/cloudstack/requests/compute/suspend_project.rb,
lib/fog/cloudstack/requests/compute/update_guest_os.rb,
lib/fog/cloudstack/requests/compute/update_template.rb,
lib/fog/cloudstack/requests/compute/upload_ssl_cert.rb,
lib/fog/cloudstack/requests/compute/activate_project.rb,
lib/fog/cloudstack/requests/compute/add_srx_firewall.rb,
lib/fog/cloudstack/requests/compute/add_traffic_type.rb,
lib/fog/cloudstack/requests/compute/create_condition.rb,
lib/fog/cloudstack/requests/compute/dedicate_cluster.rb,
lib/fog/cloudstack/requests/compute/delete_condition.rb,
lib/fog/cloudstack/requests/compute/extract_template.rb,
lib/fog/cloudstack/requests/compute/list_event_types.rb,
lib/fog/cloudstack/requests/compute/list_hypervisors.rb,
lib/fog/cloudstack/requests/compute/list_usage_types.rb,
lib/fog/cloudstack/requests/compute/list_vm_snapshot.rb,
lib/fog/cloudstack/requests/compute/prepare_template.rb,
lib/fog/cloudstack/requests/compute/reboot_system_vm.rb,
lib/fog/cloudstack/requests/compute/remove_vmware_dc.rb,
lib/fog/cloudstack/requests/compute/destroy_system_vm.rb,
lib/fog/cloudstack/requests/compute/enable_static_nat.rb,
lib/fog/cloudstack/requests/compute/import_ldap_users.rb,
lib/fog/cloudstack/requests/compute/list_capabilities.rb,
lib/fog/cloudstack/requests/compute/list_image_stores.rb,
lib/fog/cloudstack/requests/compute/list_network_acls.rb,
lib/fog/cloudstack/requests/compute/list_ovs_elements.rb,
lib/fog/cloudstack/requests/compute/list_ucs_managers.rb,
lib/fog/cloudstack/requests/compute/list_ucs_profiles.rb,
lib/fog/cloudstack/requests/compute/list_vpn_gateways.rb,
lib/fog/cloudstack/requests/compute/migrate_system_vm.rb,
lib/fog/cloudstack/requests/compute/register_template.rb,
lib/fog/cloudstack/requests/compute/update_ip_address.rb,
lib/fog/cloudstack/requests/compute/acquire_ip_address.rb,
lib/fog/cloudstack/requests/compute/add_baremetal_dhcp.rb,
lib/fog/cloudstack/requests/compute/add_baremetal_host.rb,
lib/fog/cloudstack/requests/compute/add_network_device.rb,
lib/fog/cloudstack/requests/compute/create_network_acl.rb,
lib/fog/cloudstack/requests/compute/create_vm_snapshot.rb,
lib/fog/cloudstack/requests/compute/create_vpcoffering.rb,
lib/fog/cloudstack/requests/compute/create_vpn_gateway.rb,
lib/fog/cloudstack/requests/compute/delete_image_store.rb,
lib/fog/cloudstack/requests/compute/delete_network_acl.rb,
lib/fog/cloudstack/requests/compute/delete_ucs_manager.rb,
lib/fog/cloudstack/requests/compute/delete_vm_snapshot.rb,
lib/fog/cloudstack/requests/compute/delete_vpcoffering.rb,
lib/fog/cloudstack/requests/compute/delete_vpn_gateway.rb,
lib/fog/cloudstack/requests/compute/disable_static_nat.rb,
lib/fog/cloudstack/requests/compute/list_luns_on_filer.rb,
lib/fog/cloudstack/requests/compute/list_os_categories.rb,
lib/fog/cloudstack/requests/compute/list_srx_firewalls.rb,
lib/fog/cloudstack/requests/compute/list_ssh_key_pairs.rb,
lib/fog/cloudstack/requests/compute/list_static_routes.rb,
lib/fog/cloudstack/requests/compute/list_storage_pools.rb,
lib/fog/cloudstack/requests/compute/list_traffic_types.rb,
lib/fog/cloudstack/requests/compute/list_ucs_templates.rb,
lib/fog/cloudstack/requests/compute/list_usage_records.rb,
lib/fog/cloudstack/requests/compute/list_vpc_offerings.rb,
lib/fog/cloudstack/requests/compute/refresh_ucs_blades.rb,
lib/fog/cloudstack/requests/compute/register_user_keys.rb,
lib/fog/cloudstack/requests/compute/remove_ip_from_nic.rb,
lib/fog/cloudstack/requests/compute/update_vpcoffering.rb,
lib/fog/cloudstack/requests/compute/update_vpn_gateway.rb,
lib/fog/cloudstack/requests/compute/add_resource_detail.rb,
lib/fog/cloudstack/requests/compute/add_traffic_monitor.rb,
lib/fog/cloudstack/requests/compute/create_lun_on_filer.rb,
lib/fog/cloudstack/requests/compute/create_ssh_key_pair.rb,
lib/fog/cloudstack/requests/compute/create_static_route.rb,
lib/fog/cloudstack/requests/compute/create_storage_pool.rb,
lib/fog/cloudstack/requests/compute/delete_srx_firewall.rb,
lib/fog/cloudstack/requests/compute/delete_ssh_key_pair.rb,
lib/fog/cloudstack/requests/compute/delete_static_route.rb,
lib/fog/cloudstack/requests/compute/delete_storage_pool.rb,
lib/fog/cloudstack/requests/compute/delete_traffic_type.rb,
lib/fog/cloudstack/requests/compute/ldap_create_account.rb,
lib/fog/cloudstack/requests/compute/list_baremetal_dhcp.rb,
lib/fog/cloudstack/requests/compute/list_configurations.rb,
lib/fog/cloudstack/requests/compute/list_dedicated_pods.rb,
lib/fog/cloudstack/requests/compute/list_disk_offerings.rb,
lib/fog/cloudstack/requests/compute/list_firewall_rules.rb,
lib/fog/cloudstack/requests/compute/list_load_balancers.rb,
lib/fog/cloudstack/requests/compute/list_network_device.rb,
lib/fog/cloudstack/requests/compute/list_vlan_ip_ranges.rb,
lib/fog/cloudstack/requests/compute/update_storage_pool.rb,
lib/fog/cloudstack/requests/compute/update_traffic_type.rb,
lib/fog/cloudstack/requests/compute/add_f5_load_balancer.rb,
lib/fog/cloudstack/requests/compute/add_guest_os_mapping.rb,
lib/fog/cloudstack/requests/compute/add_stratosphere_ssp.rb,
lib/fog/cloudstack/requests/compute/associate_ip_address.rb,
lib/fog/cloudstack/requests/compute/clean_vmreservations.rb,
lib/fog/cloudstack/requests/compute/create_disk_offering.rb,
lib/fog/cloudstack/requests/compute/create_firewall_rule.rb,
lib/fog/cloudstack/requests/compute/create_load_balancer.rb,
lib/fog/cloudstack/requests/compute/create_vlan_ip_range.rb,
lib/fog/cloudstack/requests/compute/delete_disk_offering.rb,
lib/fog/cloudstack/requests/compute/delete_firewall_rule.rb,
lib/fog/cloudstack/requests/compute/delete_load_balancer.rb,
lib/fog/cloudstack/requests/compute/delete_vlan_ip_range.rb,
lib/fog/cloudstack/requests/compute/destroy_lun_on_filer.rb,
lib/fog/cloudstack/requests/compute/get_cloud_identifier.rb,
lib/fog/cloudstack/requests/compute/list_affinity_groups.rb,
lib/fog/cloudstack/requests/compute/list_dedicated_hosts.rb,
lib/fog/cloudstack/requests/compute/list_dedicated_zones.rb,
lib/fog/cloudstack/requests/compute/list_domain_children.rb,
lib/fog/cloudstack/requests/compute/list_instance_groups.rb,
lib/fog/cloudstack/requests/compute/list_iso_permissions.rb,
lib/fog/cloudstack/requests/compute/list_resource_limits.rb,
lib/fog/cloudstack/requests/compute/list_security_groups.rb,
lib/fog/cloudstack/requests/compute/list_vpn_connections.rb,
lib/fog/cloudstack/requests/compute/reset_vpn_connection.rb,
lib/fog/cloudstack/requests/compute/stop_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/update_configuration.rb,
lib/fog/cloudstack/requests/compute/update_disk_offering.rb,
lib/fog/cloudstack/requests/compute/update_firewall_rule.rb,
lib/fog/cloudstack/requests/compute/update_host_password.rb,
lib/fog/cloudstack/requests/compute/update_load_balancer.rb,
lib/fog/cloudstack/requests/compute/add_external_firewall.rb,
lib/fog/cloudstack/requests/compute/add_nicira_nvp_device.rb,
lib/fog/cloudstack/requests/compute/add_secondary_storage.rb,
lib/fog/cloudstack/requests/compute/configure_ovs_element.rb,
lib/fog/cloudstack/requests/compute/create_affinity_group.rb,
lib/fog/cloudstack/requests/compute/create_instance_group.rb,
lib/fog/cloudstack/requests/compute/create_security_group.rb,
lib/fog/cloudstack/requests/compute/create_vpn_connection.rb,
lib/fog/cloudstack/requests/compute/delete_affinity_group.rb,
lib/fog/cloudstack/requests/compute/delete_instance_group.rb,
lib/fog/cloudstack/requests/compute/delete_network_device.rb,
lib/fog/cloudstack/requests/compute/delete_security_group.rb,
lib/fog/cloudstack/requests/compute/delete_vpn_connection.rb,
lib/fog/cloudstack/requests/compute/list_cisco_nexus_vsms.rb,
lib/fog/cloudstack/requests/compute/list_guest_os_mapping.rb,
lib/fog/cloudstack/requests/compute/list_private_gateways.rb,
lib/fog/cloudstack/requests/compute/list_project_accounts.rb,
lib/fog/cloudstack/requests/compute/list_resource_details.rb,
lib/fog/cloudstack/requests/compute/list_traffic_monitors.rb,
lib/fog/cloudstack/requests/compute/list_virtual_machines.rb,
lib/fog/cloudstack/requests/compute/list_volumes_on_filer.rb,
lib/fog/cloudstack/requests/compute/register_ssh_key_pair.rb,
lib/fog/cloudstack/requests/compute/release_dedicated_pod.rb,
lib/fog/cloudstack/requests/compute/revert_to_vm_snapshot.rb,
lib/fog/cloudstack/requests/compute/scale_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/start_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/update_instance_group.rb,
lib/fog/cloudstack/requests/compute/update_resource_count.rb,
lib/fog/cloudstack/requests/compute/update_resource_limit.rb,
lib/fog/cloudstack/requests/compute/update_vpn_connection.rb,
lib/fog/cloudstack/requests/compute/add_account_to_project.rb,
lib/fog/cloudstack/requests/compute/add_ldap_configuration.rb,
lib/fog/cloudstack/requests/compute/add_palo_alto_firewall.rb,
lib/fog/cloudstack/requests/compute/assign_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/configure_srx_firewall.rb,
lib/fog/cloudstack/requests/compute/create_private_gateway.rb,
lib/fog/cloudstack/requests/compute/create_snapshot_policy.rb,
lib/fog/cloudstack/requests/compute/create_volume_on_filer.rb,
lib/fog/cloudstack/requests/compute/delete_cisco_nexus_vsm.rb,
lib/fog/cloudstack/requests/compute/delete_private_gateway.rb,
lib/fog/cloudstack/requests/compute/delete_traffic_monitor.rb,
lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/enable_cisco_nexus_vsm.rb,
lib/fog/cloudstack/requests/compute/generate_usage_records.rb,
lib/fog/cloudstack/requests/compute/list_f5_load_balancers.rb,
lib/fog/cloudstack/requests/compute/list_network_acl_lists.rb,
lib/fog/cloudstack/requests/compute/list_network_offerings.rb,
lib/fog/cloudstack/requests/compute/list_physical_networks.rb,
lib/fog/cloudstack/requests/compute/list_service_offerings.rb,
lib/fog/cloudstack/requests/compute/list_snapshot_policies.rb,
lib/fog/cloudstack/requests/compute/list_storage_providers.rb,
lib/fog/cloudstack/requests/compute/query_async_job_result.rb,
lib/fog/cloudstack/requests/compute/reboot_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/release_dedicated_host.rb,
lib/fog/cloudstack/requests/compute/release_dedicated_zone.rb,
lib/fog/cloudstack/requests/compute/remove_resource_detail.rb,
lib/fog/cloudstack/requests/compute/update_iso_permissions.rb,
lib/fog/cloudstack/requests/compute/update_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/add_cisco_vnmc_resource.rb,
lib/fog/cloudstack/requests/compute/cancel_host_maintenance.rb,
lib/fog/cloudstack/requests/compute/create_network_acl_list.rb,
lib/fog/cloudstack/requests/compute/create_network_offering.rb,
lib/fog/cloudstack/requests/compute/create_physical_network.rb,
lib/fog/cloudstack/requests/compute/create_service_instance.rb,
lib/fog/cloudstack/requests/compute/create_service_offering.rb,
lib/fog/cloudstack/requests/compute/delete_f5_load_balancer.rb,
lib/fog/cloudstack/requests/compute/delete_network_acl_list.rb,
lib/fog/cloudstack/requests/compute/delete_network_offering.rb,
lib/fog/cloudstack/requests/compute/delete_physical_network.rb,
lib/fog/cloudstack/requests/compute/delete_service_offering.rb,
lib/fog/cloudstack/requests/compute/destroy_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/destroy_volume_on_filer.rb,
lib/fog/cloudstack/requests/compute/disable_cisco_nexus_vsm.rb,
lib/fog/cloudstack/requests/compute/disassociate_ip_address.rb,
lib/fog/cloudstack/requests/compute/expunge_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/list_dedicated_clusters.rb,
lib/fog/cloudstack/requests/compute/list_external_firewalls.rb,
lib/fog/cloudstack/requests/compute/list_nicira_nvp_devices.rb,
lib/fog/cloudstack/requests/compute/list_portable_ip_ranges.rb,
lib/fog/cloudstack/requests/compute/list_remote_access_vpns.rb,
lib/fog/cloudstack/requests/compute/migrate_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/recover_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/release_public_ip_range.rb,
lib/fog/cloudstack/requests/compute/remove_guest_os_mapping.rb,
lib/fog/cloudstack/requests/compute/restore_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/update_guest_os_mapping.rb,
lib/fog/cloudstack/requests/compute/update_network_acl_item.rb,
lib/fog/cloudstack/requests/compute/update_network_acl_list.rb,
lib/fog/cloudstack/requests/compute/update_network_offering.rb,
lib/fog/cloudstack/requests/compute/update_physical_network.rb,
lib/fog/cloudstack/requests/compute/update_service_offering.rb,
lib/fog/cloudstack/requests/compute/upgrade_router_template.rb,
lib/fog/cloudstack/requests/compute/create_auto_scale_policy.rb,
lib/fog/cloudstack/requests/compute/create_portable_ip_range.rb,
lib/fog/cloudstack/requests/compute/create_remote_access_vpn.rb,
lib/fog/cloudstack/requests/compute/dedicate_public_ip_range.rb,
lib/fog/cloudstack/requests/compute/delete_auto_scale_policy.rb,
lib/fog/cloudstack/requests/compute/delete_external_firewall.rb,
lib/fog/cloudstack/requests/compute/delete_nicira_nvp_device.rb,
lib/fog/cloudstack/requests/compute/delete_portable_ip_range.rb,
lib/fog/cloudstack/requests/compute/delete_remote_access_vpn.rb,
lib/fog/cloudstack/requests/compute/delete_snapshot_policies.rb,
lib/fog/cloudstack/requests/compute/find_hosts_for_migration.rb,
lib/fog/cloudstack/requests/compute/list_auto_scale_policies.rb,
lib/fog/cloudstack/requests/compute/list_deployment_planners.rb,
lib/fog/cloudstack/requests/compute/list_ip_forwarding_rules.rb,
lib/fog/cloudstack/requests/compute/list_ldap_configurations.rb,
lib/fog/cloudstack/requests/compute/list_load_balancer_rules.rb,
lib/fog/cloudstack/requests/compute/list_palo_alto_firewalls.rb,
lib/fog/cloudstack/requests/compute/list_project_invitations.rb,
lib/fog/cloudstack/requests/compute/list_public_ip_addresses.rb,
lib/fog/cloudstack/requests/compute/release_host_reservation.rb,
lib/fog/cloudstack/requests/compute/replace_network_acl_list.rb,
lib/fog/cloudstack/requests/compute/update_auto_scale_policy.rb,
lib/fog/cloudstack/requests/compute/update_remote_access_vpn.rb,
lib/fog/cloudstack/requests/compute/update_vm_affinity_group.rb,
lib/fog/cloudstack/requests/compute/add_big_switch_vns_device.rb,
lib/fog/cloudstack/requests/compute/change_service_for_router.rb,
lib/fog/cloudstack/requests/compute/create_ip_forwarding_rule.rb,
lib/fog/cloudstack/requests/compute/create_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/dedicate_guest_vlan_range.rb,
lib/fog/cloudstack/requests/compute/delete_ip_forwarding_rule.rb,
lib/fog/cloudstack/requests/compute/delete_ldap_configuration.rb,
lib/fog/cloudstack/requests/compute/delete_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/delete_palo_alto_firewall.rb,
lib/fog/cloudstack/requests/compute/delete_project_invitation.rb,
lib/fog/cloudstack/requests/compute/list_affinity_group_types.rb,
lib/fog/cloudstack/requests/compute/list_auto_scale_vm_groups.rb,
lib/fog/cloudstack/requests/compute/list_cisco_vnmc_resources.rb,
lib/fog/cloudstack/requests/compute/list_template_permissions.rb,
lib/fog/cloudstack/requests/compute/release_dedicated_cluster.rb,
lib/fog/cloudstack/requests/compute/update_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/update_project_invitation.rb,
lib/fog/cloudstack/requests/compute/upload_custom_certificate.rb,
lib/fog/cloudstack/requests/compute/add_external_load_balancer.rb,
lib/fog/cloudstack/requests/compute/add_nic_to_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/cancel_storage_maintenance.rb,
lib/fog/cloudstack/requests/compute/configure_f5_load_balancer.rb,
lib/fog/cloudstack/requests/compute/create_auto_scale_vm_group.rb,
lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_group.rb,
lib/fog/cloudstack/requests/compute/delete_cisco_vnmc_resource.rb,
lib/fog/cloudstack/requests/compute/enable_auto_scale_vm_group.rb,
lib/fog/cloudstack/requests/compute/enable_storage_maintenance.rb,
lib/fog/cloudstack/requests/compute/list_baremetal_pxe_servers.rb,
lib/fog/cloudstack/requests/compute/list_egress_firewall_rules.rb,
lib/fog/cloudstack/requests/compute/list_port_forwarding_rules.rb,
lib/fog/cloudstack/requests/compute/list_srx_firewall_networks.rb,
lib/fog/cloudstack/requests/compute/list_vpn_customer_gateways.rb,
lib/fog/cloudstack/requests/compute/update_auto_scale_vm_group.rb,
lib/fog/cloudstack/requests/compute/add_cisco_asa1000v_resource.rb,
lib/fog/cloudstack/requests/compute/add_netscaler_load_balancer.rb,
lib/fog/cloudstack/requests/compute/create_egress_firewall_rule.rb,
lib/fog/cloudstack/requests/compute/create_lb_stickiness_policy.rb,
lib/fog/cloudstack/requests/compute/create_port_forwarding_rule.rb,
lib/fog/cloudstack/requests/compute/create_vpn_customer_gateway.rb,
lib/fog/cloudstack/requests/compute/delete_account_from_project.rb,
lib/fog/cloudstack/requests/compute/delete_egress_firewall_rule.rb,
lib/fog/cloudstack/requests/compute/delete_lb_stickiness_policy.rb,
lib/fog/cloudstack/requests/compute/delete_port_forwarding_rule.rb,
lib/fog/cloudstack/requests/compute/delete_vpn_customer_gateway.rb,
lib/fog/cloudstack/requests/compute/disable_auto_scale_vm_group.rb,
lib/fog/cloudstack/requests/compute/list_auto_scale_vm_profiles.rb,
lib/fog/cloudstack/requests/compute/list_big_switch_vns_devices.rb,
lib/fog/cloudstack/requests/compute/list_lb_stickiness_policies.rb,
lib/fog/cloudstack/requests/compute/update_egress_firewall_rule.rb,
lib/fog/cloudstack/requests/compute/update_lb_stickiness_policy.rb,
lib/fog/cloudstack/requests/compute/update_port_forwarding_rule.rb,
lib/fog/cloudstack/requests/compute/update_template_permissions.rb,
lib/fog/cloudstack/requests/compute/update_vpn_customer_gateway.rb,
lib/fog/cloudstack/requests/compute/add_network_service_provider.rb,
lib/fog/cloudstack/requests/compute/add_open_daylight_controller.rb,
lib/fog/cloudstack/requests/compute/assign_cert_to_load_balancer.rb,
lib/fog/cloudstack/requests/compute/assign_to_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/change_service_for_system_vm.rb,
lib/fog/cloudstack/requests/compute/configure_palo_alto_firewall.rb,
lib/fog/cloudstack/requests/compute/create_auto_scale_vm_profile.rb,
lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_profile.rb,
lib/fog/cloudstack/requests/compute/delete_big_switch_vns_device.rb,
lib/fog/cloudstack/requests/compute/list_external_load_balancers.rb,
lib/fog/cloudstack/requests/compute/list_hypervisor_capabilities.rb,
lib/fog/cloudstack/requests/compute/list_virtual_router_elements.rb,
lib/fog/cloudstack/requests/compute/prepare_host_for_maintenance.rb,
lib/fog/cloudstack/requests/compute/revoke_security_group_egress.rb,
lib/fog/cloudstack/requests/compute/update_auto_scale_vm_profile.rb,
lib/fog/cloudstack/requests/compute/add_baremetal_pxe_ping_server.rb,
lib/fog/cloudstack/requests/compute/create_lb_health_check_policy.rb,
lib/fog/cloudstack/requests/compute/create_virtual_router_element.rb,
lib/fog/cloudstack/requests/compute/delete_external_load_balancer.rb,
lib/fog/cloudstack/requests/compute/delete_lb_health_check_policy.rb,
lib/fog/cloudstack/requests/compute/get_virtual_machine_user_data.rb,
lib/fog/cloudstack/requests/compute/list_cisco_asa1000v_resources.rb,
lib/fog/cloudstack/requests/compute/list_lb_health_check_policies.rb,
lib/fog/cloudstack/requests/compute/list_netscaler_load_balancers.rb,
lib/fog/cloudstack/requests/compute/list_secondary_staging_stores.rb,
lib/fog/cloudstack/requests/compute/list_storage_network_ip_range.rb,
lib/fog/cloudstack/requests/compute/mark_default_zone_for_account.rb,
lib/fog/cloudstack/requests/compute/revoke_security_group_ingress.rb,
lib/fog/cloudstack/requests/compute/update_lb_health_check_policy.rb,
lib/fog/cloudstack/requests/compute/associate_ucs_profile_to_blade.rb,
lib/fog/cloudstack/requests/compute/create_secondary_staging_store.rb,
lib/fog/cloudstack/requests/compute/delete_cisco_asa1000v_resource.rb,
lib/fog/cloudstack/requests/compute/delete_netscaler_load_balancer.rb,
lib/fog/cloudstack/requests/compute/delete_secondary_staging_store.rb,
lib/fog/cloudstack/requests/compute/list_f5_load_balancer_networks.rb,
lib/fog/cloudstack/requests/compute/list_network_isolation_methods.rb,
lib/fog/cloudstack/requests/compute/list_network_service_providers.rb,
lib/fog/cloudstack/requests/compute/list_open_daylight_controllers.rb,
lib/fog/cloudstack/requests/compute/list_traffic_type_implementors.rb,
lib/fog/cloudstack/requests/compute/remove_cert_from_load_balancer.rb,
lib/fog/cloudstack/requests/compute/remove_from_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/stop_internal_load_balancer_vm.rb,
lib/fog/cloudstack/requests/compute/update_hypervisor_capabilities.rb,
lib/fog/cloudstack/requests/compute/authorize_security_group_egress.rb,
lib/fog/cloudstack/requests/compute/create_storage_network_ip_range.rb,
lib/fog/cloudstack/requests/compute/delete_network_service_provider.rb,
lib/fog/cloudstack/requests/compute/delete_open_daylight_controller.rb,
lib/fog/cloudstack/requests/compute/delete_storage_network_ip_range.rb,
lib/fog/cloudstack/requests/compute/list_global_load_balancer_rules.rb,
lib/fog/cloudstack/requests/compute/list_internal_load_balancer_vms.rb,
lib/fog/cloudstack/requests/compute/list_nicira_nvp_device_networks.rb,
lib/fog/cloudstack/requests/compute/list_supported_network_services.rb,
lib/fog/cloudstack/requests/compute/remove_nic_from_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/start_internal_load_balancer_vm.rb,
lib/fog/cloudstack/requests/compute/update_network_service_provider.rb,
lib/fog/cloudstack/requests/compute/update_storage_network_ip_range.rb,
lib/fog/cloudstack/requests/compute/authorize_security_group_ingress.rb,
lib/fog/cloudstack/requests/compute/configure_virtual_router_element.rb,
lib/fog/cloudstack/requests/compute/create_global_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/delete_global_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/find_storage_pools_for_migration.rb,
lib/fog/cloudstack/requests/compute/list_dedicated_guest_vlan_ranges.rb,
lib/fog/cloudstack/requests/compute/list_palo_alto_firewall_networks.rb,
lib/fog/cloudstack/requests/compute/update_cloud_to_use_object_store.rb,
lib/fog/cloudstack/requests/compute/update_global_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/configure_netscaler_load_balancer.rb,
lib/fog/cloudstack/requests/compute/list_load_balancer_rule_instances.rb,
lib/fog/cloudstack/requests/compute/reset_ssh_key_for_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/change_service_for_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/release_dedicated_guest_vlan_range.rb,
lib/fog/cloudstack/requests/compute/reset_password_for_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/add_baremetal_pxe_kick_start_server.rb,
lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/disassociate_ucs_profile_from_blade.rb,
lib/fog/cloudstack/requests/compute/migrate_virtual_machine_with_volume.rb,
lib/fog/cloudstack/requests/compute/list_internal_load_balancer_elements.rb,
lib/fog/cloudstack/requests/compute/create_internal_load_balancer_element.rb,
lib/fog/cloudstack/requests/compute/list_netscaler_load_balancer_networks.rb,
lib/fog/cloudstack/requests/compute/remove_from_global_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/update_default_nic_for_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/configure_internal_load_balancer_element.rb,
lib/fog/cloudstack/requests/compute/instantiate_ucs_template_and_assocaciate_to_blade.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Real

Returns a new instance of Real.



544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/fog/cloudstack/compute.rb', line 544

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]
  @cloudstack_project_id        = options[:cloudstack_project_id]
  @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

Instance Method Details

#acquire_ip_address(options = {}) ⇒ Object

Creates an account.

CloudStack API Reference



8
9
10
11
12
13
14
# File 'lib/fog/cloudstack/requests/compute/acquire_ip_address.rb', line 8

def acquire_ip_address(options={})
  options.merge!(
    'command' => 'associateIpAddress'
  )

  request(options)
end

#activate_project(*args) ⇒ Object

Activates a project

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/activate_project.rb', line 9

def activate_project(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'activateProject') 
  else
    options.merge!('command' => 'activateProject', 
    'id' => args[0])
  end
  request(options)
end

#add_account_to_project(*args) ⇒ Object

Adds acoount to a project

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/add_account_to_project.rb', line 9

def (*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addAccountToProject') 
  else
    options.merge!('command' => 'addAccountToProject', 
    'projectid' => args[0])
  end
  request(options)
end

#add_baremetal_dhcp(*args) ⇒ Object

adds a baremetal dhcp server

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/add_baremetal_dhcp.rb', line 9

def add_baremetal_dhcp(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addBaremetalDhcp') 
  else
    options.merge!('command' => 'addBaremetalDhcp', 
    'dhcpservertype' => args[0], 
    'username' => args[1], 
    'url' => args[2], 
    'physicalnetworkid' => args[3], 
    'password' => args[4])
  end
  request(options)
end

#add_baremetal_host(*args) ⇒ Object

add a baremetal host

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/fog/cloudstack/requests/compute/add_baremetal_host.rb', line 9

def add_baremetal_host(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addBaremetalHost') 
  else
    options.merge!('command' => 'addBaremetalHost', 
    'podid' => args[0], 
    'url' => args[1], 
    'hypervisor' => args[2], 
    'username' => args[3], 
    'zoneid' => args[4], 
    'password' => args[5])
  end
  request(options)
end

#add_baremetal_pxe_kick_start_server(*args) ⇒ Object

add a baremetal pxe server

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/fog/cloudstack/requests/compute/add_baremetal_pxe_kick_start_server.rb', line 9

def add_baremetal_pxe_kick_start_server(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addBaremetalPxeKickStartServer') 
  else
    options.merge!('command' => 'addBaremetalPxeKickStartServer', 
    'url' => args[0], 
    'username' => args[1], 
    'tftpdir' => args[2], 
    'pxeservertype' => args[3], 
    'password' => args[4], 
    'physicalnetworkid' => args[5])
  end
  request(options)
end

#add_baremetal_pxe_ping_server(*args) ⇒ Object

add a baremetal ping pxe server

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/fog/cloudstack/requests/compute/add_baremetal_pxe_ping_server.rb', line 9

def add_baremetal_pxe_ping_server(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addBaremetalPxePingServer') 
  else
    options.merge!('command' => 'addBaremetalPxePingServer', 
    'physicalnetworkid' => args[0], 
    'pxeservertype' => args[1], 
    'pingstorageserverip' => args[2], 
    'url' => args[3], 
    'tftpdir' => args[4], 
    'password' => args[5], 
    'pingdir' => args[6], 
    'username' => args[7])
  end
  request(options)
end

#add_big_switch_vns_device(*args) ⇒ Object

Adds a BigSwitch VNS device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/add_big_switch_vns_device.rb', line 9

def add_big_switch_vns_device(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addBigSwitchVnsDevice') 
  else
    options.merge!('command' => 'addBigSwitchVnsDevice', 
    'hostname' => args[0], 
    'physicalnetworkid' => args[1])
  end
  request(options)
end

#add_cisco_asa1000v_resource(*args) ⇒ Object

Adds a Cisco Asa 1000v appliance

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/add_cisco_asa1000v_resource.rb', line 9

def add_cisco_asa1000v_resource(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addCiscoAsa1000vResource') 
  else
    options.merge!('command' => 'addCiscoAsa1000vResource', 
    'hostname' => args[0], 
    'physicalnetworkid' => args[1], 
    'insideportprofile' => args[2], 
    'clusterid' => args[3])
  end
  request(options)
end

#add_cisco_vnmc_resource(*args) ⇒ Object

Adds a Cisco Vnmc Controller

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/add_cisco_vnmc_resource.rb', line 9

def add_cisco_vnmc_resource(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addCiscoVnmcResource') 
  else
    options.merge!('command' => 'addCiscoVnmcResource', 
    'username' => args[0], 
    'hostname' => args[1], 
    'password' => args[2], 
    'physicalnetworkid' => args[3])
  end
  request(options)
end

#add_cluster(*args) ⇒ Object

Adds a new cluster

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/add_cluster.rb', line 9

def add_cluster(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addCluster') 
  else
    options.merge!('command' => 'addCluster', 
    'clustertype' => args[0], 
    'hypervisor' => args[1], 
    'clustername' => args[2], 
    'podid' => args[3], 
    'zoneid' => args[4])
  end
  request(options)
end

#add_external_firewall(*args) ⇒ Object

Adds an external firewall appliance

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/add_external_firewall.rb', line 9

def add_external_firewall(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addExternalFirewall') 
  else
    options.merge!('command' => 'addExternalFirewall', 
    'url' => args[0], 
    'username' => args[1], 
    'password' => args[2], 
    'zoneid' => args[3])
  end
  request(options)
end

#add_external_load_balancer(*args) ⇒ Object

Adds F5 external load balancer appliance.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/add_external_load_balancer.rb', line 9

def add_external_load_balancer(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addExternalLoadBalancer') 
  else
    options.merge!('command' => 'addExternalLoadBalancer', 
    'zoneid' => args[0], 
    'url' => args[1], 
    'password' => args[2], 
    'username' => args[3])
  end
  request(options)
end

#add_f5_load_balancer(*args) ⇒ Object

Adds a F5 BigIP load balancer device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/add_f5_load_balancer.rb', line 9

def add_f5_load_balancer(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addF5LoadBalancer') 
  else
    options.merge!('command' => 'addF5LoadBalancer', 
    'password' => args[0], 
    'physicalnetworkid' => args[1], 
    'networkdevicetype' => args[2], 
    'username' => args[3], 
    'url' => args[4])
  end
  request(options)
end

#add_guest_os(*args) ⇒ Object

Add a new guest OS type

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/add_guest_os.rb', line 9

def add_guest_os(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addGuestOs') 
  else
    options.merge!('command' => 'addGuestOs', 
    'osdisplayname' => args[0], 
    'oscategoryid' => args[1])
  end
  request(options)
end

#add_guest_os_mapping(*args) ⇒ Object

Adds a guest OS name to hypervisor OS name mapping

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/add_guest_os_mapping.rb', line 9

def add_guest_os_mapping(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addGuestOsMapping') 
  else
    options.merge!('command' => 'addGuestOsMapping', 
    'hypervisor' => args[0], 
    'osnameforhypervisor' => args[1], 
    'hypervisorversion' => args[2])
  end
  request(options)
end

#add_host(*args) ⇒ Object

Adds a new host.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/fog/cloudstack/requests/compute/add_host.rb', line 9

def add_host(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addHost') 
  else
    options.merge!('command' => 'addHost', 
    'url' => args[0], 
    'zoneid' => args[1], 
    'username' => args[2], 
    'password' => args[3], 
    'hypervisor' => args[4], 
    'podid' => args[5])
  end
  request(options)
end

#add_image_store(*args) ⇒ Object

Adds backup image store.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/add_image_store.rb', line 9

def add_image_store(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addImageStore') 
  else
    options.merge!('command' => 'addImageStore', 
    'provider' => args[0])
  end
  request(options)
end

#add_ip_to_nic(*args) ⇒ Object

Assigns secondary IP to NIC

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/add_ip_to_nic.rb', line 9

def add_ip_to_nic(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addIpToNic') 
  else
    options.merge!('command' => 'addIpToNic', 
    'nicid' => args[0])
  end
  request(options)
end

#add_ldap_configuration(*args) ⇒ Object

Add a new Ldap Configuration

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/add_ldap_configuration.rb', line 9

def add_ldap_configuration(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addLdapConfiguration') 
  else
    options.merge!('command' => 'addLdapConfiguration', 
    'port' => args[0], 
    'hostname' => args[1])
  end
  request(options)
end

#add_netscaler_load_balancer(*args) ⇒ Object

Adds a netscaler load balancer device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/add_netscaler_load_balancer.rb', line 9

def add_netscaler_load_balancer(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addNetscalerLoadBalancer') 
  else
    options.merge!('command' => 'addNetscalerLoadBalancer', 
    'username' => args[0], 
    'networkdevicetype' => args[1], 
    'password' => args[2], 
    'physicalnetworkid' => args[3], 
    'url' => args[4])
  end
  request(options)
end

#add_network_device(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/add_network_device.rb', line 9

def add_network_device(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addNetworkDevice') 
  else
    options.merge!('command' => 'addNetworkDevice')
  end
  request(options)
end

#add_network_service_provider(*args) ⇒ Object

Adds a network serviceProvider to a physical network

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/add_network_service_provider.rb', line 9

def add_network_service_provider(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addNetworkServiceProvider') 
  else
    options.merge!('command' => 'addNetworkServiceProvider', 
    'name' => args[0], 
    'physicalnetworkid' => args[1])
  end
  request(options)
end

#add_nic_to_virtual_machine(*args) ⇒ Object

Adds VM to specified network by creating a NIC

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/add_nic_to_virtual_machine.rb', line 9

def add_nic_to_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addNicToVirtualMachine') 
  else
    options.merge!('command' => 'addNicToVirtualMachine', 
    'virtualmachineid' => args[0], 
    'networkid' => args[1])
  end
  request(options)
end

#add_nicira_nvp_device(*args) ⇒ Object

Adds a Nicira NVP device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/add_nicira_nvp_device.rb', line 9

def add_nicira_nvp_device(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addNiciraNvpDevice') 
  else
    options.merge!('command' => 'addNiciraNvpDevice', 
    'physicalnetworkid' => args[0], 
    'transportzoneuuid' => args[1], 
    'username' => args[2], 
    'password' => args[3], 
    'hostname' => args[4])
  end
  request(options)
end

#add_open_daylight_controller(*args) ⇒ Object

Adds an OpenDyalight controler

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/add_open_daylight_controller.rb', line 9

def add_open_daylight_controller(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addOpenDaylightController') 
  else
    options.merge!('command' => 'addOpenDaylightController', 
    'physicalnetworkid' => args[0], 
    'url' => args[1], 
    'password' => args[2], 
    'username' => args[3])
  end
  request(options)
end

#add_palo_alto_firewall(*args) ⇒ Object

Adds a Palo Alto firewall device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/add_palo_alto_firewall.rb', line 9

def add_palo_alto_firewall(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addPaloAltoFirewall') 
  else
    options.merge!('command' => 'addPaloAltoFirewall', 
    'username' => args[0], 
    'networkdevicetype' => args[1], 
    'password' => args[2], 
    'physicalnetworkid' => args[3], 
    'url' => args[4])
  end
  request(options)
end

#add_region(*args) ⇒ Object

Adds a Region

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/add_region.rb', line 9

def add_region(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addRegion') 
  else
    options.merge!('command' => 'addRegion', 
    'id' => args[0], 
    'name' => args[1], 
    'endpoint' => args[2])
  end
  request(options)
end

#add_resource_detail(*args) ⇒ Object

Adds detail for the Resource.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/add_resource_detail.rb', line 9

def add_resource_detail(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addResourceDetail') 
  else
    options.merge!('command' => 'addResourceDetail', 
    'resourcetype' => args[0], 
    'details' => args[1], 
    'resourceid' => args[2])
  end
  request(options)
end

#add_s3(*args) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/add_s3.rb', line 9

def add_s3(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addS3') 
  else
    options.merge!('command' => 'addS3', 
    'accesskey' => args[0], 
    'bucket' => args[1], 
    'secretkey' => args[2])
  end
  request(options)
end

#add_secondary_storage(*args) ⇒ Object

Adds secondary storage.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/add_secondary_storage.rb', line 9

def add_secondary_storage(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addSecondaryStorage') 
  else
    options.merge!('command' => 'addSecondaryStorage', 
    'url' => args[0])
  end
  request(options)
end

#add_srx_firewall(*args) ⇒ Object

Adds a SRX firewall device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/add_srx_firewall.rb', line 9

def add_srx_firewall(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addSrxFirewall') 
  else
    options.merge!('command' => 'addSrxFirewall', 
    'username' => args[0], 
    'networkdevicetype' => args[1], 
    'physicalnetworkid' => args[2], 
    'password' => args[3], 
    'url' => args[4])
  end
  request(options)
end

#add_stratosphere_ssp(*args) ⇒ Object

Adds stratosphere ssp server

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/add_stratosphere_ssp.rb', line 9

def add_stratosphere_ssp(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addStratosphereSsp') 
  else
    options.merge!('command' => 'addStratosphereSsp', 
    'url' => args[0], 
    'zoneid' => args[1], 
    'name' => args[2])
  end
  request(options)
end

#add_swift(*args) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/add_swift.rb', line 9

def add_swift(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addSwift') 
  else
    options.merge!('command' => 'addSwift', 
    'url' => args[0])
  end
  request(options)
end

#add_traffic_monitor(*args) ⇒ Object

Adds Traffic Monitor Host for Direct Network Usage

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/add_traffic_monitor.rb', line 9

def add_traffic_monitor(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addTrafficMonitor') 
  else
    options.merge!('command' => 'addTrafficMonitor', 
    'zoneid' => args[0], 
    'url' => args[1])
  end
  request(options)
end

#add_traffic_type(*args) ⇒ Object

Adds traffic type to a physical network

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/add_traffic_type.rb', line 9

def add_traffic_type(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addTrafficType') 
  else
    options.merge!('command' => 'addTrafficType', 
    'traffictype' => args[0], 
    'physicalnetworkid' => args[1])
  end
  request(options)
end

#add_ucs_manager(*args) ⇒ Object

Adds a Ucs manager

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/add_ucs_manager.rb', line 9

def add_ucs_manager(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addUcsManager') 
  else
    options.merge!('command' => 'addUcsManager', 
    'url' => args[0], 
    'password' => args[1], 
    'username' => args[2], 
    'zoneid' => args[3])
  end
  request(options)
end

#add_vmware_dc(*args) ⇒ Object

Adds a VMware datacenter to specified zone

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/add_vmware_dc.rb', line 9

def add_vmware_dc(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addVmwareDc') 
  else
    options.merge!('command' => 'addVmwareDc', 
    'zoneid' => args[0], 
    'vcenter' => args[1], 
    'name' => args[2])
  end
  request(options)
end

#add_vpn_user(*args) ⇒ Object

Adds vpn users

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/add_vpn_user.rb', line 9

def add_vpn_user(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'addVpnUser') 
  else
    options.merge!('command' => 'addVpnUser', 
    'password' => args[0], 
    'username' => args[1])
  end
  request(options)
end

#archive_alerts(*args) ⇒ Object

Archive one or more alerts.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/archive_alerts.rb', line 9

def archive_alerts(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'archiveAlerts') 
  else
    options.merge!('command' => 'archiveAlerts')
  end
  request(options)
end

#archive_events(*args) ⇒ Object

Archive one or more events.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/archive_events.rb', line 9

def archive_events(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'archiveEvents') 
  else
    options.merge!('command' => 'archiveEvents')
  end
  request(options)
end

#assign_cert_to_load_balancer(*args) ⇒ Object

Assigns a certificate to a Load Balancer Rule

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/assign_cert_to_load_balancer.rb', line 9

def assign_cert_to_load_balancer(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'assignCertToLoadBalancer') 
  else
    options.merge!('command' => 'assignCertToLoadBalancer', 
    'lbruleid' => args[0], 
    'certid' => args[1])
  end
  request(options)
end

#assign_to_global_load_balancer_rule(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb', line 9

def assign_to_global_load_balancer_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'assignToGlobalLoadBalancerRule') 
  else
    options.merge!('command' => 'assignToGlobalLoadBalancerRule', 
    'id' => args[0], 
    'loadbalancerrulelist' => args[1])
  end
  request(options)
end

#assign_to_load_balancer_rule(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/assign_to_load_balancer_rule.rb', line 9

def assign_to_load_balancer_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'assignToLoadBalancerRule') 
  else
    options.merge!('command' => 'assignToLoadBalancerRule', 
    'id' => args[0])
  end
  request(options)
end

#assign_virtual_machine(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/assign_virtual_machine.rb', line 9

def assign_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'assignVirtualMachine') 
  else
    options.merge!('command' => 'assignVirtualMachine', 
    'account' => args[0], 
    'virtualmachineid' => args[1], 
    'domainid' => args[2])
  end
  request(options)
end

#associate_ip_address(*args) ⇒ Object

Acquires and associates a public IP to an account.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/associate_ip_address.rb', line 9

def associate_ip_address(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'associateIpAddress')
  else
    options.merge!('command' => 'associateIpAddress')
  end
  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil
  request(options)
end

#associate_lun(iqn, name, options = {}) ⇒ Object

Associate a LUN with a guest IQN

CloudStack API Reference



9
10
11
12
13
14
15
16
# File 'lib/fog/cloudstack/requests/compute/associate_lun.rb', line 9

def associate_lun(iqn, name, options={})
  options.merge!(
    'command' => 'associateLun', 
    'iqn' => iqn, 
    'name' => name  
  )
  request(options)
end

#associate_ucs_profile_to_blade(*args) ⇒ Object

associate a profile to a blade

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/associate_ucs_profile_to_blade.rb', line 9

def associate_ucs_profile_to_blade(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'associateUcsProfileToBlade') 
  else
    options.merge!('command' => 'associateUcsProfileToBlade', 
    'profiledn' => args[0], 
    'ucsmanagerid' => args[1], 
    'bladeid' => args[2])
  end
  request(options)
end

#attach_iso(*args) ⇒ Object

Attaches an ISO to a virtual machine.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/attach_iso.rb', line 9

def attach_iso(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'attachIso') 
  else
    options.merge!('command' => 'attachIso', 
    'virtualmachineid' => args[0], 
    'id' => args[1])
  end
  request(options)
end

#attach_volume(*args) ⇒ Object

Attaches a disk volume to a virtual machine.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/attach_volume.rb', line 9

def attach_volume(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'attachVolume') 
  else
    options.merge!('command' => 'attachVolume', 
    'virtualmachineid' => args[0], 
    'id' => args[1])
  end
  request(options)
end

#authorize_security_group_egress(*args) ⇒ Object

Authorizes a particular egress rule for this security group

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/authorize_security_group_egress.rb', line 9

def authorize_security_group_egress(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'authorizeSecurityGroupEgress') 
  else
    options.merge!('command' => 'authorizeSecurityGroupEgress')
  end
  request(options)
end

#authorize_security_group_ingress(*args) ⇒ Object

Authorizes a particular ingress rule for this security group

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/authorize_security_group_ingress.rb', line 9

def authorize_security_group_ingress(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'authorizeSecurityGroupIngress') 
  else
    options.merge!('command' => 'authorizeSecurityGroupIngress')
  end
  request(options)
end

#cancel_host_maintenance(*args) ⇒ Object

Cancels host maintenance.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/cancel_host_maintenance.rb', line 9

def cancel_host_maintenance(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'cancelHostMaintenance') 
  else
    options.merge!('command' => 'cancelHostMaintenance', 
    'id' => args[0])
  end
  request(options)
end

#cancel_storage_maintenance(*args) ⇒ Object

Cancels maintenance for primary storage

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/cancel_storage_maintenance.rb', line 9

def cancel_storage_maintenance(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'cancelStorageMaintenance') 
  else
    options.merge!('command' => 'cancelStorageMaintenance', 
    'id' => args[0])
  end
  request(options)
end

#change_service_for_router(*args) ⇒ Object

Upgrades domain router to a new service offering

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/change_service_for_router.rb', line 9

def change_service_for_router(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'changeServiceForRouter') 
  else
    options.merge!('command' => 'changeServiceForRouter', 
    'serviceofferingid' => args[0], 
    'id' => args[1])
  end
  request(options)
end

#change_service_for_system_vm(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/change_service_for_system_vm.rb', line 9

def change_service_for_system_vm(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'changeServiceForSystemVm') 
  else
    options.merge!('command' => 'changeServiceForSystemVm', 
    'id' => args[0], 
    'serviceofferingid' => args[1])
  end
  request(options)
end

#change_service_for_virtual_machine(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/change_service_for_virtual_machine.rb', line 9

def change_service_for_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'changeServiceForVirtualMachine') 
  else
    options.merge!('command' => 'changeServiceForVirtualMachine', 
    'serviceofferingid' => args[0], 
    'id' => args[1])
  end
  request(options)
end

#clean_vmreservations(*args) ⇒ Object

Cleanups VM reservations in the database.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/clean_vmreservations.rb', line 9

def clean_vmreservations(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'cleanVMReservations') 
  else
    options.merge!('command' => 'cleanVMReservations')
  end
  request(options)
end

#configure_f5_load_balancer(*args) ⇒ Object

configures a F5 load balancer device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/configure_f5_load_balancer.rb', line 9

def configure_f5_load_balancer(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'configureF5LoadBalancer') 
  else
    options.merge!('command' => 'configureF5LoadBalancer', 
    'lbdeviceid' => args[0])
  end
  request(options)
end

#configure_internal_load_balancer_element(*args) ⇒ Object

Configures an Internal Load Balancer element.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/configure_internal_load_balancer_element.rb', line 9

def configure_internal_load_balancer_element(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'configureInternalLoadBalancerElement') 
  else
    options.merge!('command' => 'configureInternalLoadBalancerElement', 
    'id' => args[0], 
    'enabled' => args[1])
  end
  request(options)
end

#configure_netscaler_load_balancer(*args) ⇒ Object

configures a netscaler load balancer device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/configure_netscaler_load_balancer.rb', line 9

def configure_netscaler_load_balancer(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'configureNetscalerLoadBalancer') 
  else
    options.merge!('command' => 'configureNetscalerLoadBalancer', 
    'lbdeviceid' => args[0])
  end
  request(options)
end

#configure_ovs_element(*args) ⇒ Object

Configures an ovs element.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/configure_ovs_element.rb', line 9

def configure_ovs_element(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'configureOvsElement') 
  else
    options.merge!('command' => 'configureOvsElement', 
    'id' => args[0], 
    'enabled' => args[1])
  end
  request(options)
end

#configure_palo_alto_firewall(*args) ⇒ Object

Configures a Palo Alto firewall device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/configure_palo_alto_firewall.rb', line 9

def configure_palo_alto_firewall(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'configurePaloAltoFirewall') 
  else
    options.merge!('command' => 'configurePaloAltoFirewall', 
    'fwdeviceid' => args[0])
  end
  request(options)
end

#configure_srx_firewall(*args) ⇒ Object

Configures a SRX firewall device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/configure_srx_firewall.rb', line 9

def configure_srx_firewall(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'configureSrxFirewall') 
  else
    options.merge!('command' => 'configureSrxFirewall', 
    'fwdeviceid' => args[0])
  end
  request(options)
end

#configure_virtual_router_element(*args) ⇒ Object

Configures a virtual router element.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/configure_virtual_router_element.rb', line 9

def configure_virtual_router_element(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'configureVirtualRouterElement') 
  else
    options.merge!('command' => 'configureVirtualRouterElement', 
    'id' => args[0], 
    'enabled' => args[1])
  end
  request(options)
end

#copy_iso(*args) ⇒ Object

Copies an iso from one zone to another.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/copy_iso.rb', line 9

def copy_iso(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'copyIso') 
  else
    options.merge!('command' => 'copyIso', 
    'destzoneid' => args[0], 
    'id' => args[1])
  end
  request(options)
end

#copy_template(*args) ⇒ Object

Copies a template from one zone to another.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/copy_template.rb', line 9

def copy_template(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'copyTemplate') 
  else
    options.merge!('command' => 'copyTemplate', 
    'id' => args[0], 
    'destzoneid' => args[1])
  end
  request(options)
end

#create_account(*args) ⇒ Object

Creates an account

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/fog/cloudstack/requests/compute/create_account.rb', line 9

def (*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createAccount') 
  else
    options.merge!('command' => 'createAccount', 
    'accounttype' => args[0], 
    'lastname' => args[1], 
    'email' => args[2], 
    'firstname' => args[3], 
    'username' => args[4], 
    'password' => args[5])
  end
  request(options)
end

#create_affinity_group(*args) ⇒ Object

Creates an affinity/anti-affinity group

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/create_affinity_group.rb', line 9

def create_affinity_group(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createAffinityGroup') 
  else
    options.merge!('command' => 'createAffinityGroup', 
    'type' => args[0], 
    'name' => args[1])
  end
  request(options)
end

#create_auto_scale_policy(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/create_auto_scale_policy.rb', line 9

def create_auto_scale_policy(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createAutoScalePolicy') 
  else
    options.merge!('command' => 'createAutoScalePolicy', 
    'duration' => args[0], 
    'conditionids' => args[1], 
    'action' => args[2])
  end
  request(options)
end

#create_auto_scale_vm_group(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/fog/cloudstack/requests/compute/create_auto_scale_vm_group.rb', line 9

def create_auto_scale_vm_group(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createAutoScaleVmGroup') 
  else
    options.merge!('command' => 'createAutoScaleVmGroup', 
    'minmembers' => args[0], 
    'scaleuppolicyids' => args[1], 
    'scaledownpolicyids' => args[2], 
    'maxmembers' => args[3], 
    'vmprofileid' => args[4], 
    'lbruleid' => args[5])
  end
  request(options)
end

#create_auto_scale_vm_profile(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/create_auto_scale_vm_profile.rb', line 9

def create_auto_scale_vm_profile(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createAutoScaleVmProfile') 
  else
    options.merge!('command' => 'createAutoScaleVmProfile', 
    'templateid' => args[0], 
    'zoneid' => args[1], 
    'serviceofferingid' => args[2])
  end
  request(options)
end

#create_condition(*args) ⇒ Object

Creates a condition

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/create_condition.rb', line 9

def create_condition(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createCondition') 
  else
    options.merge!('command' => 'createCondition', 
    'threshold' => args[0], 
    'relationaloperator' => args[1], 
    'counterid' => args[2])
  end
  request(options)
end

#create_counter(*args) ⇒ Object

Adds metric counter

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/create_counter.rb', line 9

def create_counter(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createCounter') 
  else
    options.merge!('command' => 'createCounter', 
    'name' => args[0], 
    'value' => args[1], 
    'source' => args[2])
  end
  request(options)
end

#create_disk_offering(*args) ⇒ Object

Creates a disk offering.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/create_disk_offering.rb', line 9

def create_disk_offering(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createDiskOffering') 
  else
    options.merge!('command' => 'createDiskOffering', 
    'displaytext' => args[0], 
    'name' => args[1])
  end
  request(options)
end

#create_domain(*args) ⇒ Object

Creates a domain

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/create_domain.rb', line 9

def create_domain(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createDomain') 
  else
    options.merge!('command' => 'createDomain', 
    'name' => args[0])
  end
  request(options)
end

#create_egress_firewall_rule(*args) ⇒ Object

Creates a egress firewall rule for a given network

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/create_egress_firewall_rule.rb', line 9

def create_egress_firewall_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createEgressFirewallRule')
  else
    options.merge!('command' => 'createEgressFirewallRule',
    'networkid' => args[0],
    'protocol' => args[1])
  end
  request(options)
end

#create_firewall_rule(*args) ⇒ Object

Creates a firewall rule for a given ip address

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/create_firewall_rule.rb', line 9

def create_firewall_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createFirewallRule')
  else
    options.merge!('command' => 'createFirewallRule',
    'ipaddressid' => args[0],
    'protocol' => args[1])
  end
  request(options)
end

#create_global_load_balancer_rule(*args) ⇒ Object

Creates a global load balancer rule

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/create_global_load_balancer_rule.rb', line 9

def create_global_load_balancer_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createGlobalLoadBalancerRule') 
  else
    options.merge!('command' => 'createGlobalLoadBalancerRule', 
    'gslbdomainname' => args[0], 
    'gslbservicetype' => args[1], 
    'regionid' => args[2], 
    'name' => args[3])
  end
  request(options)
end

#create_instance_group(*args) ⇒ Object

Creates a vm group

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/create_instance_group.rb', line 9

def create_instance_group(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createInstanceGroup') 
  else
    options.merge!('command' => 'createInstanceGroup', 
    'name' => args[0])
  end
  request(options)
end

#create_internal_load_balancer_element(*args) ⇒ Object

Create an Internal Load Balancer element.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/create_internal_load_balancer_element.rb', line 9

def create_internal_load_balancer_element(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createInternalLoadBalancerElement') 
  else
    options.merge!('command' => 'createInternalLoadBalancerElement', 
    'nspid' => args[0])
  end
  request(options)
end

#create_ip_forwarding_rule(*args) ⇒ Object

Creates an ip forwarding rule

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/create_ip_forwarding_rule.rb', line 9

def create_ip_forwarding_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createIpForwardingRule') 
  else
    options.merge!('command' => 'createIpForwardingRule', 
    'ipaddressid' => args[0], 
    'protocol' => args[1], 
    'startport' => args[2])
  end
  request(options)
end

#create_lb_health_check_policy(*args) ⇒ Object

Creates a Load Balancer healthcheck policy

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/create_lb_health_check_policy.rb', line 9

def create_lb_health_check_policy(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createLBHealthCheckPolicy') 
  else
    options.merge!('command' => 'createLBHealthCheckPolicy', 
    'lbruleid' => args[0])
  end
  request(options)
end

#create_lb_stickiness_policy(*args) ⇒ Object

Creates a Load Balancer stickiness policy

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/create_lb_stickiness_policy.rb', line 9

def create_lb_stickiness_policy(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createLBStickinessPolicy') 
  else
    options.merge!('command' => 'createLBStickinessPolicy', 
    'methodname' => args[0], 
    'name' => args[1], 
    'lbruleid' => args[2])
  end
  request(options)
end

#create_load_balancer(*args) ⇒ Object

Creates a Load Balancer

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/fog/cloudstack/requests/compute/create_load_balancer.rb', line 9

def create_load_balancer(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createLoadBalancer') 
  else
    options.merge!('command' => 'createLoadBalancer', 
    'sourceipaddressnetworkid' => args[0], 
    'algorithm' => args[1], 
    'networkid' => args[2], 
    'instanceport' => args[3], 
    'scheme' => args[4], 
    'name' => args[5], 
    'sourceport' => args[6])
  end
  request(options)
end

#create_load_balancer_rule(*args) ⇒ Object

Creates a load balancer rule

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/create_load_balancer_rule.rb', line 9

def create_load_balancer_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createLoadBalancerRule') 
  else
    options.merge!('command' => 'createLoadBalancerRule', 
    'name' => args[0], 
    'privateport' => args[1], 
    'algorithm' => args[2], 
    'publicport' => args[3])
  end
  request(options)
end

#create_lun_on_filer(size, name, options = {}) ⇒ Object

Create a LUN from a pool

CloudStack API Reference



9
10
11
12
13
14
15
16
# File 'lib/fog/cloudstack/requests/compute/create_lun_on_filer.rb', line 9

def create_lun_on_filer(size, name, options={})
  options.merge!(
    'command' => 'createLunOnFiler', 
    'size' => size, 
    'name' => name  
  )
  request(options)
end

#create_network(*args) ⇒ Object

Creates a network

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/fog/cloudstack/requests/compute/create_network.rb', line 9

def create_network(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createNetwork')
  else
    options.merge!('command' => 'createNetwork',
    'displaytext' => args[0],
    'zoneid' => args[1],
    'name' => args[2],
    'networkofferingid' => args[3])
  end
  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil
  request(options)
end

#create_network_acl(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/create_network_acl.rb', line 9

def create_network_acl(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createNetworkACL') 
  else
    options.merge!('command' => 'createNetworkACL', 
    'protocol' => args[0])
  end
  request(options)
end

#create_network_acl_list(*args) ⇒ Object

Creates a Network ACL for the given VPC

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/create_network_acl_list.rb', line 9

def create_network_acl_list(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createNetworkACLList') 
  else
    options.merge!('command' => 'createNetworkACLList', 
    'name' => args[0], 
    'vpcid' => args[1])
  end
  request(options)
end

#create_network_offering(*args) ⇒ Object

Creates a network offering.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/create_network_offering.rb', line 9

def create_network_offering(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createNetworkOffering')
  else
    options.merge!('command' => 'createNetworkOffering',
    'traffictype' => args[0],
    'guestiptype' => args[1],
    'name' => args[2],
    'supportedservices' => args[3],
    'displaytext' => args[4])
  end
  request(options)
end

#create_physical_network(*args) ⇒ Object

Creates a physical network

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/create_physical_network.rb', line 9

def create_physical_network(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createPhysicalNetwork') 
  else
    options.merge!('command' => 'createPhysicalNetwork', 
    'name' => args[0], 
    'zoneid' => args[1])
  end
  request(options)
end

#create_pod(*args) ⇒ Object

Creates a new Pod.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/create_pod.rb', line 9

def create_pod(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createPod') 
  else
    options.merge!('command' => 'createPod', 
    'netmask' => args[0], 
    'zoneid' => args[1], 
    'name' => args[2], 
    'gateway' => args[3], 
    'startip' => args[4])
  end
  request(options)
end

#create_pool(algorithm, name, options = {}) ⇒ Object

Create a pool

CloudStack API Reference



9
10
11
12
13
14
15
16
# File 'lib/fog/cloudstack/requests/compute/create_pool.rb', line 9

def create_pool(algorithm, name, options={})
  options.merge!(
    'command' => 'createPool', 
    'algorithm' => algorithm, 
    'name' => name  
  )
  request(options)
end

#create_port_forwarding_rule(*args) ⇒ Object

Creates a port forwarding rule

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/create_port_forwarding_rule.rb', line 9

def create_port_forwarding_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createPortForwardingRule')
  else
    options.merge!('command' => 'createPortForwardingRule',
    'virtualmachineid' => args[0],
    'protocol' => args[1],
    'privateport' => args[2],
    'ipaddressid' => args[3],
    'publicport' => args[4])
  end
  request(options)
end

#create_portable_ip_range(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/create_portable_ip_range.rb', line 9

def create_portable_ip_range(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createPortableIpRange') 
  else
    options.merge!('command' => 'createPortableIpRange', 
    'startip' => args[0], 
    'netmask' => args[1], 
    'regionid' => args[2], 
    'gateway' => args[3], 
    'endip' => args[4])
  end
  request(options)
end

#create_private_gateway(*args) ⇒ Object

Creates a private gateway

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/create_private_gateway.rb', line 9

def create_private_gateway(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createPrivateGateway') 
  else
    options.merge!('command' => 'createPrivateGateway', 
    'ipaddress' => args[0], 
    'vlan' => args[1], 
    'netmask' => args[2], 
    'vpcid' => args[3], 
    'gateway' => args[4])
  end
  request(options)
end

#create_project(*args) ⇒ Object

Creates a project

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/create_project.rb', line 9

def create_project(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createProject') 
  else
    options.merge!('command' => 'createProject', 
    'displaytext' => args[0], 
    'name' => args[1])
  end
  request(options)
end

#create_remote_access_vpn(*args) ⇒ Object

Creates a l2tp/ipsec remote access vpn

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/create_remote_access_vpn.rb', line 9

def create_remote_access_vpn(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createRemoteAccessVpn') 
  else
    options.merge!('command' => 'createRemoteAccessVpn', 
    'publicipid' => args[0])
  end
  request(options)
end

#create_secondary_staging_store(*args) ⇒ Object

create secondary staging store.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/create_secondary_staging_store.rb', line 9

def create_secondary_staging_store(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createSecondaryStagingStore') 
  else
    options.merge!('command' => 'createSecondaryStagingStore', 
    'url' => args[0])
  end
  request(options)
end

#create_security_group(*args) ⇒ Object

Creates a security group

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/create_security_group.rb', line 9

def create_security_group(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createSecurityGroup') 
  else
    options.merge!('command' => 'createSecurityGroup', 
    'name' => args[0])
  end
  request(options)
end

#create_service_instance(*args) ⇒ Object

Creates a system virtual-machine that implements network services

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/fog/cloudstack/requests/compute/create_service_instance.rb', line 9

def create_service_instance(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createServiceInstance') 
  else
    options.merge!('command' => 'createServiceInstance', 
    'name' => args[0], 
    'rightnetworkid' => args[1], 
    'serviceofferingid' => args[2], 
    'leftnetworkid' => args[3], 
    'templateid' => args[4], 
    'zoneid' => args[5])
  end
  request(options)
end

#create_service_offering(*args) ⇒ Object

Creates a service offering.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/create_service_offering.rb', line 9

def create_service_offering(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createServiceOffering')
  else
    options.merge!('command' => 'createServiceOffering',
    'name' => args[0],
    'displaytext' => args[1])
  end
  request(options)
end

#create_snapshot(*args) ⇒ Object

Creates an instant snapshot of a volume.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/create_snapshot.rb', line 9

def create_snapshot(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createSnapshot') 
  else
    options.merge!('command' => 'createSnapshot', 
    'volumeid' => args[0])
  end
  request(options)
end

#create_snapshot_policy(*args) ⇒ Object

Creates a snapshot policy for the account.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/create_snapshot_policy.rb', line 9

def create_snapshot_policy(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createSnapshotPolicy') 
  else
    options.merge!('command' => 'createSnapshotPolicy', 
    'volumeid' => args[0], 
    'maxsnaps' => args[1], 
    'timezone' => args[2], 
    'intervaltype' => args[3], 
    'schedule' => args[4])
  end
  request(options)
end

#create_ssh_key_pair(*args) ⇒ Object

Create a new keypair and returns the private key

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/create_ssh_key_pair.rb', line 9

def create_ssh_key_pair(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createSSHKeyPair')
  else
    options.merge!('command' => 'createSSHKeyPair',
    'name' => args[0])
  end
  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil
  request(options)
end

#create_static_route(*args) ⇒ Object

Creates a static route

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/create_static_route.rb', line 9

def create_static_route(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createStaticRoute') 
  else
    options.merge!('command' => 'createStaticRoute', 
    'gatewayid' => args[0], 
    'cidr' => args[1])
  end
  request(options)
end

#create_storage_network_ip_range(*args) ⇒ Object

Creates a Storage network IP range.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/create_storage_network_ip_range.rb', line 9

def create_storage_network_ip_range(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createStorageNetworkIpRange') 
  else
    options.merge!('command' => 'createStorageNetworkIpRange', 
    'podid' => args[0], 
    'netmask' => args[1], 
    'gateway' => args[2], 
    'startip' => args[3])
  end
  request(options)
end

#create_storage_pool(*args) ⇒ Object

Creates a storage pool.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/create_storage_pool.rb', line 9

def create_storage_pool(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createStoragePool') 
  else
    options.merge!('command' => 'createStoragePool', 
    'url' => args[0], 
    'name' => args[1], 
    'zoneid' => args[2])
  end
  request(options)
end

#create_tags(*args) ⇒ Object

Creates resource tag(s)

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/create_tags.rb', line 9

def create_tags(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createTags') 
  else
    options.merge!('command' => 'createTags', 
    'tags' => args[0], 
    'resourcetype' => args[1], 
    'resourceids' => args[2])
  end
  request(options)
end

#create_template(*args) ⇒ Object

Creates a template of a virtual machine. The virtual machine must be in a STOPPED state. A template created from this command is automatically designated as a private template visible to the account that created it.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/create_template.rb', line 9

def create_template(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createTemplate') 
  else
    options.merge!('command' => 'createTemplate', 
    'ostypeid' => args[0], 
    'name' => args[1], 
    'displaytext' => args[2])
  end
  request(options)
end

#create_user(*args) ⇒ Object

Creates a user for an account that already exists

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/fog/cloudstack/requests/compute/create_user.rb', line 9

def create_user(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createUser') 
  else
    options.merge!('command' => 'createUser', 
    'email' => args[0], 
    'username' => args[1], 
    'lastname' => args[2], 
    'password' => args[3], 
    'firstname' => args[4], 
    'account' => args[5])
  end
  request(options)
end

#create_virtual_router_element(*args) ⇒ Object

Create a virtual router element.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/create_virtual_router_element.rb', line 9

def create_virtual_router_element(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createVirtualRouterElement') 
  else
    options.merge!('command' => 'createVirtualRouterElement', 
    'nspid' => args[0])
  end
  request(options)
end

#create_vlan_ip_range(*args) ⇒ Object

Creates a VLAN IP range.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/create_vlan_ip_range.rb', line 9

def create_vlan_ip_range(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createVlanIpRange') 
  else
    options.merge!('command' => 'createVlanIpRange')
  end
  request(options)
end

#create_vm_snapshot(*args) ⇒ Object

Creates snapshot for a vm.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/create_vm_snapshot.rb', line 9

def create_vm_snapshot(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createVMSnapshot') 
  else
    options.merge!('command' => 'createVMSnapshot', 
    'virtualmachineid' => args[0])
  end
  request(options)
end

#create_volume(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/create_volume.rb', line 9

def create_volume(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createVolume')
  else
    options.merge!('command' => 'createVolume',
    'name' => args[0])
  end
  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil
  request(options)
end

#create_volume_on_filer(password, ipaddress, size, volumename, username, poolname, aggregatename, options = {}) ⇒ Object

Create a volume

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/create_volume_on_filer.rb', line 9

def create_volume_on_filer(password, ipaddress, size, volumename, username, poolname, aggregatename, options={})
  options.merge!(
    'command' => 'createVolumeOnFiler', 
    'password' => password, 
    'ipaddress' => ipaddress, 
    'size' => size, 
    'volumename' => volumename, 
    'username' => username, 
    'poolname' => poolname, 
    'aggregatename' => aggregatename  
  )
  request(options)
end

#create_vpc(*args) ⇒ Object

Creates a VPC

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/create_vpc.rb', line 9

def create_vpc(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createVPC') 
  else
    options.merge!('command' => 'createVPC', 
    'vpcofferingid' => args[0], 
    'zoneid' => args[1], 
    'name' => args[2], 
    'cidr' => args[3], 
    'displaytext' => args[4])
  end
  request(options)
end

#create_vpcoffering(*args) ⇒ Object

Creates VPC offering

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/create_vpcoffering.rb', line 9

def create_vpcoffering(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createVPCOffering') 
  else
    options.merge!('command' => 'createVPCOffering', 
    'supportedservices' => args[0], 
    'name' => args[1], 
    'displaytext' => args[2])
  end
  request(options)
end

#create_vpn_connection(*args) ⇒ Object

Create site to site vpn connection

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/create_vpn_connection.rb', line 9

def create_vpn_connection(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createVpnConnection') 
  else
    options.merge!('command' => 'createVpnConnection', 
    's2svpngatewayid' => args[0], 
    's2scustomergatewayid' => args[1])
  end
  request(options)
end

#create_vpn_customer_gateway(*args) ⇒ Object

Creates site to site vpn customer gateway

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/create_vpn_customer_gateway.rb', line 9

def create_vpn_customer_gateway(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createVpnCustomerGateway') 
  else
    options.merge!('command' => 'createVpnCustomerGateway', 
    'esppolicy' => args[0], 
    'cidrlist' => args[1], 
    'ikepolicy' => args[2], 
    'gateway' => args[3], 
    'ipsecpsk' => args[4])
  end
  request(options)
end

#create_vpn_gateway(*args) ⇒ Object

Creates site to site vpn local gateway

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/create_vpn_gateway.rb', line 9

def create_vpn_gateway(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createVpnGateway') 
  else
    options.merge!('command' => 'createVpnGateway', 
    'vpcid' => args[0])
  end
  request(options)
end

#create_zone(*args) ⇒ Object

Creates a Zone.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/create_zone.rb', line 9

def create_zone(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'createZone') 
  else
    options.merge!('command' => 'createZone', 
    'dns1' => args[0], 
    'internaldns1' => args[1], 
    'networktype' => args[2], 
    'name' => args[3])
  end
  request(options)
end

#dedicate_cluster(*args) ⇒ Object

Dedicate an existing cluster

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/dedicate_cluster.rb', line 9

def dedicate_cluster(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'dedicateCluster') 
  else
    options.merge!('command' => 'dedicateCluster', 
    'clusterid' => args[0], 
    'domainid' => args[1])
  end
  request(options)
end

#dedicate_guest_vlan_range(*args) ⇒ Object

Dedicates a guest vlan range to an account

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/dedicate_guest_vlan_range.rb', line 9

def dedicate_guest_vlan_range(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'dedicateGuestVlanRange') 
  else
    options.merge!('command' => 'dedicateGuestVlanRange', 
    'account' => args[0], 
    'domainid' => args[1], 
    'vlanrange' => args[2], 
    'physicalnetworkid' => args[3])
  end
  request(options)
end

#dedicate_host(*args) ⇒ Object

Dedicates a host.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/dedicate_host.rb', line 9

def dedicate_host(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'dedicateHost') 
  else
    options.merge!('command' => 'dedicateHost', 
    'hostid' => args[0], 
    'domainid' => args[1])
  end
  request(options)
end

#dedicate_pod(*args) ⇒ Object

Dedicates a Pod.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/dedicate_pod.rb', line 9

def dedicate_pod(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'dedicatePod') 
  else
    options.merge!('command' => 'dedicatePod', 
    'podid' => args[0], 
    'domainid' => args[1])
  end
  request(options)
end

#dedicate_public_ip_range(*args) ⇒ Object

Dedicates a Public IP range to an account

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/dedicate_public_ip_range.rb', line 9

def dedicate_public_ip_range(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'dedicatePublicIpRange') 
  else
    options.merge!('command' => 'dedicatePublicIpRange', 
    'domainid' => args[0], 
    'account' => args[1], 
    'id' => args[2])
  end
  request(options)
end

#dedicate_zone(*args) ⇒ Object

Dedicates a zones.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/dedicate_zone.rb', line 9

def dedicate_zone(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'dedicateZone') 
  else
    options.merge!('command' => 'dedicateZone', 
    'domainid' => args[0], 
    'zoneid' => args[1])
  end
  request(options)
end

#delete_account(*args) ⇒ Object

Deletes a account, and all users associated with this account

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_account.rb', line 9

def (*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteAccount') 
  else
    options.merge!('command' => 'deleteAccount', 
    'id' => args[0])
  end
  request(options)
end

#delete_account_from_project(*args) ⇒ Object

Deletes account from the project

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/delete_account_from_project.rb', line 9

def (*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteAccountFromProject') 
  else
    options.merge!('command' => 'deleteAccountFromProject', 
    'projectid' => args[0], 
    'account' => args[1])
  end
  request(options)
end

#delete_affinity_group(*args) ⇒ Object

Deletes affinity group

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/delete_affinity_group.rb', line 9

def delete_affinity_group(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteAffinityGroup') 
  else
    options.merge!('command' => 'deleteAffinityGroup')
  end
  request(options)
end

#delete_alerts(*args) ⇒ Object

Delete one or more alerts.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/delete_alerts.rb', line 9

def delete_alerts(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteAlerts') 
  else
    options.merge!('command' => 'deleteAlerts')
  end
  request(options)
end

#delete_auto_scale_policy(*args) ⇒ Object

Deletes a autoscale policy.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_auto_scale_policy.rb', line 9

def delete_auto_scale_policy(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteAutoScalePolicy') 
  else
    options.merge!('command' => 'deleteAutoScalePolicy', 
    'id' => args[0])
  end
  request(options)
end

#delete_auto_scale_vm_group(*args) ⇒ Object

Deletes a autoscale vm group.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_group.rb', line 9

def delete_auto_scale_vm_group(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteAutoScaleVmGroup') 
  else
    options.merge!('command' => 'deleteAutoScaleVmGroup', 
    'id' => args[0])
  end
  request(options)
end

#delete_auto_scale_vm_profile(*args) ⇒ Object

Deletes a autoscale vm profile.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_profile.rb', line 9

def delete_auto_scale_vm_profile(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteAutoScaleVmProfile') 
  else
    options.merge!('command' => 'deleteAutoScaleVmProfile', 
    'id' => args[0])
  end
  request(options)
end

#delete_big_switch_vns_device(*args) ⇒ Object

delete a bigswitch vns device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_big_switch_vns_device.rb', line 9

def delete_big_switch_vns_device(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteBigSwitchVnsDevice') 
  else
    options.merge!('command' => 'deleteBigSwitchVnsDevice', 
    'vnsdeviceid' => args[0])
  end
  request(options)
end

#delete_cisco_asa1000v_resource(*args) ⇒ Object

Deletes a Cisco ASA 1000v appliance

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_cisco_asa1000v_resource.rb', line 9

def delete_cisco_asa1000v_resource(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteCiscoAsa1000vResource') 
  else
    options.merge!('command' => 'deleteCiscoAsa1000vResource', 
    'resourceid' => args[0])
  end
  request(options)
end

#delete_cisco_nexus_vsm(*args) ⇒ Object

delete a Cisco Nexus VSM device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_cisco_nexus_vsm.rb', line 9

def delete_cisco_nexus_vsm(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteCiscoNexusVSM') 
  else
    options.merge!('command' => 'deleteCiscoNexusVSM', 
    'id' => args[0])
  end
  request(options)
end

#delete_cisco_vnmc_resource(*args) ⇒ Object

Deletes a Cisco Vnmc controller

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_cisco_vnmc_resource.rb', line 9

def delete_cisco_vnmc_resource(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteCiscoVnmcResource') 
  else
    options.merge!('command' => 'deleteCiscoVnmcResource', 
    'resourceid' => args[0])
  end
  request(options)
end

#delete_cluster(*args) ⇒ Object

Deletes a cluster.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_cluster.rb', line 9

def delete_cluster(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteCluster') 
  else
    options.merge!('command' => 'deleteCluster', 
    'id' => args[0])
  end
  request(options)
end

#delete_condition(*args) ⇒ Object

Removes a condition

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_condition.rb', line 9

def delete_condition(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteCondition') 
  else
    options.merge!('command' => 'deleteCondition', 
    'id' => args[0])
  end
  request(options)
end

#delete_counter(*args) ⇒ Object

Deletes a counter

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_counter.rb', line 9

def delete_counter(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteCounter') 
  else
    options.merge!('command' => 'deleteCounter', 
    'id' => args[0])
  end
  request(options)
end

#delete_disk_offering(*args) ⇒ Object

Updates a disk offering.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_disk_offering.rb', line 9

def delete_disk_offering(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteDiskOffering') 
  else
    options.merge!('command' => 'deleteDiskOffering', 
    'id' => args[0])
  end
  request(options)
end

#delete_domain(*args) ⇒ Object

Deletes a specified domain

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_domain.rb', line 9

def delete_domain(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteDomain') 
  else
    options.merge!('command' => 'deleteDomain', 
    'id' => args[0])
  end
  request(options)
end

#delete_egress_firewall_rule(*args) ⇒ Object

Deletes an ggress firewall rule

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_egress_firewall_rule.rb', line 9

def delete_egress_firewall_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteEgressFirewallRule')
  else
    options.merge!('command' => 'deleteEgressFirewallRule',
    'id' => args[0])
  end
  request(options)
end

#delete_events(*args) ⇒ Object

Delete one or more events.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/delete_events.rb', line 9

def delete_events(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteEvents') 
  else
    options.merge!('command' => 'deleteEvents')
  end
  request(options)
end

#delete_external_firewall(*args) ⇒ Object

Deletes an external firewall appliance.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_external_firewall.rb', line 9

def delete_external_firewall(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteExternalFirewall') 
  else
    options.merge!('command' => 'deleteExternalFirewall', 
    'id' => args[0])
  end
  request(options)
end

#delete_external_load_balancer(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_external_load_balancer.rb', line 9

def delete_external_load_balancer(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteExternalLoadBalancer') 
  else
    options.merge!('command' => 'deleteExternalLoadBalancer', 
    'id' => args[0])
  end
  request(options)
end

#delete_f5_load_balancer(*args) ⇒ Object

delete a F5 load balancer device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_f5_load_balancer.rb', line 9

def delete_f5_load_balancer(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteF5LoadBalancer') 
  else
    options.merge!('command' => 'deleteF5LoadBalancer', 
    'lbdeviceid' => args[0])
  end
  request(options)
end

#delete_firewall_rule(*args) ⇒ Object

Deletes a firewall rule

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_firewall_rule.rb', line 9

def delete_firewall_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteFirewallRule')
  else
    options.merge!('command' => 'deleteFirewallRule',
    'id' => args[0])
  end
  request(options)
end

#delete_global_load_balancer_rule(*args) ⇒ Object

Deletes a global load balancer rule.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_global_load_balancer_rule.rb', line 9

def delete_global_load_balancer_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteGlobalLoadBalancerRule') 
  else
    options.merge!('command' => 'deleteGlobalLoadBalancerRule', 
    'id' => args[0])
  end
  request(options)
end

#delete_host(*args) ⇒ Object

Deletes a host.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_host.rb', line 9

def delete_host(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteHost') 
  else
    options.merge!('command' => 'deleteHost', 
    'id' => args[0])
  end
  request(options)
end

#delete_image_store(*args) ⇒ Object

Deletes an image store .

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_image_store.rb', line 9

def delete_image_store(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteImageStore') 
  else
    options.merge!('command' => 'deleteImageStore', 
    'id' => args[0])
  end
  request(options)
end

#delete_instance_group(*args) ⇒ Object

Deletes a vm group

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_instance_group.rb', line 9

def delete_instance_group(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteInstanceGroup') 
  else
    options.merge!('command' => 'deleteInstanceGroup', 
    'id' => args[0])
  end
  request(options)
end

#delete_ip_forwarding_rule(*args) ⇒ Object

Deletes an ip forwarding rule

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_ip_forwarding_rule.rb', line 9

def delete_ip_forwarding_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteIpForwardingRule') 
  else
    options.merge!('command' => 'deleteIpForwardingRule', 
    'id' => args[0])
  end
  request(options)
end

#delete_iso(*args) ⇒ Object

Deletes an ISO file.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_iso.rb', line 9

def delete_iso(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteIso') 
  else
    options.merge!('command' => 'deleteIso', 
    'id' => args[0])
  end
  request(options)
end

#delete_lb_health_check_policy(*args) ⇒ Object

Deletes a load balancer HealthCheck policy.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_lb_health_check_policy.rb', line 9

def delete_lb_health_check_policy(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteLBHealthCheckPolicy') 
  else
    options.merge!('command' => 'deleteLBHealthCheckPolicy', 
    'id' => args[0])
  end
  request(options)
end

#delete_lb_stickiness_policy(*args) ⇒ Object

Deletes a LB stickiness policy.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_lb_stickiness_policy.rb', line 9

def delete_lb_stickiness_policy(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteLBStickinessPolicy') 
  else
    options.merge!('command' => 'deleteLBStickinessPolicy', 
    'id' => args[0])
  end
  request(options)
end

#delete_ldap_configuration(*args) ⇒ Object

Remove an Ldap Configuration

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_ldap_configuration.rb', line 9

def delete_ldap_configuration(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteLdapConfiguration') 
  else
    options.merge!('command' => 'deleteLdapConfiguration', 
    'hostname' => args[0])
  end
  request(options)
end

#delete_load_balancer(*args) ⇒ Object

Deletes a load balancer

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_load_balancer.rb', line 9

def delete_load_balancer(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteLoadBalancer') 
  else
    options.merge!('command' => 'deleteLoadBalancer', 
    'id' => args[0])
  end
  request(options)
end

#delete_load_balancer_rule(*args) ⇒ Object

Deletes a load balancer rule.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_load_balancer_rule.rb', line 9

def delete_load_balancer_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteLoadBalancerRule') 
  else
    options.merge!('command' => 'deleteLoadBalancerRule', 
    'id' => args[0])
  end
  request(options)
end

#delete_netscaler_load_balancer(*args) ⇒ Object

delete a netscaler load balancer device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_netscaler_load_balancer.rb', line 9

def delete_netscaler_load_balancer(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteNetscalerLoadBalancer') 
  else
    options.merge!('command' => 'deleteNetscalerLoadBalancer', 
    'lbdeviceid' => args[0])
  end
  request(options)
end

#delete_network(*args) ⇒ Object

Deletes a network

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_network.rb', line 9

def delete_network(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteNetwork') 
  else
    options.merge!('command' => 'deleteNetwork', 
    'id' => args[0])
  end
  request(options)
end

#delete_network_acl(*args) ⇒ Object

Deletes a Network ACL

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_network_acl.rb', line 9

def delete_network_acl(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteNetworkACL') 
  else
    options.merge!('command' => 'deleteNetworkACL', 
    'id' => args[0])
  end
  request(options)
end

#delete_network_acl_list(*args) ⇒ Object

Deletes a Network ACL

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_network_acl_list.rb', line 9

def delete_network_acl_list(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteNetworkACLList') 
  else
    options.merge!('command' => 'deleteNetworkACLList', 
    'id' => args[0])
  end
  request(options)
end

#delete_network_device(*args) ⇒ Object

Deletes network device.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_network_device.rb', line 9

def delete_network_device(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteNetworkDevice') 
  else
    options.merge!('command' => 'deleteNetworkDevice', 
    'id' => args[0])
  end
  request(options)
end

#delete_network_offering(*args) ⇒ Object

Deletes a network offering.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_network_offering.rb', line 9

def delete_network_offering(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteNetworkOffering')
  else
    options.merge!('command' => 'deleteNetworkOffering',
    'id' => args[0])
  end
  request(options)
end

#delete_network_service_provider(*args) ⇒ Object

Deletes a Network Service Provider.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_network_service_provider.rb', line 9

def delete_network_service_provider(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteNetworkServiceProvider') 
  else
    options.merge!('command' => 'deleteNetworkServiceProvider', 
    'id' => args[0])
  end
  request(options)
end

#delete_nicira_nvp_device(*args) ⇒ Object

delete a nicira nvp device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_nicira_nvp_device.rb', line 9

def delete_nicira_nvp_device(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteNiciraNvpDevice') 
  else
    options.merge!('command' => 'deleteNiciraNvpDevice', 
    'nvpdeviceid' => args[0])
  end
  request(options)
end

#delete_open_daylight_controller(*args) ⇒ Object

Removes an OpenDyalight controler

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_open_daylight_controller.rb', line 9

def delete_open_daylight_controller(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteOpenDaylightController') 
  else
    options.merge!('command' => 'deleteOpenDaylightController', 
    'id' => args[0])
  end
  request(options)
end

#delete_palo_alto_firewall(*args) ⇒ Object

delete a Palo Alto firewall device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_palo_alto_firewall.rb', line 9

def delete_palo_alto_firewall(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deletePaloAltoFirewall') 
  else
    options.merge!('command' => 'deletePaloAltoFirewall', 
    'fwdeviceid' => args[0])
  end
  request(options)
end

#delete_physical_network(*args) ⇒ Object

Deletes a Physical Network.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_physical_network.rb', line 9

def delete_physical_network(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deletePhysicalNetwork') 
  else
    options.merge!('command' => 'deletePhysicalNetwork', 
    'id' => args[0])
  end
  request(options)
end

#delete_pod(*args) ⇒ Object

Deletes a Pod.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_pod.rb', line 9

def delete_pod(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deletePod') 
  else
    options.merge!('command' => 'deletePod', 
    'id' => args[0])
  end
  request(options)
end

#delete_pool(poolname, options = {}) ⇒ Object

Delete a pool

CloudStack API Reference



9
10
11
12
13
14
15
# File 'lib/fog/cloudstack/requests/compute/delete_pool.rb', line 9

def delete_pool(poolname, options={})
  options.merge!(
    'command' => 'deletePool', 
    'poolname' => poolname  
  )
  request(options)
end

#delete_port_forwarding_rule(*args) ⇒ Object

Deletes a port forwarding rule

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_port_forwarding_rule.rb', line 9

def delete_port_forwarding_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deletePortForwardingRule') 
  else
    options.merge!('command' => 'deletePortForwardingRule', 
    'id' => args[0])
  end
  request(options)
end

#delete_portable_ip_range(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_portable_ip_range.rb', line 9

def delete_portable_ip_range(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deletePortableIpRange') 
  else
    options.merge!('command' => 'deletePortableIpRange', 
    'id' => args[0])
  end
  request(options)
end

#delete_private_gateway(*args) ⇒ Object

Deletes a Private gateway

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_private_gateway.rb', line 9

def delete_private_gateway(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deletePrivateGateway') 
  else
    options.merge!('command' => 'deletePrivateGateway', 
    'id' => args[0])
  end
  request(options)
end

#delete_project(*args) ⇒ Object

Deletes a project

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_project.rb', line 9

def delete_project(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteProject') 
  else
    options.merge!('command' => 'deleteProject', 
    'id' => args[0])
  end
  request(options)
end

#delete_project_invitation(*args) ⇒ Object

Accepts or declines project invitation

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_project_invitation.rb', line 9

def delete_project_invitation(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteProjectInvitation') 
  else
    options.merge!('command' => 'deleteProjectInvitation', 
    'id' => args[0])
  end
  request(options)
end

#delete_remote_access_vpn(*args) ⇒ Object

Destroys a l2tp/ipsec remote access vpn

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_remote_access_vpn.rb', line 9

def delete_remote_access_vpn(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteRemoteAccessVpn') 
  else
    options.merge!('command' => 'deleteRemoteAccessVpn', 
    'publicipid' => args[0])
  end
  request(options)
end

#delete_secondary_staging_store(*args) ⇒ Object

Deletes a secondary staging store .

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_secondary_staging_store.rb', line 9

def delete_secondary_staging_store(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteSecondaryStagingStore') 
  else
    options.merge!('command' => 'deleteSecondaryStagingStore', 
    'id' => args[0])
  end
  request(options)
end

#delete_security_group(*args) ⇒ Object

Deletes security group

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/delete_security_group.rb', line 9

def delete_security_group(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteSecurityGroup') 
  else
    options.merge!('command' => 'deleteSecurityGroup')
  end
  request(options)
end

#delete_service_offering(*args) ⇒ Object

Deletes a service offering.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_service_offering.rb', line 9

def delete_service_offering(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteServiceOffering')
  else
    options.merge!('command' => 'deleteServiceOffering',
    'id' => args[0])
  end
  request(options)
end

#delete_snapshot(*args) ⇒ Object

Deletes a snapshot of a disk volume.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_snapshot.rb', line 9

def delete_snapshot(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteSnapshot') 
  else
    options.merge!('command' => 'deleteSnapshot', 
    'id' => args[0])
  end
  request(options)
end

#delete_snapshot_policies(*args) ⇒ Object

Deletes snapshot policies for the account.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/delete_snapshot_policies.rb', line 9

def delete_snapshot_policies(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteSnapshotPolicies') 
  else
    options.merge!('command' => 'deleteSnapshotPolicies')
  end
  request(options)
end

#delete_srx_firewall(*args) ⇒ Object

delete a SRX firewall device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_srx_firewall.rb', line 9

def delete_srx_firewall(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteSrxFirewall') 
  else
    options.merge!('command' => 'deleteSrxFirewall', 
    'fwdeviceid' => args[0])
  end
  request(options)
end

#delete_ssh_key_pair(*args) ⇒ Object

Deletes a keypair by name

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/delete_ssh_key_pair.rb', line 9

def delete_ssh_key_pair(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteSSHKeyPair')
  else
    options.merge!('command' => 'deleteSSHKeyPair',
    'name' => args[0])
  end
  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil
  request(options)
end

#delete_ssl_cert(*args) ⇒ Object

Delete a certificate to cloudstack

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_ssl_cert.rb', line 9

def delete_ssl_cert(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteSslCert') 
  else
    options.merge!('command' => 'deleteSslCert', 
    'id' => args[0])
  end
  request(options)
end

#delete_static_route(*args) ⇒ Object

Deletes a static route

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_static_route.rb', line 9

def delete_static_route(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteStaticRoute') 
  else
    options.merge!('command' => 'deleteStaticRoute', 
    'id' => args[0])
  end
  request(options)
end

#delete_storage_network_ip_range(*args) ⇒ Object

Deletes a storage network IP Range.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_storage_network_ip_range.rb', line 9

def delete_storage_network_ip_range(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteStorageNetworkIpRange') 
  else
    options.merge!('command' => 'deleteStorageNetworkIpRange', 
    'id' => args[0])
  end
  request(options)
end

#delete_storage_pool(*args) ⇒ Object

Deletes a storage pool.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_storage_pool.rb', line 9

def delete_storage_pool(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteStoragePool') 
  else
    options.merge!('command' => 'deleteStoragePool', 
    'id' => args[0])
  end
  request(options)
end

#delete_tags(*args) ⇒ Object

Deleting resource tag(s)

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/delete_tags.rb', line 9

def delete_tags(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteTags') 
  else
    options.merge!('command' => 'deleteTags', 
    'resourceids' => args[0], 
    'resourcetype' => args[1])
  end
  request(options)
end

#delete_template(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_template.rb', line 9

def delete_template(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteTemplate') 
  else
    options.merge!('command' => 'deleteTemplate', 
    'id' => args[0])
  end
  request(options)
end

#delete_traffic_monitor(*args) ⇒ Object

Deletes an traffic monitor host.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_traffic_monitor.rb', line 9

def delete_traffic_monitor(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteTrafficMonitor') 
  else
    options.merge!('command' => 'deleteTrafficMonitor', 
    'id' => args[0])
  end
  request(options)
end

#delete_traffic_type(*args) ⇒ Object

Deletes traffic type of a physical network

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_traffic_type.rb', line 9

def delete_traffic_type(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteTrafficType') 
  else
    options.merge!('command' => 'deleteTrafficType', 
    'id' => args[0])
  end
  request(options)
end

#delete_ucs_manager(ucsmanagerid, options = {}) ⇒ Object

Delete a Ucs manager

CloudStack API Reference



9
10
11
12
13
14
15
# File 'lib/fog/cloudstack/requests/compute/delete_ucs_manager.rb', line 9

def delete_ucs_manager(ucsmanagerid, options={})
  options.merge!(
    'command' => 'deleteUcsManager', 
    'ucsmanagerid' => ucsmanagerid  
  )
  request(options)
end

#delete_user(*args) ⇒ Object

Deletes a user for an account

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_user.rb', line 9

def delete_user(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteUser') 
  else
    options.merge!('command' => 'deleteUser', 
    'id' => args[0])
  end
  request(options)
end

#delete_vlan_ip_range(*args) ⇒ Object

Creates a VLAN IP range.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_vlan_ip_range.rb', line 9

def delete_vlan_ip_range(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteVlanIpRange') 
  else
    options.merge!('command' => 'deleteVlanIpRange', 
    'id' => args[0])
  end
  request(options)
end

#delete_vm_snapshot(*args) ⇒ Object

Deletes a vmsnapshot.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_vm_snapshot.rb', line 9

def delete_vm_snapshot(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteVMSnapshot') 
  else
    options.merge!('command' => 'deleteVMSnapshot', 
    'vmsnapshotid' => args[0])
  end
  request(options)
end

#delete_volume(*args) ⇒ Object

Deletes a detached disk volume.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_volume.rb', line 9

def delete_volume(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteVolume') 
  else
    options.merge!('command' => 'deleteVolume', 
    'id' => args[0])
  end
  request(options)
end

#delete_vpc(*args) ⇒ Object

Deletes a VPC

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_vpc.rb', line 9

def delete_vpc(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteVPC') 
  else
    options.merge!('command' => 'deleteVPC', 
    'id' => args[0])
  end
  request(options)
end

#delete_vpcoffering(*args) ⇒ Object

Deletes VPC offering

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_vpcoffering.rb', line 9

def delete_vpcoffering(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteVPCOffering') 
  else
    options.merge!('command' => 'deleteVPCOffering', 
    'id' => args[0])
  end
  request(options)
end

#delete_vpn_connection(*args) ⇒ Object

Delete site to site vpn connection

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_vpn_connection.rb', line 9

def delete_vpn_connection(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteVpnConnection') 
  else
    options.merge!('command' => 'deleteVpnConnection', 
    'id' => args[0])
  end
  request(options)
end

#delete_vpn_customer_gateway(*args) ⇒ Object

Delete site to site vpn customer gateway

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_vpn_customer_gateway.rb', line 9

def delete_vpn_customer_gateway(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteVpnCustomerGateway') 
  else
    options.merge!('command' => 'deleteVpnCustomerGateway', 
    'id' => args[0])
  end
  request(options)
end

#delete_vpn_gateway(*args) ⇒ Object

Delete site to site vpn gateway

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_vpn_gateway.rb', line 9

def delete_vpn_gateway(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteVpnGateway') 
  else
    options.merge!('command' => 'deleteVpnGateway', 
    'id' => args[0])
  end
  request(options)
end

#delete_zone(*args) ⇒ Object

Deletes a Zone.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/delete_zone.rb', line 9

def delete_zone(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deleteZone') 
  else
    options.merge!('command' => 'deleteZone', 
    'id' => args[0])
  end
  request(options)
end

#deploy_virtual_machine(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb', line 9

def deploy_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'deployVirtualMachine')
  else
    options.merge!('command' => 'deployVirtualMachine',
    'templateid' => args[0],
    'zoneid' => args[1],
    'serviceofferingid' => args[2])
  end
  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil
  request(options)
end

#destroy_lun_on_filer(path, options = {}) ⇒ Object

Destroy a LUN

CloudStack API Reference



9
10
11
12
13
14
15
# File 'lib/fog/cloudstack/requests/compute/destroy_lun_on_filer.rb', line 9

def destroy_lun_on_filer(path, options={})
  options.merge!(
    'command' => 'destroyLunOnFiler', 
    'path' => path  
  )
  request(options)
end

#destroy_router(*args) ⇒ Object

Destroys a router.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/destroy_router.rb', line 9

def destroy_router(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'destroyRouter') 
  else
    options.merge!('command' => 'destroyRouter', 
    'id' => args[0])
  end
  request(options)
end

#destroy_system_vm(*args) ⇒ Object

Destroyes a system virtual machine.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/destroy_system_vm.rb', line 9

def destroy_system_vm(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'destroySystemVm') 
  else
    options.merge!('command' => 'destroySystemVm', 
    'id' => args[0])
  end
  request(options)
end

#destroy_virtual_machine(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/destroy_virtual_machine.rb', line 9

def destroy_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'destroyVirtualMachine') 
  else
    options.merge!('command' => 'destroyVirtualMachine', 
    'id' => args[0])
  end
  request(options)
end

#destroy_volume_on_filer(ipaddress, aggregatename, volumename, options = {}) ⇒ Object

Destroy a Volume

CloudStack API Reference



9
10
11
12
13
14
15
16
17
# File 'lib/fog/cloudstack/requests/compute/destroy_volume_on_filer.rb', line 9

def destroy_volume_on_filer(ipaddress, aggregatename, volumename, options={})
  options.merge!(
    'command' => 'destroyVolumeOnFiler', 
    'ipaddress' => ipaddress, 
    'aggregatename' => aggregatename, 
    'volumename' => volumename  
  )
  request(options)
end

#detach_iso(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/detach_iso.rb', line 9

def detach_iso(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'detachIso') 
  else
    options.merge!('command' => 'detachIso', 
    'virtualmachineid' => args[0])
  end
  request(options)
end

#detach_volume(*args) ⇒ Object

Detaches a disk volume from a virtual machine.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/detach_volume.rb', line 9

def detach_volume(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'detachVolume') 
  else
    options.merge!('command' => 'detachVolume')
  end
  request(options)
end

#disable_account(*args) ⇒ Object

Disables an account

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/disable_account.rb', line 9

def (*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'disableAccount') 
  else
    options.merge!('command' => 'disableAccount', 
    'lock' => args[0])
  end
  request(options)
end

#disable_auto_scale_vm_group(*args) ⇒ Object

Disables an AutoScale Vm Group

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/disable_auto_scale_vm_group.rb', line 9

def disable_auto_scale_vm_group(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'disableAutoScaleVmGroup') 
  else
    options.merge!('command' => 'disableAutoScaleVmGroup', 
    'id' => args[0])
  end
  request(options)
end

#disable_cisco_nexus_vsm(*args) ⇒ Object

disable a Cisco Nexus VSM device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/disable_cisco_nexus_vsm.rb', line 9

def disable_cisco_nexus_vsm(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'disableCiscoNexusVSM') 
  else
    options.merge!('command' => 'disableCiscoNexusVSM', 
    'id' => args[0])
  end
  request(options)
end

#disable_static_nat(*args) ⇒ Object

Disables static rule for given ip address

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/disable_static_nat.rb', line 9

def disable_static_nat(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'disableStaticNat') 
  else
    options.merge!('command' => 'disableStaticNat', 
    'ipaddressid' => args[0])
  end
  request(options)
end

#disable_user(*args) ⇒ Object

Disables a user account

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/disable_user.rb', line 9

def disable_user(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'disableUser') 
  else
    options.merge!('command' => 'disableUser', 
    'id' => args[0])
  end
  request(options)
end

#disassociate_ip_address(*args) ⇒ Object

Disassociates an ip address from the account.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/disassociate_ip_address.rb', line 9

def disassociate_ip_address(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'disassociateIpAddress')
  else
    options.merge!('command' => 'disassociateIpAddress',
    'id' => args[0])
  end
  request(options)
end

#disassociate_ucs_profile_from_blade(bladeid, options = {}) ⇒ Object

disassociate a profile from a blade

CloudStack API Reference



9
10
11
12
13
14
15
# File 'lib/fog/cloudstack/requests/compute/disassociate_ucs_profile_from_blade.rb', line 9

def disassociate_ucs_profile_from_blade(bladeid, options={})
  options.merge!(
    'command' => 'disassociateUcsProfileFromBlade', 
    'bladeid' => bladeid  
  )
  request(options)
end

#dissociate_lun(iqn, path, options = {}) ⇒ Object

Dissociate a LUN

CloudStack API Reference



9
10
11
12
13
14
15
16
# File 'lib/fog/cloudstack/requests/compute/dissociate_lun.rb', line 9

def dissociate_lun(iqn, path, options={})
  options.merge!(
    'command' => 'dissociateLun', 
    'iqn' => iqn, 
    'path' => path  
  )
  request(options)
end

#enable_account(*args) ⇒ Object

Enables an account

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/enable_account.rb', line 9

def (*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'enableAccount') 
  else
    options.merge!('command' => 'enableAccount')
  end
  request(options)
end

#enable_auto_scale_vm_group(*args) ⇒ Object

Enables an AutoScale Vm Group

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/enable_auto_scale_vm_group.rb', line 9

def enable_auto_scale_vm_group(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'enableAutoScaleVmGroup') 
  else
    options.merge!('command' => 'enableAutoScaleVmGroup', 
    'id' => args[0])
  end
  request(options)
end

#enable_cisco_nexus_vsm(*args) ⇒ Object

Enable a Cisco Nexus VSM device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/enable_cisco_nexus_vsm.rb', line 9

def enable_cisco_nexus_vsm(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'enableCiscoNexusVSM') 
  else
    options.merge!('command' => 'enableCiscoNexusVSM', 
    'id' => args[0])
  end
  request(options)
end

#enable_static_nat(*args) ⇒ Object

Enables static nat for given ip address

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/enable_static_nat.rb', line 9

def enable_static_nat(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'enableStaticNat') 
  else
    options.merge!('command' => 'enableStaticNat', 
    'ipaddressid' => args[0], 
    'virtualmachineid' => args[1])
  end
  request(options)
end

#enable_storage_maintenance(*args) ⇒ Object

Puts storage pool into maintenance state

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/enable_storage_maintenance.rb', line 9

def enable_storage_maintenance(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'enableStorageMaintenance') 
  else
    options.merge!('command' => 'enableStorageMaintenance', 
    'id' => args[0])
  end
  request(options)
end

#enable_user(*args) ⇒ Object

Enables a user account

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/enable_user.rb', line 9

def enable_user(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'enableUser') 
  else
    options.merge!('command' => 'enableUser', 
    'id' => args[0])
  end
  request(options)
end

#expunge_virtual_machine(*args) ⇒ Object

Expunge a virtual machine. Once expunged, it cannot be recoverd.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/expunge_virtual_machine.rb', line 9

def expunge_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'expungeVirtualMachine') 
  else
    options.merge!('command' => 'expungeVirtualMachine', 
    'id' => args[0])
  end
  request(options)
end

#extract_iso(*args) ⇒ Object

Extracts an ISO

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/extract_iso.rb', line 9

def extract_iso(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'extractIso') 
  else
    options.merge!('command' => 'extractIso', 
    'id' => args[0], 
    'mode' => args[1])
  end
  request(options)
end

#extract_template(*args) ⇒ Object

Extracts a template

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/extract_template.rb', line 9

def extract_template(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'extractTemplate') 
  else
    options.merge!('command' => 'extractTemplate', 
    'mode' => args[0], 
    'id' => args[1])
  end
  request(options)
end

#extract_volume(*args) ⇒ Object

Extracts volume

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/extract_volume.rb', line 9

def extract_volume(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'extractVolume') 
  else
    options.merge!('command' => 'extractVolume', 
    'mode' => args[0], 
    'id' => args[1], 
    'zoneid' => args[2])
  end
  request(options)
end

#find_hosts_for_migration(*args) ⇒ Object

Find hosts suitable for migrating a virtual machine.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/find_hosts_for_migration.rb', line 9

def find_hosts_for_migration(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'findHostsForMigration') 
  else
    options.merge!('command' => 'findHostsForMigration', 
    'virtualmachineid' => args[0])
  end
  request(options)
end

#find_storage_pools_for_migration(*args) ⇒ Object

Lists storage pools available for migration of a volume.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/find_storage_pools_for_migration.rb', line 9

def find_storage_pools_for_migration(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'findStoragePoolsForMigration') 
  else
    options.merge!('command' => 'findStoragePoolsForMigration', 
    'id' => args[0])
  end
  request(options)
end

#generate_alert(*args) ⇒ Object

Generates an alert

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/generate_alert.rb', line 9

def generate_alert(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'generateAlert') 
  else
    options.merge!('command' => 'generateAlert', 
    'description' => args[0], 
    'name' => args[1], 
    'type' => args[2])
  end
  request(options)
end

#generate_usage_records(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/generate_usage_records.rb', line 9

def generate_usage_records(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'generateUsageRecords') 
  else
    options.merge!('command' => 'generateUsageRecords', 
    'enddate' => args[0], 
    'startdate' => args[1])
  end
  request(options)
end

#get_api_limit(*args) ⇒ Object

Get API limit count for the caller

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/get_api_limit.rb', line 9

def get_api_limit(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'getApiLimit') 
  else
    options.merge!('command' => 'getApiLimit')
  end
  request(options)
end

#get_cloud_identifier(*args) ⇒ Object

Retrieves a cloud identifier.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/get_cloud_identifier.rb', line 9

def get_cloud_identifier(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'getCloudIdentifier') 
  else
    options.merge!('command' => 'getCloudIdentifier', 
    'userid' => args[0])
  end
  request(options)
end

#get_user(*args) ⇒ Object

Find user account by API key

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/get_user.rb', line 9

def get_user(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'getUser') 
  else
    options.merge!('command' => 'getUser', 
    'apikey' => args[0])
  end
  request(options)
end

#get_virtual_machine_user_data(*args) ⇒ Object

Returns user data associated with the VM

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/get_virtual_machine_user_data.rb', line 9

def get_virtual_machine_user_data(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'getVirtualMachineUserData') 
  else
    options.merge!('command' => 'getVirtualMachineUserData', 
    'virtualmachineid' => args[0])
  end
  request(options)
end

#get_vm_password(*args) ⇒ Object

Returns an encrypted password for the VM

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/get_vm_password.rb', line 9

def get_vm_password(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'getVMPassword') 
  else
    options.merge!('command' => 'getVMPassword', 
    'id' => args[0])
  end
  request(options)
end

#import_ldap_users(*args) ⇒ Object

Import LDAP users

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/import_ldap_users.rb', line 9

def import_ldap_users(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'importLdapUsers') 
  else
    options.merge!('command' => 'importLdapUsers', 
    'accounttype' => args[0])
  end
  request(options)
end

#instantiate_ucs_template_and_assocaciate_to_blade(bladeid, templatedn, ucsmanagerid, options = {}) ⇒ Object

create a profile of template and associate to a blade

CloudStack API Reference



9
10
11
12
13
14
15
16
17
# File 'lib/fog/cloudstack/requests/compute/instantiate_ucs_template_and_assocaciate_to_blade.rb', line 9

def instantiate_ucs_template_and_assocaciate_to_blade(bladeid, templatedn, ucsmanagerid, options={})
  options.merge!(
    'command' => 'instantiateUcsTemplateAndAssocaciateToBlade', 
    'bladeid' => bladeid, 
    'templatedn' => templatedn, 
    'ucsmanagerid' => ucsmanagerid  
  )
  request(options)
end

#ldap_config(options = {}) ⇒ Object

Configure the LDAP context for this site.

CloudStack API Reference



9
10
11
12
13
14
# File 'lib/fog/cloudstack/requests/compute/ldap_config.rb', line 9

def ldap_config(options={})
  options.merge!(
    'command' => 'ldapConfig'  
  )
  request(options)
end

#ldap_create_account(*args) ⇒ Object

Creates an account from an LDAP user

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/ldap_create_account.rb', line 9

def (*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'ldapCreateAccount') 
  else
    options.merge!('command' => 'ldapCreateAccount', 
    'username' => args[0], 
    'accounttype' => args[1])
  end
  request(options)
end

#ldap_remove(options = {}) ⇒ Object

Remove the LDAP context for this site.

CloudStack API Reference



9
10
11
12
13
14
# File 'lib/fog/cloudstack/requests/compute/ldap_remove.rb', line 9

def ldap_remove(options={})
  options.merge!(
    'command' => 'ldapRemove'  
  )
  request(options)
end

#list_accounts(*args) ⇒ Object

Lists accounts and provides detailed account information for listed accounts

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_accounts.rb', line 9

def list_accounts(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listAccounts') 
  else
    options.merge!('command' => 'listAccounts')
  end
  request(options)
end

#list_affinity_group_types(*args) ⇒ Object

Lists affinity group types available

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_affinity_group_types.rb', line 9

def list_affinity_group_types(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listAffinityGroupTypes') 
  else
    options.merge!('command' => 'listAffinityGroupTypes')
  end
  request(options)
end

#list_affinity_groups(*args) ⇒ Object

Lists affinity groups

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_affinity_groups.rb', line 9

def list_affinity_groups(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listAffinityGroups') 
  else
    options.merge!('command' => 'listAffinityGroups')
  end
  request(options)
end

#list_alerts(*args) ⇒ Object

Lists all alerts.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_alerts.rb', line 9

def list_alerts(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listAlerts') 
  else
    options.merge!('command' => 'listAlerts')
  end
  request(options)
end

#list_apis(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_apis.rb', line 9

def list_apis(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listApis') 
  else
    options.merge!('command' => 'listApis')
  end
  request(options)
end

#list_async_jobs(*args) ⇒ Object

Lists all pending asynchronous jobs for the account.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_async_jobs.rb', line 9

def list_async_jobs(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listAsyncJobs') 
  else
    options.merge!('command' => 'listAsyncJobs')
  end
  request(options)
end

#list_auto_scale_policies(*args) ⇒ Object

Lists autoscale policies.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_auto_scale_policies.rb', line 9

def list_auto_scale_policies(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listAutoScalePolicies') 
  else
    options.merge!('command' => 'listAutoScalePolicies')
  end
  request(options)
end

#list_auto_scale_vm_groups(*args) ⇒ Object

Lists autoscale vm groups.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_auto_scale_vm_groups.rb', line 9

def list_auto_scale_vm_groups(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listAutoScaleVmGroups') 
  else
    options.merge!('command' => 'listAutoScaleVmGroups')
  end
  request(options)
end

#list_auto_scale_vm_profiles(*args) ⇒ Object

Lists autoscale vm profiles.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_auto_scale_vm_profiles.rb', line 9

def list_auto_scale_vm_profiles(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listAutoScaleVmProfiles') 
  else
    options.merge!('command' => 'listAutoScaleVmProfiles')
  end
  request(options)
end

#list_baremetal_dhcp(*args) ⇒ Object

list baremetal dhcp servers

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_baremetal_dhcp.rb', line 9

def list_baremetal_dhcp(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listBaremetalDhcp') 
  else
    options.merge!('command' => 'listBaremetalDhcp')
  end
  request(options)
end

#list_baremetal_pxe_servers(*args) ⇒ Object

list baremetal pxe server

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_baremetal_pxe_servers.rb', line 9

def list_baremetal_pxe_servers(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listBaremetalPxeServers') 
  else
    options.merge!('command' => 'listBaremetalPxeServers')
  end
  request(options)
end

#list_big_switch_vns_devices(*args) ⇒ Object

Lists BigSwitch Vns devices

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_big_switch_vns_devices.rb', line 9

def list_big_switch_vns_devices(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listBigSwitchVnsDevices') 
  else
    options.merge!('command' => 'listBigSwitchVnsDevices')
  end
  request(options)
end

#list_capabilities(*args) ⇒ Object

Lists capabilities

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_capabilities.rb', line 9

def list_capabilities(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listCapabilities') 
  else
    options.merge!('command' => 'listCapabilities')
  end
  request(options)
end

#list_capacity(*args) ⇒ Object

Lists all the system wide capacities.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_capacity.rb', line 9

def list_capacity(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listCapacity') 
  else
    options.merge!('command' => 'listCapacity')
  end
  request(options)
end

#list_cisco_asa1000v_resources(*args) ⇒ Object

Lists Cisco ASA 1000v appliances

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_cisco_asa1000v_resources.rb', line 9

def list_cisco_asa1000v_resources(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listCiscoAsa1000vResources') 
  else
    options.merge!('command' => 'listCiscoAsa1000vResources')
  end
  request(options)
end

#list_cisco_nexus_vsms(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_cisco_nexus_vsms.rb', line 9

def list_cisco_nexus_vsms(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listCiscoNexusVSMs') 
  else
    options.merge!('command' => 'listCiscoNexusVSMs')
  end
  request(options)
end

#list_cisco_vnmc_resources(*args) ⇒ Object

Lists Cisco VNMC controllers

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_cisco_vnmc_resources.rb', line 9

def list_cisco_vnmc_resources(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listCiscoVnmcResources') 
  else
    options.merge!('command' => 'listCiscoVnmcResources')
  end
  request(options)
end

#list_clusters(*args) ⇒ Object

Lists clusters.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_clusters.rb', line 9

def list_clusters(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listClusters') 
  else
    options.merge!('command' => 'listClusters')
  end
  request(options)
end

#list_conditions(*args) ⇒ Object

List Conditions for the specific user

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_conditions.rb', line 9

def list_conditions(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listConditions') 
  else
    options.merge!('command' => 'listConditions')
  end
  request(options)
end

#list_configurations(*args) ⇒ Object

Lists all configurations.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_configurations.rb', line 9

def list_configurations(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listConfigurations') 
  else
    options.merge!('command' => 'listConfigurations')
  end
  request(options)
end

#list_counters(*args) ⇒ Object

List the counters

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_counters.rb', line 9

def list_counters(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listCounters') 
  else
    options.merge!('command' => 'listCounters')
  end
  request(options)
end

#list_dedicated_clusters(*args) ⇒ Object

Lists dedicated clusters.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_dedicated_clusters.rb', line 9

def list_dedicated_clusters(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listDedicatedClusters') 
  else
    options.merge!('command' => 'listDedicatedClusters')
  end
  request(options)
end

#list_dedicated_guest_vlan_ranges(*args) ⇒ Object

Lists dedicated guest vlan ranges

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_dedicated_guest_vlan_ranges.rb', line 9

def list_dedicated_guest_vlan_ranges(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listDedicatedGuestVlanRanges') 
  else
    options.merge!('command' => 'listDedicatedGuestVlanRanges')
  end
  request(options)
end

#list_dedicated_hosts(*args) ⇒ Object

Lists dedicated hosts.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_dedicated_hosts.rb', line 9

def list_dedicated_hosts(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listDedicatedHosts') 
  else
    options.merge!('command' => 'listDedicatedHosts')
  end
  request(options)
end

#list_dedicated_pods(*args) ⇒ Object

Lists dedicated pods.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_dedicated_pods.rb', line 9

def list_dedicated_pods(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listDedicatedPods') 
  else
    options.merge!('command' => 'listDedicatedPods')
  end
  request(options)
end

#list_dedicated_zones(*args) ⇒ Object

List dedicated zones.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_dedicated_zones.rb', line 9

def list_dedicated_zones(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listDedicatedZones') 
  else
    options.merge!('command' => 'listDedicatedZones')
  end
  request(options)
end

#list_deployment_planners(*args) ⇒ Object

Lists all DeploymentPlanners available.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_deployment_planners.rb', line 9

def list_deployment_planners(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listDeploymentPlanners') 
  else
    options.merge!('command' => 'listDeploymentPlanners')
  end
  request(options)
end

#list_disk_offerings(*args) ⇒ Object

Lists all available disk offerings.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_disk_offerings.rb', line 9

def list_disk_offerings(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listDiskOfferings') 
  else
    options.merge!('command' => 'listDiskOfferings')
  end
  request(options)
end

#list_domain_children(*args) ⇒ Object

Lists all children domains belonging to a specified domain

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_domain_children.rb', line 9

def list_domain_children(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listDomainChildren') 
  else
    options.merge!('command' => 'listDomainChildren')
  end
  request(options)
end

#list_domains(*args) ⇒ Object

Lists domains and provides detailed information for listed domains

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_domains.rb', line 9

def list_domains(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listDomains') 
  else
    options.merge!('command' => 'listDomains')
  end
  request(options)
end

#list_egress_firewall_rules(*args) ⇒ Object

Lists all egress firewall rules for network id.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/list_egress_firewall_rules.rb', line 9

def list_egress_firewall_rules(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listEgressFirewallRules')
  else
    options.merge!('command' => 'listEgressFirewallRules')
  end

  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil

  request(options)
end

#list_event_types(*args) ⇒ Object

List Event Types

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_event_types.rb', line 9

def list_event_types(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listEventTypes') 
  else
    options.merge!('command' => 'listEventTypes')
  end
  request(options)
end

#list_events(*args) ⇒ Object

A command to list events.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_events.rb', line 9

def list_events(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listEvents') 
  else
    options.merge!('command' => 'listEvents')
  end
  request(options)
end

#list_external_firewalls(*args) ⇒ Object

List external firewall appliances.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_external_firewalls.rb', line 9

def list_external_firewalls(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listExternalFirewalls') 
  else
    options.merge!('command' => 'listExternalFirewalls', 
    'zoneid' => args[0])
  end
  request(options)
end

#list_external_load_balancers(*args) ⇒ Object

Lists F5 external load balancer appliances added in a zone.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_external_load_balancers.rb', line 9

def list_external_load_balancers(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listExternalLoadBalancers') 
  else
    options.merge!('command' => 'listExternalLoadBalancers')
  end
  request(options)
end

#list_f5_load_balancer_networks(*args) ⇒ Object

lists network that are using a F5 load balancer device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_f5_load_balancer_networks.rb', line 9

def list_f5_load_balancer_networks(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listF5LoadBalancerNetworks') 
  else
    options.merge!('command' => 'listF5LoadBalancerNetworks', 
    'lbdeviceid' => args[0])
  end
  request(options)
end

#list_f5_load_balancers(*args) ⇒ Object

lists F5 load balancer devices

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_f5_load_balancers.rb', line 9

def list_f5_load_balancers(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listF5LoadBalancers') 
  else
    options.merge!('command' => 'listF5LoadBalancers')
  end
  request(options)
end

#list_firewall_rules(*args) ⇒ Object

Lists all firewall rules for an IP address.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/list_firewall_rules.rb', line 9

def list_firewall_rules(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listFirewallRules')
  else
    options.merge!('command' => 'listFirewallRules')
  end

  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil

  request(options)
end

#list_global_load_balancer_rules(*args) ⇒ Object

Lists load balancer rules.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_global_load_balancer_rules.rb', line 9

def list_global_load_balancer_rules(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listGlobalLoadBalancerRules') 
  else
    options.merge!('command' => 'listGlobalLoadBalancerRules')
  end
  request(options)
end

#list_guest_os_mapping(*args) ⇒ Object

Lists all available OS mappings for given hypervisor

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_guest_os_mapping.rb', line 9

def list_guest_os_mapping(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listGuestOsMapping') 
  else
    options.merge!('command' => 'listGuestOsMapping')
  end
  request(options)
end

#list_hosts(*args) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_hosts.rb', line 9

def list_hosts(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listHosts') 
  else
    options.merge!('command' => 'listHosts')
  end
  request(options)
end

#list_hypervisor_capabilities(*args) ⇒ Object

Lists all hypervisor capabilities.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_hypervisor_capabilities.rb', line 9

def list_hypervisor_capabilities(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listHypervisorCapabilities') 
  else
    options.merge!('command' => 'listHypervisorCapabilities')
  end
  request(options)
end

#list_hypervisors(*args) ⇒ Object

List hypervisors

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_hypervisors.rb', line 9

def list_hypervisors(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listHypervisors') 
  else
    options.merge!('command' => 'listHypervisors')
  end
  request(options)
end

#list_image_stores(*args) ⇒ Object

Lists image stores.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_image_stores.rb', line 9

def list_image_stores(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listImageStores') 
  else
    options.merge!('command' => 'listImageStores')
  end
  request(options)
end

#list_instance_groups(*args) ⇒ Object

Lists vm groups

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_instance_groups.rb', line 9

def list_instance_groups(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listInstanceGroups') 
  else
    options.merge!('command' => 'listInstanceGroups')
  end
  request(options)
end

#list_internal_load_balancer_elements(*args) ⇒ Object

Lists all available Internal Load Balancer elements.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_internal_load_balancer_elements.rb', line 9

def list_internal_load_balancer_elements(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listInternalLoadBalancerElements') 
  else
    options.merge!('command' => 'listInternalLoadBalancerElements')
  end
  request(options)
end

#list_internal_load_balancer_vms(*args) ⇒ Object

List internal LB VMs.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_internal_load_balancer_vms.rb', line 9

def list_internal_load_balancer_vms(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listInternalLoadBalancerVMs') 
  else
    options.merge!('command' => 'listInternalLoadBalancerVMs')
  end
  request(options)
end

#list_ip_forwarding_rules(*args) ⇒ Object

List the ip forwarding rules

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_ip_forwarding_rules.rb', line 9

def list_ip_forwarding_rules(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listIpForwardingRules') 
  else
    options.merge!('command' => 'listIpForwardingRules')
  end
  request(options)
end

#list_iso_permissions(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_iso_permissions.rb', line 9

def list_iso_permissions(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listIsoPermissions') 
  else
    options.merge!('command' => 'listIsoPermissions', 
    'id' => args[0])
  end
  request(options)
end

#list_isos(*args) ⇒ Object

Lists all available ISO files.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_isos.rb', line 9

def list_isos(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listIsos') 
  else
    options.merge!('command' => 'listIsos')
  end
  request(options)
end

#list_lb_health_check_policies(*args) ⇒ Object

Lists load balancer HealthCheck policies.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_lb_health_check_policies.rb', line 9

def list_lb_health_check_policies(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listLBHealthCheckPolicies') 
  else
    options.merge!('command' => 'listLBHealthCheckPolicies')
  end
  request(options)
end

#list_lb_stickiness_policies(*args) ⇒ Object

Lists LBStickiness policies.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_lb_stickiness_policies.rb', line 9

def list_lb_stickiness_policies(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listLBStickinessPolicies') 
  else
    options.merge!('command' => 'listLBStickinessPolicies')
  end
  request(options)
end

#list_ldap_configurations(*args) ⇒ Object

Lists all LDAP configurations

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_ldap_configurations.rb', line 9

def list_ldap_configurations(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listLdapConfigurations') 
  else
    options.merge!('command' => 'listLdapConfigurations')
  end
  request(options)
end

#list_ldap_users(*args) ⇒ Object

Lists all LDAP Users

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_ldap_users.rb', line 9

def list_ldap_users(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listLdapUsers') 
  else
    options.merge!('command' => 'listLdapUsers')
  end
  request(options)
end

#list_load_balancer_rule_instances(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_load_balancer_rule_instances.rb', line 9

def list_load_balancer_rule_instances(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listLoadBalancerRuleInstances') 
  else
    options.merge!('command' => 'listLoadBalancerRuleInstances', 
    'id' => args[0])
  end
  request(options)
end

#list_load_balancer_rules(*args) ⇒ Object

Lists load balancer rules.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_load_balancer_rules.rb', line 9

def list_load_balancer_rules(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listLoadBalancerRules') 
  else
    options.merge!('command' => 'listLoadBalancerRules')
  end
  request(options)
end

#list_load_balancers(*args) ⇒ Object

Lists Load Balancers

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_load_balancers.rb', line 9

def list_load_balancers(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listLoadBalancers') 
  else
    options.merge!('command' => 'listLoadBalancers')
  end
  request(options)
end

#list_luns_on_filer(poolname, options = {}) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/fog/cloudstack/requests/compute/list_luns_on_filer.rb', line 9

def list_luns_on_filer(poolname, options={})
  options.merge!(
    'command' => 'listLunsOnFiler', 
    'poolname' => poolname  
  )
  request(options)
end

#list_netscaler_load_balancer_networks(*args) ⇒ Object

lists network that are using a netscaler load balancer device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_netscaler_load_balancer_networks.rb', line 9

def list_netscaler_load_balancer_networks(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listNetscalerLoadBalancerNetworks') 
  else
    options.merge!('command' => 'listNetscalerLoadBalancerNetworks', 
    'lbdeviceid' => args[0])
  end
  request(options)
end

#list_netscaler_load_balancers(*args) ⇒ Object

lists netscaler load balancer devices

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_netscaler_load_balancers.rb', line 9

def list_netscaler_load_balancers(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listNetscalerLoadBalancers') 
  else
    options.merge!('command' => 'listNetscalerLoadBalancers')
  end
  request(options)
end

#list_network_acl_lists(*args) ⇒ Object

Lists all network ACLs

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_network_acl_lists.rb', line 9

def list_network_acl_lists(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listNetworkACLLists') 
  else
    options.merge!('command' => 'listNetworkACLLists')
  end
  request(options)
end

#list_network_acls(*args) ⇒ Object

Lists all network ACL items

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_network_acls.rb', line 9

def list_network_acls(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listNetworkACLs') 
  else
    options.merge!('command' => 'listNetworkACLs')
  end
  request(options)
end

#list_network_device(*args) ⇒ Object

List network devices

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_network_device.rb', line 9

def list_network_device(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listNetworkDevice') 
  else
    options.merge!('command' => 'listNetworkDevice')
  end
  request(options)
end

#list_network_isolation_methods(*args) ⇒ Object

Lists supported methods of network isolation

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_network_isolation_methods.rb', line 9

def list_network_isolation_methods(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listNetworkIsolationMethods') 
  else
    options.merge!('command' => 'listNetworkIsolationMethods')
  end
  request(options)
end

#list_network_offerings(*args) ⇒ Object

Lists all available network offerings.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_network_offerings.rb', line 9

def list_network_offerings(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listNetworkOfferings')
  else
    options.merge!('command' => 'listNetworkOfferings')
  end
  request(options)
end

#list_network_service_providers(*args) ⇒ Object

Lists network serviceproviders for a given physical network.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_network_service_providers.rb', line 9

def list_network_service_providers(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listNetworkServiceProviders') 
  else
    options.merge!('command' => 'listNetworkServiceProviders')
  end
  request(options)
end

#list_networks(*args) ⇒ Object

Lists all available networks.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/list_networks.rb', line 9

def list_networks(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listNetworks')
  else
    options.merge!('command' => 'listNetworks')
  end

  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil

  request(options)
end

#list_nicira_nvp_device_networks(*args) ⇒ Object

lists network that are using a nicira nvp device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_nicira_nvp_device_networks.rb', line 9

def list_nicira_nvp_device_networks(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listNiciraNvpDeviceNetworks') 
  else
    options.merge!('command' => 'listNiciraNvpDeviceNetworks', 
    'nvpdeviceid' => args[0])
  end
  request(options)
end

#list_nicira_nvp_devices(*args) ⇒ Object

Lists Nicira NVP devices

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_nicira_nvp_devices.rb', line 9

def list_nicira_nvp_devices(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listNiciraNvpDevices') 
  else
    options.merge!('command' => 'listNiciraNvpDevices')
  end
  request(options)
end

#list_nics(*args) ⇒ Object

list the vm nics IP to NIC

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_nics.rb', line 9

def list_nics(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listNics') 
  else
    options.merge!('command' => 'listNics', 
    'virtualmachineid' => args[0])
  end
  request(options)
end

#list_open_daylight_controllers(*args) ⇒ Object

Lists OpenDyalight controllers

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_open_daylight_controllers.rb', line 9

def list_open_daylight_controllers(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listOpenDaylightControllers') 
  else
    options.merge!('command' => 'listOpenDaylightControllers')
  end
  request(options)
end

#list_os_categories(*args) ⇒ Object

Lists all supported OS categories for this cloud.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_os_categories.rb', line 9

def list_os_categories(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listOsCategories') 
  else
    options.merge!('command' => 'listOsCategories')
  end
  request(options)
end

#list_os_types(*args) ⇒ Object

Lists all supported OS types for this cloud.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_os_types.rb', line 9

def list_os_types(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listOsTypes') 
  else
    options.merge!('command' => 'listOsTypes')
  end
  request(options)
end

#list_ovs_elements(*args) ⇒ Object

Lists all available ovs elements.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_ovs_elements.rb', line 9

def list_ovs_elements(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listOvsElements') 
  else
    options.merge!('command' => 'listOvsElements')
  end
  request(options)
end

#list_palo_alto_firewall_networks(*args) ⇒ Object

lists network that are using Palo Alto firewall device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_palo_alto_firewall_networks.rb', line 9

def list_palo_alto_firewall_networks(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listPaloAltoFirewallNetworks') 
  else
    options.merge!('command' => 'listPaloAltoFirewallNetworks', 
    'lbdeviceid' => args[0])
  end
  request(options)
end

#list_palo_alto_firewalls(*args) ⇒ Object

lists Palo Alto firewall devices in a physical network

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_palo_alto_firewalls.rb', line 9

def list_palo_alto_firewalls(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listPaloAltoFirewalls') 
  else
    options.merge!('command' => 'listPaloAltoFirewalls')
  end
  request(options)
end

#list_physical_networks(*args) ⇒ Object

Lists physical networks

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_physical_networks.rb', line 9

def list_physical_networks(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listPhysicalNetworks') 
  else
    options.merge!('command' => 'listPhysicalNetworks')
  end
  request(options)
end

#list_pods(*args) ⇒ Object

Lists all Pods.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_pods.rb', line 9

def list_pods(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listPods') 
  else
    options.merge!('command' => 'listPods')
  end
  request(options)
end

#list_pools(options = {}) ⇒ Object



9
10
11
12
13
14
# File 'lib/fog/cloudstack/requests/compute/list_pools.rb', line 9

def list_pools(options={})
  options.merge!(
    'command' => 'listPools'  
  )
  request(options)
end

#list_port_forwarding_rules(*args) ⇒ Object

Lists all port forwarding rules for an IP address.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/list_port_forwarding_rules.rb', line 9

def list_port_forwarding_rules(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listPortForwardingRules')
  else
    options.merge!('command' => 'listPortForwardingRules')
  end

  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil

  request(options)
end

#list_portable_ip_ranges(*args) ⇒ Object

list portable IP ranges

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_portable_ip_ranges.rb', line 9

def list_portable_ip_ranges(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listPortableIpRanges') 
  else
    options.merge!('command' => 'listPortableIpRanges')
  end
  request(options)
end

#list_private_gateways(*args) ⇒ Object

List private gateways

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_private_gateways.rb', line 9

def list_private_gateways(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listPrivateGateways') 
  else
    options.merge!('command' => 'listPrivateGateways')
  end
  request(options)
end

#list_project_accounts(*args) ⇒ Object

Lists project’s accounts

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_project_accounts.rb', line 9

def list_project_accounts(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listProjectAccounts') 
  else
    options.merge!('command' => 'listProjectAccounts', 
    'projectid' => args[0])
  end
  request(options)
end

#list_project_invitations(*args) ⇒ Object

Lists projects and provides detailed information for listed projects

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_project_invitations.rb', line 9

def list_project_invitations(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listProjectInvitations') 
  else
    options.merge!('command' => 'listProjectInvitations')
  end
  request(options)
end

#list_projects(*args) ⇒ Object

Lists projects and provides detailed information for listed projects

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_projects.rb', line 9

def list_projects(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listProjects') 
  else
    options.merge!('command' => 'listProjects')
  end
  request(options)
end

#list_public_ip_addresses(*args) ⇒ Object

Lists all public ip addresses

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/list_public_ip_addresses.rb', line 9

def list_public_ip_addresses(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listPublicIpAddresses')
  else
    options.merge!('command' => 'listPublicIpAddresses')
  end

  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil

  request(options)
end

#list_regions(*args) ⇒ Object

Lists Regions

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_regions.rb', line 9

def list_regions(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listRegions') 
  else
    options.merge!('command' => 'listRegions')
  end
  request(options)
end

#list_remote_access_vpns(*args) ⇒ Object

Lists remote access vpns

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_remote_access_vpns.rb', line 9

def list_remote_access_vpns(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listRemoteAccessVpns') 
  else
    options.merge!('command' => 'listRemoteAccessVpns')
  end
  request(options)
end

#list_resource_details(*args) ⇒ Object

List resource detail(s)

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_resource_details.rb', line 9

def list_resource_details(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listResourceDetails') 
  else
    options.merge!('command' => 'listResourceDetails', 
    'resourcetype' => args[0])
  end
  request(options)
end

#list_resource_limits(*args) ⇒ Object

Lists resource limits.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_resource_limits.rb', line 9

def list_resource_limits(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listResourceLimits') 
  else
    options.merge!('command' => 'listResourceLimits')
  end
  request(options)
end

#list_routers(*args) ⇒ Object

List routers.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_routers.rb', line 9

def list_routers(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listRouters') 
  else
    options.merge!('command' => 'listRouters')
  end
  request(options)
end

#list_s3s(*args) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_s3s.rb', line 9

def list_s3s(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listS3s') 
  else
    options.merge!('command' => 'listS3s')
  end
  request(options)
end

#list_secondary_staging_stores(*args) ⇒ Object

Lists secondary staging stores.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_secondary_staging_stores.rb', line 9

def list_secondary_staging_stores(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listSecondaryStagingStores') 
  else
    options.merge!('command' => 'listSecondaryStagingStores')
  end
  request(options)
end

#list_security_groups(*args) ⇒ Object

Lists security groups

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_security_groups.rb', line 9

def list_security_groups(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listSecurityGroups') 
  else
    options.merge!('command' => 'listSecurityGroups')
  end
  request(options)
end

#list_service_offerings(*args) ⇒ Object

Lists all available service offerings.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_service_offerings.rb', line 9

def list_service_offerings(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listServiceOfferings')
  else
    options.merge!('command' => 'listServiceOfferings')
  end
  request(options)
end

#list_snapshot_policies(*args) ⇒ Object

Lists snapshot policies.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_snapshot_policies.rb', line 9

def list_snapshot_policies(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listSnapshotPolicies') 
  else
    options.merge!('command' => 'listSnapshotPolicies', 
    'volumeid' => args[0])
  end
  request(options)
end

#list_snapshots(*args) ⇒ Object

Lists all available snapshots for the account.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/list_snapshots.rb', line 9

def list_snapshots(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listSnapshots')
  else
    options.merge!('command' => 'listSnapshots')
  end
  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil
  request(options)
end

#list_srx_firewall_networks(*args) ⇒ Object

lists network that are using SRX firewall device

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_srx_firewall_networks.rb', line 9

def list_srx_firewall_networks(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listSrxFirewallNetworks') 
  else
    options.merge!('command' => 'listSrxFirewallNetworks', 
    'lbdeviceid' => args[0])
  end
  request(options)
end

#list_srx_firewalls(*args) ⇒ Object

lists SRX firewall devices in a physical network

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_srx_firewalls.rb', line 9

def list_srx_firewalls(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listSrxFirewalls') 
  else
    options.merge!('command' => 'listSrxFirewalls')
  end
  request(options)
end

#list_ssh_key_pairs(*args) ⇒ Object

List registered keypairs

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/list_ssh_key_pairs.rb', line 9

def list_ssh_key_pairs(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listSSHKeyPairs')
  else
    options.merge!('command' => 'listSSHKeyPairs')
  end
  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil
  request(options)
end

#list_ssl_certs(*args) ⇒ Object

Lists SSL certificates

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_ssl_certs.rb', line 9

def list_ssl_certs(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listSslCerts') 
  else
    options.merge!('command' => 'listSslCerts')
  end
  request(options)
end

#list_static_routes(*args) ⇒ Object

Lists all static routes

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_static_routes.rb', line 9

def list_static_routes(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listStaticRoutes') 
  else
    options.merge!('command' => 'listStaticRoutes')
  end
  request(options)
end

#list_storage_network_ip_range(*args) ⇒ Object

List a storage network IP range.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_storage_network_ip_range.rb', line 9

def list_storage_network_ip_range(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listStorageNetworkIpRange') 
  else
    options.merge!('command' => 'listStorageNetworkIpRange')
  end
  request(options)
end

#list_storage_pools(*args) ⇒ Object

Lists storage pools.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_storage_pools.rb', line 9

def list_storage_pools(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listStoragePools') 
  else
    options.merge!('command' => 'listStoragePools')
  end
  request(options)
end

#list_storage_providers(*args) ⇒ Object

Lists storage providers.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_storage_providers.rb', line 9

def list_storage_providers(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listStorageProviders') 
  else
    options.merge!('command' => 'listStorageProviders', 
    'type' => args[0])
  end
  request(options)
end

#list_supported_network_services(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_supported_network_services.rb', line 9

def list_supported_network_services(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listSupportedNetworkServices') 
  else
    options.merge!('command' => 'listSupportedNetworkServices')
  end
  request(options)
end

#list_swifts(*args) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_swifts.rb', line 9

def list_swifts(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listSwifts') 
  else
    options.merge!('command' => 'listSwifts')
  end
  request(options)
end

#list_system_vms(*args) ⇒ Object

List system virtual machines.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_system_vms.rb', line 9

def list_system_vms(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listSystemVms') 
  else
    options.merge!('command' => 'listSystemVms')
  end
  request(options)
end

#list_tags(*args) ⇒ Object

List resource tag(s)

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_tags.rb', line 9

def list_tags(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listTags') 
  else
    options.merge!('command' => 'listTags')
  end
  request(options)
end

#list_template_permissions(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_template_permissions.rb', line 9

def list_template_permissions(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listTemplatePermissions') 
  else
    options.merge!('command' => 'listTemplatePermissions', 
    'id' => args[0])
  end
  request(options)
end

#list_templates(*args) ⇒ Object

List all public, private, and privileged templates.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudstack/requests/compute/list_templates.rb', line 9

def list_templates(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listTemplates')
  else
    options.merge!('command' => 'listTemplates',
    'templatefilter' => args[0])
  end

  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil

  request(options)
end

#list_traffic_monitors(*args) ⇒ Object

List traffic monitor Hosts.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_traffic_monitors.rb', line 9

def list_traffic_monitors(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listTrafficMonitors') 
  else
    options.merge!('command' => 'listTrafficMonitors', 
    'zoneid' => args[0])
  end
  request(options)
end

#list_traffic_type_implementors(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_traffic_type_implementors.rb', line 9

def list_traffic_type_implementors(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listTrafficTypeImplementors') 
  else
    options.merge!('command' => 'listTrafficTypeImplementors')
  end
  request(options)
end

#list_traffic_types(*args) ⇒ Object

Lists traffic types of a given physical network.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_traffic_types.rb', line 9

def list_traffic_types(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listTrafficTypes') 
  else
    options.merge!('command' => 'listTrafficTypes', 
    'physicalnetworkid' => args[0])
  end
  request(options)
end

#list_ucs_blades(*args) ⇒ Object

List ucs blades

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_ucs_blades.rb', line 9

def list_ucs_blades(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listUcsBlades') 
  else
    options.merge!('command' => 'listUcsBlades', 
    'ucsmanagerid' => args[0])
  end
  request(options)
end

#list_ucs_managers(*args) ⇒ Object

List ucs manager

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_ucs_managers.rb', line 9

def list_ucs_managers(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listUcsManagers') 
  else
    options.merge!('command' => 'listUcsManagers')
  end
  request(options)
end

#list_ucs_profiles(*args) ⇒ Object

List profile in ucs manager

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_ucs_profiles.rb', line 9

def list_ucs_profiles(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listUcsProfiles') 
  else
    options.merge!('command' => 'listUcsProfiles', 
    'ucsmanagerid' => args[0])
  end
  request(options)
end

#list_ucs_templates(ucsmanagerid, options = {}) ⇒ Object

List templates in ucs manager

CloudStack API Reference



9
10
11
12
13
14
15
# File 'lib/fog/cloudstack/requests/compute/list_ucs_templates.rb', line 9

def list_ucs_templates(ucsmanagerid, options={})
  options.merge!(
    'command' => 'listUcsTemplates', 
    'ucsmanagerid' => ucsmanagerid  
  )
  request(options)
end

#list_usage_records(*args) ⇒ Object

Lists usage records for accounts

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/list_usage_records.rb', line 9

def list_usage_records(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listUsageRecords') 
  else
    options.merge!('command' => 'listUsageRecords', 
    'enddate' => args[0], 
    'startdate' => args[1])
  end
  request(options)
end

#list_usage_types(*args) ⇒ Object

List Usage Types

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_usage_types.rb', line 9

def list_usage_types(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listUsageTypes') 
  else
    options.merge!('command' => 'listUsageTypes')
  end
  request(options)
end

#list_users(*args) ⇒ Object

Lists user accounts

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_users.rb', line 9

def list_users(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listUsers') 
  else
    options.merge!('command' => 'listUsers')
  end
  request(options)
end

#list_virtual_machines(*args) ⇒ Object

List the virtual machines owned by the account.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/list_virtual_machines.rb', line 9

def list_virtual_machines(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listVirtualMachines')
  else
    options.merge!('command' => 'listVirtualMachines')
  end
  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil
  request(options)
end

#list_virtual_router_elements(*args) ⇒ Object

Lists all available virtual router elements.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_virtual_router_elements.rb', line 9

def list_virtual_router_elements(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listVirtualRouterElements') 
  else
    options.merge!('command' => 'listVirtualRouterElements')
  end
  request(options)
end

#list_vlan_ip_ranges(*args) ⇒ Object

Lists all VLAN IP ranges.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_vlan_ip_ranges.rb', line 9

def list_vlan_ip_ranges(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listVlanIpRanges') 
  else
    options.merge!('command' => 'listVlanIpRanges')
  end
  request(options)
end

#list_vm_snapshot(*args) ⇒ Object

List virtual machine snapshot by conditions

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/list_vm_snapshot.rb', line 9

def list_vm_snapshot(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listVMSnapshot')
  else
    options.merge!('command' => 'listVMSnapshot')
  end
  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil
  request(options)
end

#list_vmware_dcs(*args) ⇒ Object

Retrieves VMware DC(s) associated with a zone.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/list_vmware_dcs.rb', line 9

def list_vmware_dcs(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listVmwareDcs') 
  else
    options.merge!('command' => 'listVmwareDcs', 
    'zoneid' => args[0])
  end
  request(options)
end

#list_volumes(*args) ⇒ Object

Lists all volumes.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/list_volumes.rb', line 9

def list_volumes(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listVolumes')
  else
    options.merge!('command' => 'listVolumes')
  end
  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil
  request(options)
end

#list_volumes_on_filer(poolname, options = {}) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/fog/cloudstack/requests/compute/list_volumes_on_filer.rb', line 9

def list_volumes_on_filer(poolname, options={})
  options.merge!(
    'command' => 'listVolumesOnFiler', 
    'poolname' => poolname  
  )
  request(options)
end

#list_vpc_offerings(*args) ⇒ Object

Lists VPC offerings

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_vpc_offerings.rb', line 9

def list_vpc_offerings(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listVPCOfferings') 
  else
    options.merge!('command' => 'listVPCOfferings')
  end
  request(options)
end

#list_vpcs(*args) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_vpcs.rb', line 9

def list_vpcs(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listVPCs') 
  else
    options.merge!('command' => 'listVPCs')
  end
  request(options)
end

#list_vpn_connections(*args) ⇒ Object

Lists site to site vpn connection gateways

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_vpn_connections.rb', line 9

def list_vpn_connections(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listVpnConnections') 
  else
    options.merge!('command' => 'listVpnConnections')
  end
  request(options)
end

#list_vpn_customer_gateways(*args) ⇒ Object

Lists site to site vpn customer gateways

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_vpn_customer_gateways.rb', line 9

def list_vpn_customer_gateways(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listVpnCustomerGateways') 
  else
    options.merge!('command' => 'listVpnCustomerGateways')
  end
  request(options)
end

#list_vpn_gateways(*args) ⇒ Object

Lists site 2 site vpn gateways

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_vpn_gateways.rb', line 9

def list_vpn_gateways(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listVpnGateways') 
  else
    options.merge!('command' => 'listVpnGateways')
  end
  request(options)
end

#list_vpn_users(*args) ⇒ Object

Lists vpn users

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_vpn_users.rb', line 9

def list_vpn_users(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listVpnUsers') 
  else
    options.merge!('command' => 'listVpnUsers')
  end
  request(options)
end

#list_zones(*args) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/list_zones.rb', line 9

def list_zones(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'listZones') 
  else
    options.merge!('command' => 'listZones')
  end
  request(options)
end

#lock_account(*args) ⇒ Object

Locks an account

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/lock_account.rb', line 9

def (*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'lockAccount') 
  else
    options.merge!('command' => 'lockAccount', 
    'account' => args[0], 
    'domainid' => args[1])
  end
  request(options)
end

#lock_user(*args) ⇒ Object

Locks a user account

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/lock_user.rb', line 9

def lock_user(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'lockUser') 
  else
    options.merge!('command' => 'lockUser', 
    'id' => args[0])
  end
  request(options)
end

#login(username, password, domain) ⇒ Object



561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
# File 'lib/fog/cloudstack/compute.rb', line 561

def (username,password,domain)
  response = issue_request({
    'response' => 'json',
    'command'  => 'login',
    'username' => username,
    'password' => Digest::MD5.hexdigest(password),
    'domain'   => domain
  })

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

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

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

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

  user
end

#mark_default_zone_for_account(*args) ⇒ Object

Marks a default zone for this account

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/cloudstack/requests/compute/mark_default_zone_for_account.rb', line 9

def (*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'markDefaultZoneForAccount') 
  else
    options.merge!('command' => 'markDefaultZoneForAccount', 
    'zoneid' => args[0], 
    'account' => args[1], 
    'domainid' => args[2])
  end
  request(options)
end

#migrate_system_vm(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/migrate_system_vm.rb', line 9

def migrate_system_vm(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'migrateSystemVm') 
  else
    options.merge!('command' => 'migrateSystemVm', 
    'virtualmachineid' => args[0], 
    'hostid' => args[1])
  end
  request(options)
end

#migrate_virtual_machine(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/migrate_virtual_machine.rb', line 9

def migrate_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'migrateVirtualMachine') 
  else
    options.merge!('command' => 'migrateVirtualMachine', 
    'virtualmachineid' => args[0])
  end
  request(options)
end

#migrate_virtual_machine_with_volume(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/migrate_virtual_machine_with_volume.rb', line 9

def migrate_virtual_machine_with_volume(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'migrateVirtualMachineWithVolume') 
  else
    options.merge!('command' => 'migrateVirtualMachineWithVolume', 
    'hostid' => args[0], 
    'virtualmachineid' => args[1])
  end
  request(options)
end

#migrate_volume(*args) ⇒ Object

Migrate volume

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/migrate_volume.rb', line 9

def migrate_volume(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'migrateVolume') 
  else
    options.merge!('command' => 'migrateVolume', 
    'storageid' => args[0], 
    'volumeid' => args[1])
  end
  request(options)
end

#modify_pool(algorithm, poolname, options = {}) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/fog/cloudstack/requests/compute/modify_pool.rb', line 9

def modify_pool(algorithm, poolname, options={})
  options.merge!(
    'command' => 'modifyPool', 
    'algorithm' => algorithm, 
    'poolname' => poolname  
  )
  request(options)
end

#prepare_host_for_maintenance(*args) ⇒ Object

Prepares a host for maintenance.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/prepare_host_for_maintenance.rb', line 9

def prepare_host_for_maintenance(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'prepareHostForMaintenance') 
  else
    options.merge!('command' => 'prepareHostForMaintenance', 
    'id' => args[0])
  end
  request(options)
end

#prepare_template(*args) ⇒ Object

load template into primary storage

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/prepare_template.rb', line 9

def prepare_template(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'prepareTemplate') 
  else
    options.merge!('command' => 'prepareTemplate', 
    'templateid' => args[0], 
    'zoneid' => args[1])
  end
  request(options)
end

#query_async_job_result(*args) ⇒ Object

Retrieves the current status of asynchronous job.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/query_async_job_result.rb', line 9

def query_async_job_result(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'queryAsyncJobResult') 
  else
    options.merge!('command' => 'queryAsyncJobResult', 
    'jobid' => args[0])
  end
  request(options)
end

#reboot_router(*args) ⇒ Object

Starts a router.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/reboot_router.rb', line 9

def reboot_router(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'rebootRouter') 
  else
    options.merge!('command' => 'rebootRouter', 
    'id' => args[0])
  end
  request(options)
end

#reboot_system_vm(*args) ⇒ Object

Reboots a system VM.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/reboot_system_vm.rb', line 9

def reboot_system_vm(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'rebootSystemVm') 
  else
    options.merge!('command' => 'rebootSystemVm', 
    'id' => args[0])
  end
  request(options)
end

#reboot_virtual_machine(*args) ⇒ Object

Reboots a virtual machine.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/reboot_virtual_machine.rb', line 9

def reboot_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'rebootVirtualMachine') 
  else
    options.merge!('command' => 'rebootVirtualMachine', 
    'id' => args[0])
  end
  request(options)
end

#reconnect_host(*args) ⇒ Object

Reconnects a host.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/reconnect_host.rb', line 9

def reconnect_host(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'reconnectHost') 
  else
    options.merge!('command' => 'reconnectHost', 
    'id' => args[0])
  end
  request(options)
end

#recover_virtual_machine(*args) ⇒ Object

Recovers a virtual machine.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/recover_virtual_machine.rb', line 9

def recover_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'recoverVirtualMachine') 
  else
    options.merge!('command' => 'recoverVirtualMachine', 
    'id' => args[0])
  end
  request(options)
end

#refresh_ucs_blades(ucsmanagerid, options = {}) ⇒ Object

refresh ucs blades to sync with UCS manager

CloudStack API Reference



9
10
11
12
13
14
15
# File 'lib/fog/cloudstack/requests/compute/refresh_ucs_blades.rb', line 9

def refresh_ucs_blades(ucsmanagerid, options={})
  options.merge!(
    'command' => 'refreshUcsBlades', 
    'ucsmanagerid' => ucsmanagerid  
  )
  request(options)
end

#register_iso(*args) ⇒ Object

Registers an existing ISO into the CloudStack Cloud.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/register_iso.rb', line 9

def register_iso(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'registerIso') 
  else
    options.merge!('command' => 'registerIso', 
    'name' => args[0], 
    'displaytext' => args[1], 
    'url' => args[2], 
    'zoneid' => args[3])
  end
  request(options)
end

#register_ssh_key_pair(*args) ⇒ Object

Register a public key in a keypair under a certain name

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/register_ssh_key_pair.rb', line 9

def register_ssh_key_pair(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'registerSSHKeyPair')
  else
    options.merge!('command' => 'registerSSHKeyPair',
    'name' => args[0],
    'publickey' => args[1])
  end
  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil
  request(options)
end

#register_template(*args) ⇒ Object

Registers an existing template into the CloudStack cloud.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/fog/cloudstack/requests/compute/register_template.rb', line 9

def register_template(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'registerTemplate') 
  else
    options.merge!('command' => 'registerTemplate', 
    'zoneid' => args[0], 
    'format' => args[1], 
    'hypervisor' => args[2], 
    'url' => args[3], 
    'name' => args[4], 
    'ostypeid' => args[5], 
    'displaytext' => args[6])
  end
  request(options)
end

#register_user_keys(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/register_user_keys.rb', line 9

def register_user_keys(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'registerUserKeys') 
  else
    options.merge!('command' => 'registerUserKeys', 
    'id' => args[0])
  end
  request(options)
end

#release_dedicated_cluster(*args) ⇒ Object

Release the dedication for cluster

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/release_dedicated_cluster.rb', line 9

def release_dedicated_cluster(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'releaseDedicatedCluster') 
  else
    options.merge!('command' => 'releaseDedicatedCluster', 
    'clusterid' => args[0])
  end
  request(options)
end

#release_dedicated_guest_vlan_range(*args) ⇒ Object

Releases a dedicated guest vlan range to the system

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/release_dedicated_guest_vlan_range.rb', line 9

def release_dedicated_guest_vlan_range(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'releaseDedicatedGuestVlanRange') 
  else
    options.merge!('command' => 'releaseDedicatedGuestVlanRange', 
    'id' => args[0])
  end
  request(options)
end

#release_dedicated_host(*args) ⇒ Object

Release the dedication for host

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/release_dedicated_host.rb', line 9

def release_dedicated_host(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'releaseDedicatedHost') 
  else
    options.merge!('command' => 'releaseDedicatedHost', 
    'hostid' => args[0])
  end
  request(options)
end

#release_dedicated_pod(*args) ⇒ Object

Release the dedication for the pod

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/release_dedicated_pod.rb', line 9

def release_dedicated_pod(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'releaseDedicatedPod') 
  else
    options.merge!('command' => 'releaseDedicatedPod', 
    'podid' => args[0])
  end
  request(options)
end

#release_dedicated_zone(*args) ⇒ Object

Release dedication of zone

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/release_dedicated_zone.rb', line 9

def release_dedicated_zone(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'releaseDedicatedZone') 
  else
    options.merge!('command' => 'releaseDedicatedZone', 
    'zoneid' => args[0])
  end
  request(options)
end

#release_host_reservation(*args) ⇒ Object

Releases host reservation.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/release_host_reservation.rb', line 9

def release_host_reservation(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'releaseHostReservation') 
  else
    options.merge!('command' => 'releaseHostReservation', 
    'id' => args[0])
  end
  request(options)
end

#release_public_ip_range(*args) ⇒ Object

Releases a Public IP range back to the system pool

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/release_public_ip_range.rb', line 9

def release_public_ip_range(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'releasePublicIpRange') 
  else
    options.merge!('command' => 'releasePublicIpRange', 
    'id' => args[0])
  end
  request(options)
end

#reloadObject



557
558
559
# File 'lib/fog/cloudstack/compute.rb', line 557

def reload
  @connection.reset
end

#remove_cert_from_load_balancer(*args) ⇒ Object

Removes a certificate from a Load Balancer Rule

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/remove_cert_from_load_balancer.rb', line 9

def remove_cert_from_load_balancer(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'removeCertFromLoadBalancer') 
  else
    options.merge!('command' => 'removeCertFromLoadBalancer', 
    'lbruleid' => args[0])
  end
  request(options)
end

#remove_from_global_load_balancer_rule(*args) ⇒ Object

Removes a load balancer rule association with global load balancer rule

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/remove_from_global_load_balancer_rule.rb', line 9

def remove_from_global_load_balancer_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'removeFromGlobalLoadBalancerRule') 
  else
    options.merge!('command' => 'removeFromGlobalLoadBalancerRule', 
    'id' => args[0], 
    'loadbalancerrulelist' => args[1])
  end
  request(options)
end

#remove_from_load_balancer_rule(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/remove_from_load_balancer_rule.rb', line 9

def remove_from_load_balancer_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'removeFromLoadBalancerRule') 
  else
    options.merge!('command' => 'removeFromLoadBalancerRule', 
    'id' => args[0])
  end
  request(options)
end

#remove_guest_os(*args) ⇒ Object

Removes a Guest OS from listing.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/remove_guest_os.rb', line 9

def remove_guest_os(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'removeGuestOs') 
  else
    options.merge!('command' => 'removeGuestOs', 
    'id' => args[0])
  end
  request(options)
end

#remove_guest_os_mapping(*args) ⇒ Object

Removes a Guest OS Mapping.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/remove_guest_os_mapping.rb', line 9

def remove_guest_os_mapping(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'removeGuestOsMapping') 
  else
    options.merge!('command' => 'removeGuestOsMapping', 
    'id' => args[0])
  end
  request(options)
end

#remove_ip_from_nic(*args) ⇒ Object

Removes secondary IP from the NIC.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/remove_ip_from_nic.rb', line 9

def remove_ip_from_nic(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'removeIpFromNic') 
  else
    options.merge!('command' => 'removeIpFromNic', 
    'id' => args[0])
  end
  request(options)
end

#remove_nic_from_virtual_machine(*args) ⇒ Object

Removes VM from specified network by deleting a NIC

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/remove_nic_from_virtual_machine.rb', line 9

def remove_nic_from_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'removeNicFromVirtualMachine') 
  else
    options.merge!('command' => 'removeNicFromVirtualMachine', 
    'virtualmachineid' => args[0], 
    'nicid' => args[1])
  end
  request(options)
end

#remove_region(*args) ⇒ Object

Removes specified region

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/remove_region.rb', line 9

def remove_region(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'removeRegion') 
  else
    options.merge!('command' => 'removeRegion', 
    'id' => args[0])
  end
  request(options)
end

#remove_resource_detail(*args) ⇒ Object

Removes detail for the Resource.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/remove_resource_detail.rb', line 9

def remove_resource_detail(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'removeResourceDetail') 
  else
    options.merge!('command' => 'removeResourceDetail', 
    'resourcetype' => args[0], 
    'resourceid' => args[1])
  end
  request(options)
end

#remove_vmware_dc(*args) ⇒ Object

Remove a VMware datacenter from a zone.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/remove_vmware_dc.rb', line 9

def remove_vmware_dc(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'removeVmwareDc') 
  else
    options.merge!('command' => 'removeVmwareDc', 
    'zoneid' => args[0])
  end
  request(options)
end

#remove_vpn_user(*args) ⇒ Object

Removes vpn user

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/remove_vpn_user.rb', line 9

def remove_vpn_user(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'removeVpnUser') 
  else
    options.merge!('command' => 'removeVpnUser', 
    'username' => args[0])
  end
  request(options)
end

#replace_network_acl_list(*args) ⇒ Object

Replaces ACL associated with a Network or private gateway

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/replace_network_acl_list.rb', line 9

def replace_network_acl_list(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'replaceNetworkACLList') 
  else
    options.merge!('command' => 'replaceNetworkACLList', 
    'aclid' => args[0])
  end
  request(options)
end

#request(params) ⇒ Object



586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
# File 'lib/fog/cloudstack/compute.rb', line 586

def request(params)
  params.reject!{|k,v| v.nil?}

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

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

  response = issue_request(params,headers)
  response = Fog::JSON.decode(response.body) unless response.body.empty?
  response
end

#reset_api_limit(*args) ⇒ Object

Reset api count

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/reset_api_limit.rb', line 9

def reset_api_limit(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'resetApiLimit') 
  else
    options.merge!('command' => 'resetApiLimit')
  end
  request(options)
end

#reset_password_for_virtual_machine(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/reset_password_for_virtual_machine.rb', line 9

def reset_password_for_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'resetPasswordForVirtualMachine') 
  else
    options.merge!('command' => 'resetPasswordForVirtualMachine', 
    'id' => args[0])
  end
  request(options)
end

#reset_ssh_key_for_virtual_machine(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/cloudstack/requests/compute/reset_ssh_key_for_virtual_machine.rb', line 9

def reset_ssh_key_for_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'resetSSHKeyForVirtualMachine')
  else
    options.merge!('command' => 'resetSSHKeyForVirtualMachine',
    'id' => args[0],
    'keypair' => args[1])
  end
  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil
  request(options)
end

#reset_vpn_connection(*args) ⇒ Object

Reset site to site vpn connection

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/reset_vpn_connection.rb', line 9

def reset_vpn_connection(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'resetVpnConnection') 
  else
    options.merge!('command' => 'resetVpnConnection', 
    'id' => args[0])
  end
  request(options)
end

#resize_volume(*args) ⇒ Object

Resizes a volume

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/resize_volume.rb', line 9

def resize_volume(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'resizeVolume') 
  else
    options.merge!('command' => 'resizeVolume', 
    'id' => args[0])
  end
  request(options)
end

#restart_network(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/restart_network.rb', line 9

def restart_network(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'restartNetwork') 
  else
    options.merge!('command' => 'restartNetwork', 
    'id' => args[0])
  end
  request(options)
end

#restart_vpc(*args) ⇒ Object

Restarts a VPC

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/restart_vpc.rb', line 9

def restart_vpc(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'restartVPC') 
  else
    options.merge!('command' => 'restartVPC', 
    'id' => args[0])
  end
  request(options)
end

#restore_virtual_machine(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/restore_virtual_machine.rb', line 9

def restore_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'restoreVirtualMachine') 
  else
    options.merge!('command' => 'restoreVirtualMachine', 
    'virtualmachineid' => args[0])
  end
  request(options)
end

#revert_snapshot(*args) ⇒ Object

revert a volume snapshot.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/revert_snapshot.rb', line 9

def revert_snapshot(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'revertSnapshot') 
  else
    options.merge!('command' => 'revertSnapshot', 
    'id' => args[0])
  end
  request(options)
end

#revert_to_vm_snapshot(*args) ⇒ Object

Revert VM from a vmsnapshot.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/revert_to_vm_snapshot.rb', line 9

def revert_to_vm_snapshot(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'revertToVMSnapshot') 
  else
    options.merge!('command' => 'revertToVMSnapshot', 
    'vmsnapshotid' => args[0])
  end
  request(options)
end

#revoke_security_group_egress(*args) ⇒ Object

Deletes a particular egress rule from this security group

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/revoke_security_group_egress.rb', line 9

def revoke_security_group_egress(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'revokeSecurityGroupEgress') 
  else
    options.merge!('command' => 'revokeSecurityGroupEgress', 
    'id' => args[0])
  end
  request(options)
end

#revoke_security_group_ingress(*args) ⇒ Object

Deletes a particular ingress rule from this security group

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/revoke_security_group_ingress.rb', line 9

def revoke_security_group_ingress(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'revokeSecurityGroupIngress') 
  else
    options.merge!('command' => 'revokeSecurityGroupIngress', 
    'id' => args[0])
  end
  request(options)
end

#scale_system_vm(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/scale_system_vm.rb', line 9

def scale_system_vm(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'scaleSystemVm') 
  else
    options.merge!('command' => 'scaleSystemVm', 
    'serviceofferingid' => args[0], 
    'id' => args[1])
  end
  request(options)
end

#scale_virtual_machine(*args) ⇒ Object

Scales the virtual machine to a new service offering.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/scale_virtual_machine.rb', line 9

def scale_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'scaleVirtualMachine') 
  else
    options.merge!('command' => 'scaleVirtualMachine', 
    'serviceofferingid' => args[0], 
    'id' => args[1])
  end
  request(options)
end

#start_internal_load_balancer_vm(*args) ⇒ Object

Starts an existing internal lb vm.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/start_internal_load_balancer_vm.rb', line 9

def start_internal_load_balancer_vm(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'startInternalLoadBalancerVM') 
  else
    options.merge!('command' => 'startInternalLoadBalancerVM', 
    'id' => args[0])
  end
  request(options)
end

#start_router(*args) ⇒ Object

Starts a router.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/start_router.rb', line 9

def start_router(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'startRouter') 
  else
    options.merge!('command' => 'startRouter', 
    'id' => args[0])
  end
  request(options)
end

#start_system_vm(*args) ⇒ Object

Starts a system virtual machine.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/start_system_vm.rb', line 9

def start_system_vm(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'startSystemVm') 
  else
    options.merge!('command' => 'startSystemVm', 
    'id' => args[0])
  end
  request(options)
end

#start_virtual_machine(*args) ⇒ Object

Starts a virtual machine.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/start_virtual_machine.rb', line 9

def start_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'startVirtualMachine') 
  else
    options.merge!('command' => 'startVirtualMachine', 
    'id' => args[0])
  end
  request(options)
end

#stop_internal_load_balancer_vm(*args) ⇒ Object

Stops an Internal LB vm.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/stop_internal_load_balancer_vm.rb', line 9

def stop_internal_load_balancer_vm(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'stopInternalLoadBalancerVM') 
  else
    options.merge!('command' => 'stopInternalLoadBalancerVM', 
    'id' => args[0])
  end
  request(options)
end

#stop_router(*args) ⇒ Object

Stops a router.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/stop_router.rb', line 9

def stop_router(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'stopRouter') 
  else
    options.merge!('command' => 'stopRouter', 
    'id' => args[0])
  end
  request(options)
end

#stop_system_vm(*args) ⇒ Object

Stops a system VM.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/stop_system_vm.rb', line 9

def stop_system_vm(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'stopSystemVm') 
  else
    options.merge!('command' => 'stopSystemVm', 
    'id' => args[0])
  end
  request(options)
end

#stop_virtual_machine(*args) ⇒ Object

Stops a virtual machine.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/stop_virtual_machine.rb', line 9

def stop_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'stopVirtualMachine') 
  else
    options.merge!('command' => 'stopVirtualMachine', 
    'id' => args[0])
  end
  request(options)
end

#suspend_project(*args) ⇒ Object

Suspends a project

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/suspend_project.rb', line 9

def suspend_project(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'suspendProject') 
  else
    options.merge!('command' => 'suspendProject', 
    'id' => args[0])
  end
  request(options)
end

#update_account(*args) ⇒ Object

Updates account information for the authenticated user

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_account.rb', line 9

def (*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateAccount') 
  else
    options.merge!('command' => 'updateAccount', 
    'newname' => args[0])
  end
  request(options)
end

#update_auto_scale_policy(*args) ⇒ Object

Updates an existing autoscale policy.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_auto_scale_policy.rb', line 9

def update_auto_scale_policy(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateAutoScalePolicy') 
  else
    options.merge!('command' => 'updateAutoScalePolicy', 
    'id' => args[0])
  end
  request(options)
end

#update_auto_scale_vm_group(*args) ⇒ Object

Updates an existing autoscale vm group.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_auto_scale_vm_group.rb', line 9

def update_auto_scale_vm_group(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateAutoScaleVmGroup') 
  else
    options.merge!('command' => 'updateAutoScaleVmGroup', 
    'id' => args[0])
  end
  request(options)
end

#update_auto_scale_vm_profile(*args) ⇒ Object

Updates an existing autoscale vm profile.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_auto_scale_vm_profile.rb', line 9

def update_auto_scale_vm_profile(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateAutoScaleVmProfile') 
  else
    options.merge!('command' => 'updateAutoScaleVmProfile', 
    'id' => args[0])
  end
  request(options)
end

#update_cloud_to_use_object_store(*args) ⇒ Object

Migrate current NFS secondary storages to use object store.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_cloud_to_use_object_store.rb', line 9

def update_cloud_to_use_object_store(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateCloudToUseObjectStore') 
  else
    options.merge!('command' => 'updateCloudToUseObjectStore', 
    'provider' => args[0])
  end
  request(options)
end

#update_cluster(*args) ⇒ Object

Updates an existing cluster

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_cluster.rb', line 9

def update_cluster(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateCluster') 
  else
    options.merge!('command' => 'updateCluster', 
    'id' => args[0])
  end
  request(options)
end

#update_configuration(*args) ⇒ Object

Updates a configuration.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_configuration.rb', line 9

def update_configuration(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateConfiguration') 
  else
    options.merge!('command' => 'updateConfiguration', 
    'name' => args[0])
  end
  request(options)
end

#update_default_nic_for_virtual_machine(*args) ⇒ Object

Changes the default NIC on a VM

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/update_default_nic_for_virtual_machine.rb', line 9

def update_default_nic_for_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateDefaultNicForVirtualMachine') 
  else
    options.merge!('command' => 'updateDefaultNicForVirtualMachine', 
    'nicid' => args[0], 
    'virtualmachineid' => args[1])
  end
  request(options)
end

#update_disk_offering(*args) ⇒ Object

Updates a disk offering.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_disk_offering.rb', line 9

def update_disk_offering(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateDiskOffering') 
  else
    options.merge!('command' => 'updateDiskOffering', 
    'id' => args[0])
  end
  request(options)
end

#update_domain(*args) ⇒ Object

Updates a domain with a new name

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_domain.rb', line 9

def update_domain(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateDomain') 
  else
    options.merge!('command' => 'updateDomain', 
    'id' => args[0])
  end
  request(options)
end

#update_egress_firewall_rule(*args) ⇒ Object

Updates egress firewall rule

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_egress_firewall_rule.rb', line 9

def update_egress_firewall_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateEgressFirewallRule') 
  else
    options.merge!('command' => 'updateEgressFirewallRule', 
    'id' => args[0])
  end
  request(options)
end

#update_firewall_rule(*args) ⇒ Object

Updates firewall rule

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_firewall_rule.rb', line 9

def update_firewall_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateFirewallRule') 
  else
    options.merge!('command' => 'updateFirewallRule', 
    'id' => args[0])
  end
  request(options)
end

#update_global_load_balancer_rule(*args) ⇒ Object

update global load balancer rules.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_global_load_balancer_rule.rb', line 9

def update_global_load_balancer_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateGlobalLoadBalancerRule') 
  else
    options.merge!('command' => 'updateGlobalLoadBalancerRule', 
    'id' => args[0])
  end
  request(options)
end

#update_guest_os(*args) ⇒ Object

Updates the information about Guest OS

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/update_guest_os.rb', line 9

def update_guest_os(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateGuestOs') 
  else
    options.merge!('command' => 'updateGuestOs', 
    'id' => args[0], 
    'osdisplayname' => args[1])
  end
  request(options)
end

#update_guest_os_mapping(*args) ⇒ Object

Updates the information about Guest OS to Hypervisor specific name mapping

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/update_guest_os_mapping.rb', line 9

def update_guest_os_mapping(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateGuestOsMapping') 
  else
    options.merge!('command' => 'updateGuestOsMapping', 
    'osnameforhypervisor' => args[0], 
    'id' => args[1])
  end
  request(options)
end

#update_host(*args) ⇒ Object

Updates a host.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_host.rb', line 9

def update_host(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateHost') 
  else
    options.merge!('command' => 'updateHost', 
    'id' => args[0])
  end
  request(options)
end

#update_host_password(*args) ⇒ Object

Update password of a host/pool on management server.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/update_host_password.rb', line 9

def update_host_password(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateHostPassword') 
  else
    options.merge!('command' => 'updateHostPassword', 
    'username' => args[0], 
    'password' => args[1])
  end
  request(options)
end

#update_hypervisor_capabilities(*args) ⇒ Object

Updates a hypervisor capabilities.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/update_hypervisor_capabilities.rb', line 9

def update_hypervisor_capabilities(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateHypervisorCapabilities') 
  else
    options.merge!('command' => 'updateHypervisorCapabilities')
  end
  request(options)
end

#update_instance_group(*args) ⇒ Object

Updates a vm group

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_instance_group.rb', line 9

def update_instance_group(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateInstanceGroup') 
  else
    options.merge!('command' => 'updateInstanceGroup', 
    'id' => args[0])
  end
  request(options)
end

#update_ip_address(*args) ⇒ Object

Updates an ip address

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_ip_address.rb', line 9

def update_ip_address(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateIpAddress') 
  else
    options.merge!('command' => 'updateIpAddress', 
    'id' => args[0])
  end
  request(options)
end

#update_iso(*args) ⇒ Object

Updates an ISO file.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_iso.rb', line 9

def update_iso(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateIso') 
  else
    options.merge!('command' => 'updateIso', 
    'id' => args[0])
  end
  request(options)
end

#update_iso_permissions(*args) ⇒ Object

Updates iso permissions

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_iso_permissions.rb', line 9

def update_iso_permissions(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateIsoPermissions') 
  else
    options.merge!('command' => 'updateIsoPermissions', 
    'id' => args[0])
  end
  request(options)
end

#update_lb_health_check_policy(*args) ⇒ Object

Updates LB HealthCheck policy

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_lb_health_check_policy.rb', line 9

def update_lb_health_check_policy(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateLBHealthCheckPolicy') 
  else
    options.merge!('command' => 'updateLBHealthCheckPolicy', 
    'id' => args[0])
  end
  request(options)
end

#update_lb_stickiness_policy(*args) ⇒ Object

Updates LB Stickiness policy

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_lb_stickiness_policy.rb', line 9

def update_lb_stickiness_policy(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateLBStickinessPolicy') 
  else
    options.merge!('command' => 'updateLBStickinessPolicy', 
    'id' => args[0])
  end
  request(options)
end

#update_load_balancer(*args) ⇒ Object

Updates a Load Balancer

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_load_balancer.rb', line 9

def update_load_balancer(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateLoadBalancer') 
  else
    options.merge!('command' => 'updateLoadBalancer', 
    'id' => args[0])
  end
  request(options)
end

#update_load_balancer_rule(*args) ⇒ Object

Updates load balancer

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_load_balancer_rule.rb', line 9

def update_load_balancer_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateLoadBalancerRule') 
  else
    options.merge!('command' => 'updateLoadBalancerRule', 
    'id' => args[0])
  end
  request(options)
end

#update_network(*args) ⇒ Object

Updates a network

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_network.rb', line 9

def update_network(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateNetwork') 
  else
    options.merge!('command' => 'updateNetwork', 
    'id' => args[0])
  end
  request(options)
end

#update_network_acl_item(*args) ⇒ Object

Updates ACL Item with specified Id

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_network_acl_item.rb', line 9

def update_network_acl_item(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateNetworkACLItem') 
  else
    options.merge!('command' => 'updateNetworkACLItem', 
    'id' => args[0])
  end
  request(options)
end

#update_network_acl_list(*args) ⇒ Object

Updates Network ACL list

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_network_acl_list.rb', line 9

def update_network_acl_list(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateNetworkACLList') 
  else
    options.merge!('command' => 'updateNetworkACLList', 
    'id' => args[0])
  end
  request(options)
end

#update_network_offering(*args) ⇒ Object

Updates a network offering.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/update_network_offering.rb', line 9

def update_network_offering(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateNetworkOffering') 
  else
    options.merge!('command' => 'updateNetworkOffering')
  end
  request(options)
end

#update_network_service_provider(*args) ⇒ Object

Updates a network serviceProvider of a physical network

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_network_service_provider.rb', line 9

def update_network_service_provider(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateNetworkServiceProvider') 
  else
    options.merge!('command' => 'updateNetworkServiceProvider', 
    'id' => args[0])
  end
  request(options)
end

#update_physical_network(*args) ⇒ Object

Updates a physical network

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_physical_network.rb', line 9

def update_physical_network(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updatePhysicalNetwork') 
  else
    options.merge!('command' => 'updatePhysicalNetwork', 
    'id' => args[0])
  end
  request(options)
end

#update_pod(*args) ⇒ Object

Updates a Pod.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_pod.rb', line 9

def update_pod(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updatePod') 
  else
    options.merge!('command' => 'updatePod', 
    'id' => args[0])
  end
  request(options)
end

#update_port_forwarding_rule(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_port_forwarding_rule.rb', line 9

def update_port_forwarding_rule(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updatePortForwardingRule') 
  else
    options.merge!('command' => 'updatePortForwardingRule', 
    'id' => args[0])
  end
  request(options)
end

#update_project(*args) ⇒ Object

Updates a project

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_project.rb', line 9

def update_project(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateProject') 
  else
    options.merge!('command' => 'updateProject', 
    'id' => args[0])
  end
  request(options)
end

#update_project_invitation(*args) ⇒ Object

Accepts or declines project invitation

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_project_invitation.rb', line 9

def update_project_invitation(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateProjectInvitation') 
  else
    options.merge!('command' => 'updateProjectInvitation', 
    'projectid' => args[0])
  end
  request(options)
end

#update_region(*args) ⇒ Object

Updates a region

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_region.rb', line 9

def update_region(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateRegion') 
  else
    options.merge!('command' => 'updateRegion', 
    'id' => args[0])
  end
  request(options)
end

#update_remote_access_vpn(*args) ⇒ Object

Updates remote access vpn

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_remote_access_vpn.rb', line 9

def update_remote_access_vpn(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateRemoteAccessVpn') 
  else
    options.merge!('command' => 'updateRemoteAccessVpn', 
    'id' => args[0])
  end
  request(options)
end

#update_resource_count(*args) ⇒ Object

Recalculate and update resource count for an account or domain.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_resource_count.rb', line 9

def update_resource_count(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateResourceCount') 
  else
    options.merge!('command' => 'updateResourceCount', 
    'domainid' => args[0])
  end
  request(options)
end

#update_resource_limit(*args) ⇒ Object

Updates resource limits for an account or domain.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_resource_limit.rb', line 9

def update_resource_limit(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateResourceLimit') 
  else
    options.merge!('command' => 'updateResourceLimit', 
    'resourcetype' => args[0])
  end
  request(options)
end

#update_service_offering(*args) ⇒ Object

Updates a service offering.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_service_offering.rb', line 9

def update_service_offering(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateServiceOffering') 
  else
    options.merge!('command' => 'updateServiceOffering', 
    'id' => args[0])
  end
  request(options)
end

#update_storage_network_ip_range(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_storage_network_ip_range.rb', line 9

def update_storage_network_ip_range(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateStorageNetworkIpRange') 
  else
    options.merge!('command' => 'updateStorageNetworkIpRange', 
    'id' => args[0])
  end
  request(options)
end

#update_storage_pool(*args) ⇒ Object

Updates a storage pool.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_storage_pool.rb', line 9

def update_storage_pool(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateStoragePool') 
  else
    options.merge!('command' => 'updateStoragePool', 
    'id' => args[0])
  end
  request(options)
end

#update_template(*args) ⇒ Object

Updates attributes of a template.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_template.rb', line 9

def update_template(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateTemplate') 
  else
    options.merge!('command' => 'updateTemplate', 
    'id' => args[0])
  end
  request(options)
end

#update_template_permissions(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_template_permissions.rb', line 9

def update_template_permissions(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateTemplatePermissions') 
  else
    options.merge!('command' => 'updateTemplatePermissions', 
    'id' => args[0])
  end
  request(options)
end

#update_traffic_type(*args) ⇒ Object

Updates traffic type of a physical network

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_traffic_type.rb', line 9

def update_traffic_type(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateTrafficType') 
  else
    options.merge!('command' => 'updateTrafficType', 
    'id' => args[0])
  end
  request(options)
end

#update_user(*args) ⇒ Object

Updates a user account

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_user.rb', line 9

def update_user(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateUser') 
  else
    options.merge!('command' => 'updateUser', 
    'id' => args[0])
  end
  request(options)
end

#update_virtual_machine(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_virtual_machine.rb', line 9

def update_virtual_machine(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateVirtualMachine') 
  else
    options.merge!('command' => 'updateVirtualMachine', 
    'id' => args[0])
  end
  request(options)
end

#update_vm_affinity_group(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_vm_affinity_group.rb', line 9

def update_vm_affinity_group(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateVMAffinityGroup') 
  else
    options.merge!('command' => 'updateVMAffinityGroup', 
    'id' => args[0])
  end
  request(options)
end

#update_volume(*args) ⇒ Object

Updates the volume.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/update_volume.rb', line 9

def update_volume(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateVolume') 
  else
    options.merge!('command' => 'updateVolume')
  end
  request(options)
end

#update_vpc(*args) ⇒ Object

Updates a VPC

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_vpc.rb', line 9

def update_vpc(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateVPC') 
  else
    options.merge!('command' => 'updateVPC', 
    'id' => args[0])
  end
  request(options)
end

#update_vpcoffering(*args) ⇒ Object

Updates VPC offering

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_vpcoffering.rb', line 9

def update_vpcoffering(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateVPCOffering') 
  else
    options.merge!('command' => 'updateVPCOffering', 
    'id' => args[0])
  end
  request(options)
end

#update_vpn_connection(*args) ⇒ Object

Updates site to site vpn connection

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_vpn_connection.rb', line 9

def update_vpn_connection(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateVpnConnection') 
  else
    options.merge!('command' => 'updateVpnConnection', 
    'id' => args[0])
  end
  request(options)
end

#update_vpn_customer_gateway(*args) ⇒ Object

Update site to site vpn customer gateway

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/fog/cloudstack/requests/compute/update_vpn_customer_gateway.rb', line 9

def update_vpn_customer_gateway(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateVpnCustomerGateway') 
  else
    options.merge!('command' => 'updateVpnCustomerGateway', 
    'id' => args[0], 
    'gateway' => args[1], 
    'cidrlist' => args[2], 
    'ipsecpsk' => args[3], 
    'esppolicy' => args[4], 
    'ikepolicy' => args[5])
  end
  request(options)
end

#update_vpn_gateway(*args) ⇒ Object

Updates site to site vpn local gateway

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_vpn_gateway.rb', line 9

def update_vpn_gateway(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateVpnGateway') 
  else
    options.merge!('command' => 'updateVpnGateway', 
    'id' => args[0])
  end
  request(options)
end

#update_zone(*args) ⇒ Object

Updates a Zone.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/cloudstack/requests/compute/update_zone.rb', line 9

def update_zone(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'updateZone') 
  else
    options.merge!('command' => 'updateZone', 
    'id' => args[0])
  end
  request(options)
end

#upgrade_router_template(*args) ⇒ Object

Upgrades router to use newer template

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/cloudstack/requests/compute/upgrade_router_template.rb', line 9

def upgrade_router_template(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'upgradeRouterTemplate') 
  else
    options.merge!('command' => 'upgradeRouterTemplate')
  end
  request(options)
end

#upload_custom_certificate(*args) ⇒ Object

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

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/upload_custom_certificate.rb', line 9

def upload_custom_certificate(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'uploadCustomCertificate') 
  else
    options.merge!('command' => 'uploadCustomCertificate', 
    'domainsuffix' => args[0], 
    'certificate' => args[1])
  end
  request(options)
end

#upload_ssl_cert(*args) ⇒ Object

Upload a certificate to cloudstack

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/cloudstack/requests/compute/upload_ssl_cert.rb', line 9

def upload_ssl_cert(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'uploadSslCert') 
  else
    options.merge!('command' => 'uploadSslCert', 
    'certificate' => args[0], 
    'privatekey' => args[1])
  end
  request(options)
end

#upload_volume(*args) ⇒ Object

Uploads a data disk.

CloudStack API Reference



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/fog/cloudstack/requests/compute/upload_volume.rb', line 9

def upload_volume(*args)
  options = {}
  if args[0].is_a? Hash
    options = args[0]
    options.merge!('command' => 'uploadVolume')
  else
    options.merge!('command' => 'uploadVolume',
    'url' => args[0],
    'format' => args[1],
    'zoneid' => args[2],
    'name' => args[3])
  end
  # add project id if we have one
  @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil
  request(options)
end