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