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

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

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Real

Returns a new instance of Real.



500
501
502
503
504
505
506
507
508
509
510
# File 'lib/fog/cloudstack/compute.rb', line 500

def initialize(options={})
  @cloudstack_api_key           = options[:cloudstack_api_key]
  @cloudstack_secret_access_key = options[:cloudstack_secret_access_key]
  @cloudstack_session_id        = options[:cloudstack_session_id]
  @cloudstack_session_key       = options[:cloudstack_session_key]
  @host                         = options[:cloudstack_host]
  @path                         = options[:cloudstack_path]    || '/client/api'
  @port                         = options[:cloudstack_port]    || 443
  @scheme                       = options[:cloudstack_scheme]  || 'https'
  @connection = Fog::XML::Connection.new("#{@scheme}://#{@host}:#{@port}#{@path}", options[:cloudstack_persistent], {:ssl_verify_peer => false})
end

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(id, options = {}) ⇒ Object

Activates a project

CloudStack API Reference



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

def activate_project(id, options={})
  options.merge!(
    'command' => 'activateProject', 
    'id' => id  
  )
  request(options)
end

#add_account_to_project(projectid, options = {}) ⇒ Object

Adds acoount to a project

CloudStack API Reference



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

def (projectid, options={})
  options.merge!(
    'command' => 'addAccountToProject', 
    'projectid' => projectid  
  )
  request(options)
end

#add_baremetal_dhcp(dhcpservertype, physicalnetworkid, username, url, password, options = {}) ⇒ Object

adds a baremetal dhcp server

CloudStack API Reference



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

def add_baremetal_dhcp(dhcpservertype, physicalnetworkid, username, url, password, options={})
  options.merge!(
    'command' => 'addBaremetalDhcp', 
    'dhcpservertype' => dhcpservertype, 
    'physicalnetworkid' => physicalnetworkid, 
    'username' => username, 
    'url' => url, 
    'password' => password  
  )
  request(options)
end

#add_baremetal_host(zoneid, password, podid, username, hypervisor, url, options = {}) ⇒ Object

add a baremetal host

CloudStack API Reference



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

def add_baremetal_host(zoneid, password, podid, username, hypervisor, url, options={})
  options.merge!(
    'command' => 'addBaremetalHost', 
    'zoneid' => zoneid, 
    'password' => password, 
    'podid' => podid, 
    'username' => username, 
    'hypervisor' => hypervisor, 
    'url' => url  
  )
  request(options)
end

#add_baremetal_pxe_kick_start_server(username, url, physicalnetworkid, password, pxeservertype, tftpdir, options = {}) ⇒ Object

add a baremetal pxe server

CloudStack API Reference



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

def add_baremetal_pxe_kick_start_server(username, url, physicalnetworkid, password, pxeservertype, tftpdir, options={})
  options.merge!(
    'command' => 'addBaremetalPxeKickStartServer', 
    'username' => username, 
    'url' => url, 
    'physicalnetworkid' => physicalnetworkid, 
    'password' => password, 
    'pxeservertype' => pxeservertype, 
    'tftpdir' => tftpdir  
  )
  request(options)
end

#add_baremetal_pxe_ping_server(password, pxeservertype, pingstorageserverip, tftpdir, url, physicalnetworkid, pingdir, username, options = {}) ⇒ Object

add a baremetal ping pxe server

CloudStack API Reference



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

def add_baremetal_pxe_ping_server(password, pxeservertype, pingstorageserverip, tftpdir, url, physicalnetworkid, pingdir, username, options={})
  options.merge!(
    'command' => 'addBaremetalPxePingServer', 
    'password' => password, 
    'pxeservertype' => pxeservertype, 
    'pingstorageserverip' => pingstorageserverip, 
    'tftpdir' => tftpdir, 
    'url' => url, 
    'physicalnetworkid' => physicalnetworkid, 
    'pingdir' => pingdir, 
    'username' => username  
  )
  request(options)
end

#add_cisco_asa1000v_resource(physicalnetworkid, clusterid, hostname, insideportprofile, options = {}) ⇒ Object

Adds a Cisco Asa 1000v appliance

CloudStack API Reference



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

def add_cisco_asa1000v_resource(physicalnetworkid, clusterid, hostname, insideportprofile, options={})
  options.merge!(
    'command' => 'addCiscoAsa1000vResource', 
    'physicalnetworkid' => physicalnetworkid, 
    'clusterid' => clusterid, 
    'hostname' => hostname, 
    'insideportprofile' => insideportprofile  
  )
  request(options)
end

#add_cisco_vnmc_resource(physicalnetworkid, hostname, password, username, options = {}) ⇒ Object

Adds a Cisco Vnmc Controller

CloudStack API Reference



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

def add_cisco_vnmc_resource(physicalnetworkid, hostname, password, username, options={})
  options.merge!(
    'command' => 'addCiscoVnmcResource', 
    'physicalnetworkid' => physicalnetworkid, 
    'hostname' => hostname, 
    'password' => password, 
    'username' => username  
  )
  request(options)
end

#add_cluster(podid, clustername, clustertype, hypervisor, zoneid, options = {}) ⇒ Object

Adds a new cluster

CloudStack API Reference



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

def add_cluster(podid, clustername, clustertype, hypervisor, zoneid, options={})
  options.merge!(
    'command' => 'addCluster', 
    'podid' => podid, 
    'clustername' => clustername, 
    'clustertype' => clustertype, 
    'hypervisor' => hypervisor, 
    'zoneid' => zoneid  
  )
  request(options)
end

#add_external_firewall(url, username, password, zoneid, options = {}) ⇒ Object

Adds an external firewall appliance

CloudStack API Reference



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

def add_external_firewall(url, username, password, zoneid, options={})
  options.merge!(
    'command' => 'addExternalFirewall', 
    'url' => url, 
    'username' => username, 
    'password' => password, 
    'zoneid' => zoneid  
  )
  request(options)
end

#add_external_load_balancer(zoneid, username, password, url, options = {}) ⇒ Object

Adds F5 external load balancer appliance.

CloudStack API Reference



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

def add_external_load_balancer(zoneid, username, password, url, options={})
  options.merge!(
    'command' => 'addExternalLoadBalancer', 
    'zoneid' => zoneid, 
    'username' => username, 
    'password' => password, 
    'url' => url  
  )
  request(options)
end

#add_f5_load_balancer(url, physicalnetworkid, networkdevicetype, username, password, options = {}) ⇒ Object

Adds a F5 BigIP load balancer device

CloudStack API Reference



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

def add_f5_load_balancer(url, physicalnetworkid, networkdevicetype, username, password, options={})
  options.merge!(
    'command' => 'addF5LoadBalancer', 
    'url' => url, 
    'physicalnetworkid' => physicalnetworkid, 
    'networkdevicetype' => networkdevicetype, 
    'username' => username, 
    'password' => password  
  )
  request(options)
end

#add_host(hypervisor, zoneid, url, password, podid, username, options = {}) ⇒ Object

Adds a new host.

CloudStack API Reference



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

def add_host(hypervisor, zoneid, url, password, podid, username, options={})
  options.merge!(
    'command' => 'addHost', 
    'hypervisor' => hypervisor, 
    'zoneid' => zoneid, 
    'url' => url, 
    'password' => password, 
    'podid' => podid, 
    'username' => username  
  )
  request(options)
end

#add_image_store(provider, options = {}) ⇒ Object

Adds backup image store.

CloudStack API Reference



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

def add_image_store(provider, options={})
  options.merge!(
    'command' => 'addImageStore', 
    'provider' => provider  
  )
  request(options)
end

#add_ip_to_nic(nicid, options = {}) ⇒ Object

Assigns secondary IP to NIC

CloudStack API Reference



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

def add_ip_to_nic(nicid, options={})
  options.merge!(
    'command' => 'addIpToNic', 
    'nicid' => nicid  
  )
  request(options)
end

#add_netscaler_load_balancer(password, username, physicalnetworkid, networkdevicetype, url, options = {}) ⇒ Object

Adds 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/add_netscaler_load_balancer.rb', line 9

def add_netscaler_load_balancer(password, username, physicalnetworkid, networkdevicetype, url, options={})
  options.merge!(
    'command' => 'addNetscalerLoadBalancer', 
    'password' => password, 
    'username' => username, 
    'physicalnetworkid' => physicalnetworkid, 
    'networkdevicetype' => networkdevicetype, 
    'url' => url  
  )
  request(options)
end

#add_network_device(options = {}) ⇒ Object

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

CloudStack API Reference



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

def add_network_device(options={})
  options.merge!(
    'command' => 'addNetworkDevice'  
  )
  request(options)
end

#add_network_service_provider(physicalnetworkid, name, options = {}) ⇒ Object

Adds a network serviceProvider to a physical network

CloudStack API Reference



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

def add_network_service_provider(physicalnetworkid, name, options={})
  options.merge!(
    'command' => 'addNetworkServiceProvider', 
    'physicalnetworkid' => physicalnetworkid, 
    'name' => name  
  )
  request(options)
end

#add_nic_to_virtual_machine(virtualmachineid, networkid, options = {}) ⇒ Object

Adds VM to specified network by creating a NIC

CloudStack API Reference



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

def add_nic_to_virtual_machine(virtualmachineid, networkid, options={})
  options.merge!(
    'command' => 'addNicToVirtualMachine', 
    'virtualmachineid' => virtualmachineid, 
    'networkid' => networkid  
  )
  request(options)
end

#add_nicira_nvp_device(username, physicalnetworkid, transportzoneuuid, password, hostname, options = {}) ⇒ Object

Adds a Nicira NVP device

CloudStack API Reference



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

def add_nicira_nvp_device(username, physicalnetworkid, transportzoneuuid, password, hostname, options={})
  options.merge!(
    'command' => 'addNiciraNvpDevice', 
    'username' => username, 
    'physicalnetworkid' => physicalnetworkid, 
    'transportzoneuuid' => transportzoneuuid, 
    'password' => password, 
    'hostname' => hostname  
  )
  request(options)
end

#add_region(id, name, endpoint, options = {}) ⇒ Object

Adds a Region

CloudStack API Reference



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

def add_region(id, name, endpoint, options={})
  options.merge!(
    'command' => 'addRegion', 
    'id' => id, 
    'name' => name, 
    'endpoint' => endpoint  
  )
  request(options)
end

#add_resource_detail(resourcetype, details, resourceid, options = {}) ⇒ Object

Adds detail for the Resource.

CloudStack API Reference



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

def add_resource_detail(resourcetype, details, resourceid, options={})
  options.merge!(
    'command' => 'addResourceDetail', 
    'resourcetype' => resourcetype, 
    'details' => details, 
    'resourceid' => resourceid  
  )
  request(options)
end

#add_s3(bucket, accesskey, secretkey, options = {}) ⇒ Object



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

def add_s3(bucket, accesskey, secretkey, options={})
  options.merge!(
    'command' => 'addS3', 
    'bucket' => bucket, 
    'accesskey' => accesskey, 
    'secretkey' => secretkey  
  )
  request(options)
end

#add_secondary_storage(url, options = {}) ⇒ Object

Adds secondary storage.

CloudStack API Reference



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

def add_secondary_storage(url, options={})
  options.merge!(
    'command' => 'addSecondaryStorage', 
    'url' => url  
  )
  request(options)
end

#add_srx_firewall(username, networkdevicetype, physicalnetworkid, password, url, options = {}) ⇒ Object

Adds a SRX firewall device

CloudStack API Reference



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

def add_srx_firewall(username, networkdevicetype, physicalnetworkid, password, url, options={})
  options.merge!(
    'command' => 'addSrxFirewall', 
    'username' => username, 
    'networkdevicetype' => networkdevicetype, 
    'physicalnetworkid' => physicalnetworkid, 
    'password' => password, 
    'url' => url  
  )
  request(options)
end

#add_swift(url, options = {}) ⇒ Object



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

def add_swift(url, options={})
  options.merge!(
    'command' => 'addSwift', 
    'url' => url  
  )
  request(options)
end

#add_traffic_monitor(zoneid, url, options = {}) ⇒ Object

Adds Traffic Monitor Host for Direct Network Usage

CloudStack API Reference



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

def add_traffic_monitor(zoneid, url, options={})
  options.merge!(
    'command' => 'addTrafficMonitor', 
    'zoneid' => zoneid, 
    'url' => url  
  )
  request(options)
end

#add_traffic_type(physicalnetworkid, traffictype, options = {}) ⇒ Object

Adds traffic type to a physical network

CloudStack API Reference



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

def add_traffic_type(physicalnetworkid, traffictype, options={})
  options.merge!(
    'command' => 'addTrafficType', 
    'physicalnetworkid' => physicalnetworkid, 
    'traffictype' => traffictype  
  )
  request(options)
end

#add_ucs_manager(zoneid, url, password, username, options = {}) ⇒ Object

Adds a Ucs manager

CloudStack API Reference



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

def add_ucs_manager(zoneid, url, password, username, options={})
  options.merge!(
    'command' => 'addUcsManager', 
    'zoneid' => zoneid, 
    'url' => url, 
    'password' => password, 
    'username' => username  
  )
  request(options)
end

#add_vmware_dc(zoneid, name, vcenter, options = {}) ⇒ Object

Adds a VMware datacenter to specified zone

CloudStack API Reference



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

def add_vmware_dc(zoneid, name, vcenter, options={})
  options.merge!(
    'command' => 'addVmwareDc', 
    'zoneid' => zoneid, 
    'name' => name, 
    'vcenter' => vcenter  
  )
  request(options)
end

#add_vpn_user(password, username, options = {}) ⇒ Object

Adds vpn users

CloudStack API Reference



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

def add_vpn_user(password, username, options={})
  options.merge!(
    'command' => 'addVpnUser', 
    'password' => password, 
    'username' => username  
  )
  request(options)
end

#archive_alerts(options = {}) ⇒ Object

Archive one or more alerts.

CloudStack API Reference



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

def archive_alerts(options={})
  options.merge!(
    'command' => 'archiveAlerts'  
  )
  request(options)
end

#archive_events(options = {}) ⇒ Object

Archive one or more events.

CloudStack API Reference



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

def archive_events(options={})
  options.merge!(
    'command' => 'archiveEvents'  
  )
  request(options)
end

#assign_to_global_load_balancer_rule(id, loadbalancerrulelist, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb', line 9

def assign_to_global_load_balancer_rule(id, loadbalancerrulelist, options={})
  options.merge!(
    'command' => 'assignToGlobalLoadBalancerRule', 
    'id' => id, 
    'loadbalancerrulelist' => loadbalancerrulelist  
  )
  request(options)
end

#assign_to_load_balancer_rule(id, virtualmachineids, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/assign_to_load_balancer_rule.rb', line 9

def assign_to_load_balancer_rule(id, virtualmachineids, options={})
  options.merge!(
    'command' => 'assignToLoadBalancerRule', 
    'id' => id, 
    'virtualmachineids' => virtualmachineids  
  )
  request(options)
end

#assign_virtual_machine(virtualmachineid, account, domainid, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/assign_virtual_machine.rb', line 9

def assign_virtual_machine(virtualmachineid, , domainid, options={})
  options.merge!(
    'command' => 'assignVirtualMachine', 
    'virtualmachineid' => virtualmachineid, 
    'account' => , 
    'domainid' => domainid  
  )
  request(options)
end

#associate_ip_address(options = {}) ⇒ Object

Acquires and associates a public IP to an account.

CloudStack API Reference



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

def associate_ip_address(options={})
  options.merge!(
    'command' => 'associateIpAddress'  
  )
  request(options)
end

#associate_lun(iqn, name, options = {}) ⇒ 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(bladeid, profiledn, ucsmanagerid, options = {}) ⇒ Object

associate a profile to a blade

CloudStack API Reference



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

def associate_ucs_profile_to_blade(bladeid, profiledn, ucsmanagerid, options={})
  options.merge!(
    'command' => 'associateUcsProfileToBlade', 
    'bladeid' => bladeid, 
    'profiledn' => profiledn, 
    'ucsmanagerid' => ucsmanagerid  
  )
  request(options)
end

#attach_iso(id, virtualmachineid, options = {}) ⇒ Object

Attaches an ISO to a virtual machine.

CloudStack API Reference



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

def attach_iso(id, virtualmachineid, options={})
  options.merge!(
    'command' => 'attachIso', 
    'id' => id, 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end

#attach_volume(virtualmachineid, id, options = {}) ⇒ Object

Attaches a disk volume to a virtual machine.

CloudStack API Reference



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

def attach_volume(virtualmachineid, id, options={})
  options.merge!(
    'command' => 'attachVolume', 
    'virtualmachineid' => virtualmachineid, 
    'id' => id  
  )
  request(options)
end

#authorize_security_group_egress(options = {}) ⇒ Object

Authorizes a particular egress rule for this security group

CloudStack API Reference



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

def authorize_security_group_egress(options={})
  options.merge!(
    'command' => 'authorizeSecurityGroupEgress'  
  )
  request(options)
end

#authorize_security_group_ingress(options = {}) ⇒ Object

Authorizes a particular ingress rule for this security group

CloudStack API Reference



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

def authorize_security_group_ingress(options={})
  options.merge!(
    'command' => 'authorizeSecurityGroupIngress'  
  )
  request(options)
end

#cancel_host_maintenance(id, options = {}) ⇒ Object

Cancels host maintenance.

CloudStack API Reference



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

def cancel_host_maintenance(id, options={})
  options.merge!(
    'command' => 'cancelHostMaintenance', 
    'id' => id  
  )
  request(options)
end

#cancel_storage_maintenance(id, options = {}) ⇒ Object

Cancels maintenance for primary storage

CloudStack API Reference



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

def cancel_storage_maintenance(id, options={})
  options.merge!(
    'command' => 'cancelStorageMaintenance', 
    'id' => id  
  )
  request(options)
end

#change_service_for_router(serviceofferingid, id, options = {}) ⇒ Object

Upgrades domain router to a new service offering

CloudStack API Reference



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

def change_service_for_router(serviceofferingid, id, options={})
  options.merge!(
    'command' => 'changeServiceForRouter', 
    'serviceofferingid' => serviceofferingid, 
    'id' => id  
  )
  request(options)
end

#change_service_for_system_vm(id, serviceofferingid, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/change_service_for_system_vm.rb', line 9

def change_service_for_system_vm(id, serviceofferingid, options={})
  options.merge!(
    'command' => 'changeServiceForSystemVm', 
    'id' => id, 
    'serviceofferingid' => serviceofferingid  
  )
  request(options)
end

#change_service_for_virtual_machine(serviceofferingid, id, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/change_service_for_virtual_machine.rb', line 9

def change_service_for_virtual_machine(serviceofferingid, id, options={})
  options.merge!(
    'command' => 'changeServiceForVirtualMachine', 
    'serviceofferingid' => serviceofferingid, 
    'id' => id  
  )
  request(options)
end

#clean_vmreservations(options = {}) ⇒ Object

Cleanups VM reservations in the database.

CloudStack API Reference



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

def clean_vmreservations(options={})
  options.merge!(
    'command' => 'cleanVMReservations'  
  )
  request(options)
end

#configure_f5_load_balancer(lbdeviceid, options = {}) ⇒ Object

configures a F5 load balancer device

CloudStack API Reference



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

def configure_f5_load_balancer(lbdeviceid, options={})
  options.merge!(
    'command' => 'configureF5LoadBalancer', 
    'lbdeviceid' => lbdeviceid  
  )
  request(options)
end

#configure_internal_load_balancer_element(id, enabled, options = {}) ⇒ Object

Configures an Internal Load Balancer element.

CloudStack API Reference



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

def configure_internal_load_balancer_element(id, enabled, options={})
  options.merge!(
    'command' => 'configureInternalLoadBalancerElement', 
    'id' => id, 
    'enabled' => enabled  
  )
  request(options)
end

#configure_netscaler_load_balancer(lbdeviceid, options = {}) ⇒ Object

configures a netscaler load balancer device

CloudStack API Reference



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

def configure_netscaler_load_balancer(lbdeviceid, options={})
  options.merge!(
    'command' => 'configureNetscalerLoadBalancer', 
    'lbdeviceid' => lbdeviceid  
  )
  request(options)
end

#configure_srx_firewall(fwdeviceid, options = {}) ⇒ Object

Configures a SRX firewall device

CloudStack API Reference



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

def configure_srx_firewall(fwdeviceid, options={})
  options.merge!(
    'command' => 'configureSrxFirewall', 
    'fwdeviceid' => fwdeviceid  
  )
  request(options)
end

#configure_virtual_router_element(id, enabled, options = {}) ⇒ Object

Configures a virtual router element.

CloudStack API Reference



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

def configure_virtual_router_element(id, enabled, options={})
  options.merge!(
    'command' => 'configureVirtualRouterElement', 
    'id' => id, 
    'enabled' => enabled  
  )
  request(options)
end

#copy_iso(id, sourcezoneid, destzoneid, options = {}) ⇒ Object

Copies an iso from one zone to another.

CloudStack API Reference



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

def copy_iso(id, sourcezoneid, destzoneid, options={})
  options.merge!(
    'command' => 'copyIso', 
    'id' => id, 
    'sourcezoneid' => sourcezoneid, 
    'destzoneid' => destzoneid  
  )
  request(options)
end

#copy_template(destzoneid, id, sourcezoneid, options = {}) ⇒ Object

Copies a template from one zone to another.

CloudStack API Reference



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

def copy_template(destzoneid, id, sourcezoneid, options={})
  options.merge!(
    'command' => 'copyTemplate', 
    'destzoneid' => destzoneid, 
    'id' => id, 
    'sourcezoneid' => sourcezoneid  
  )
  request(options)
end

#create_account(password, lastname, accounttype, username, email, firstname, options = {}) ⇒ Object

Creates an account

CloudStack API Reference



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

def (password, lastname, accounttype, username, email, firstname, options={})
  options.merge!(
    'command' => 'createAccount', 
    'password' => password, 
    'lastname' => lastname, 
    'accounttype' => accounttype, 
    'username' => username, 
    'email' => email, 
    'firstname' => firstname  
  )
  request(options)
end

#create_affinity_group(name, type, options = {}) ⇒ Object

Creates an affinity/anti-affinity group

CloudStack API Reference



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

def create_affinity_group(name, type, options={})
  options.merge!(
    'command' => 'createAffinityGroup', 
    'name' => name, 
    'type' => type  
  )
  request(options)
end

#create_auto_scale_policy(action, duration, conditionids, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/create_auto_scale_policy.rb', line 9

def create_auto_scale_policy(action, duration, conditionids, options={})
  options.merge!(
    'command' => 'createAutoScalePolicy', 
    'action' => action, 
    'duration' => duration, 
    'conditionids' => conditionids  
  )
  request(options)
end

#create_auto_scale_vm_group(lbruleid, vmprofileid, scaleuppolicyids, minmembers, scaledownpolicyids, maxmembers, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/create_auto_scale_vm_group.rb', line 9

def create_auto_scale_vm_group(lbruleid, vmprofileid, scaleuppolicyids, minmembers, scaledownpolicyids, maxmembers, options={})
  options.merge!(
    'command' => 'createAutoScaleVmGroup', 
    'lbruleid' => lbruleid, 
    'vmprofileid' => vmprofileid, 
    'scaleuppolicyids' => scaleuppolicyids, 
    'minmembers' => minmembers, 
    'scaledownpolicyids' => scaledownpolicyids, 
    'maxmembers' => maxmembers  
  )
  request(options)
end

#create_auto_scale_vm_profile(serviceofferingid, templateid, zoneid, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/create_auto_scale_vm_profile.rb', line 9

def create_auto_scale_vm_profile(serviceofferingid, templateid, zoneid, options={})
  options.merge!(
    'command' => 'createAutoScaleVmProfile', 
    'serviceofferingid' => serviceofferingid, 
    'templateid' => templateid, 
    'zoneid' => zoneid  
  )
  request(options)
end

#create_condition(relationaloperator, threshold, counterid, options = {}) ⇒ Object

Creates a condition

CloudStack API Reference



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

def create_condition(relationaloperator, threshold, counterid, options={})
  options.merge!(
    'command' => 'createCondition', 
    'relationaloperator' => relationaloperator, 
    'threshold' => threshold, 
    'counterid' => counterid  
  )
  request(options)
end

#create_counter(source, value, name, options = {}) ⇒ Object

Adds metric counter

CloudStack API Reference



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

def create_counter(source, value, name, options={})
  options.merge!(
    'command' => 'createCounter', 
    'source' => source, 
    'value' => value, 
    'name' => name  
  )
  request(options)
end

#create_disk_offering(name, displaytext, options = {}) ⇒ Object

Creates a disk offering.

CloudStack API Reference



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

def create_disk_offering(name, displaytext, options={})
  options.merge!(
    'command' => 'createDiskOffering', 
    'name' => name, 
    'displaytext' => displaytext  
  )
  request(options)
end

#create_domain(name, options = {}) ⇒ Object

Creates a domain

CloudStack API Reference



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

def create_domain(name, options={})
  options.merge!(
    'command' => 'createDomain', 
    'name' => name  
  )
  request(options)
end

#create_egress_firewall_rule(protocol, networkid, options = {}) ⇒ Object

Creates a egress firewall rule for a given network

CloudStack API Reference



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

def create_egress_firewall_rule(protocol, networkid, options={})
  options.merge!(
    'command' => 'createEgressFirewallRule', 
    'protocol' => protocol, 
    'networkid' => networkid  
  )
  request(options)
end

#create_firewall_rule(ipaddressid, protocol, options = {}) ⇒ Object

Creates a firewall rule for a given ip address

CloudStack API Reference



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

def create_firewall_rule(ipaddressid, protocol, options={})
  options.merge!(
    'command' => 'createFirewallRule', 
    'ipaddressid' => ipaddressid, 
    'protocol' => protocol  
  )
  request(options)
end

#create_global_load_balancer_rule(gslbservicetype, gslbdomainname, regionid, name, options = {}) ⇒ Object

Creates a global load balancer rule

CloudStack API Reference



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

def create_global_load_balancer_rule(gslbservicetype, gslbdomainname, regionid, name, options={})
  options.merge!(
    'command' => 'createGlobalLoadBalancerRule', 
    'gslbservicetype' => gslbservicetype, 
    'gslbdomainname' => gslbdomainname, 
    'regionid' => regionid, 
    'name' => name  
  )
  request(options)
end

#create_instance_group(name, options = {}) ⇒ Object

Creates a vm group

CloudStack API Reference



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

def create_instance_group(name, options={})
  options.merge!(
    'command' => 'createInstanceGroup', 
    'name' => name  
  )
  request(options)
end

#create_internal_load_balancer_element(nspid, options = {}) ⇒ Object

Create an Internal Load Balancer element.

CloudStack API Reference



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

def create_internal_load_balancer_element(nspid, options={})
  options.merge!(
    'command' => 'createInternalLoadBalancerElement', 
    'nspid' => nspid  
  )
  request(options)
end

#create_ip_forwarding_rule(startport, protocol, ipaddressid, options = {}) ⇒ Object

Creates an ip forwarding rule

CloudStack API Reference



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

def create_ip_forwarding_rule(startport, protocol, ipaddressid, options={})
  options.merge!(
    'command' => 'createIpForwardingRule', 
    'startport' => startport, 
    'protocol' => protocol, 
    'ipaddressid' => ipaddressid  
  )
  request(options)
end

#create_lb_health_check_policy(lbruleid, options = {}) ⇒ Object

Creates a Load Balancer healthcheck policy

CloudStack API Reference



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

def create_lb_health_check_policy(lbruleid, options={})
  options.merge!(
    'command' => 'createLBHealthCheckPolicy', 
    'lbruleid' => lbruleid  
  )
  request(options)
end

#create_lb_stickiness_policy(lbruleid, methodname, name, options = {}) ⇒ Object

Creates a Load Balancer stickiness policy

CloudStack API Reference



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

def create_lb_stickiness_policy(lbruleid, methodname, name, options={})
  options.merge!(
    'command' => 'createLBStickinessPolicy', 
    'lbruleid' => lbruleid, 
    'methodname' => methodname, 
    'name' => name  
  )
  request(options)
end

#create_load_balancer(scheme, networkid, instanceport, name, algorithm, sourceipaddressnetworkid, sourceport, options = {}) ⇒ Object

Creates a Load Balancer

CloudStack API Reference



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

def create_load_balancer(scheme, networkid, instanceport, name, algorithm, sourceipaddressnetworkid, sourceport, options={})
  options.merge!(
    'command' => 'createLoadBalancer', 
    'scheme' => scheme, 
    'networkid' => networkid, 
    'instanceport' => instanceport, 
    'name' => name, 
    'algorithm' => algorithm, 
    'sourceipaddressnetworkid' => sourceipaddressnetworkid, 
    'sourceport' => sourceport  
  )
  request(options)
end

#create_load_balancer_rule(publicport, algorithm, privateport, name, options = {}) ⇒ Object

Creates a load balancer rule

CloudStack API Reference



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

def create_load_balancer_rule(publicport, algorithm, privateport, name, options={})
  options.merge!(
    'command' => 'createLoadBalancerRule', 
    'publicport' => publicport, 
    'algorithm' => algorithm, 
    'privateport' => privateport, 
    'name' => name  
  )
  request(options)
end

#create_lun_on_filer(size, name, options = {}) ⇒ 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(displaytext, name, networkofferingid, zoneid, options = {}) ⇒ Object

Creates a network

CloudStack API Reference



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

def create_network(displaytext, name, networkofferingid, zoneid, options={})
  options.merge!(
    'command' => 'createNetwork', 
    'displaytext' => displaytext, 
    'name' => name, 
    'networkofferingid' => networkofferingid, 
    'zoneid' => zoneid  
  )
  request(options)
end

#create_network_acl(protocol, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/create_network_acl.rb', line 9

def create_network_acl(protocol, options={})
  options.merge!(
    'command' => 'createNetworkACL', 
    'protocol' => protocol  
  )
  request(options)
end

#create_network_acl_list(vpcid, name, options = {}) ⇒ Object

Creates a Network ACL for the given VPC

CloudStack API Reference



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

def create_network_acl_list(vpcid, name, options={})
  options.merge!(
    'command' => 'createNetworkACLList', 
    'vpcid' => vpcid, 
    'name' => name  
  )
  request(options)
end

#create_network_offering(guestiptype, traffictype, name, supportedservices, displaytext, options = {}) ⇒ Object

Creates a network offering.

CloudStack API Reference



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

def create_network_offering(guestiptype, traffictype, name, supportedservices, displaytext, options={})
  options.merge!(
    'command' => 'createNetworkOffering', 
    'guestiptype' => guestiptype, 
    'traffictype' => traffictype, 
    'name' => name, 
    'supportedservices' => supportedservices, 
    'displaytext' => displaytext  
  )
  request(options)
end

#create_physical_network(zoneid, name, options = {}) ⇒ Object

Creates a physical network

CloudStack API Reference



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

def create_physical_network(zoneid, name, options={})
  options.merge!(
    'command' => 'createPhysicalNetwork', 
    'zoneid' => zoneid, 
    'name' => name  
  )
  request(options)
end

#create_pod(netmask, name, startip, gateway, zoneid, options = {}) ⇒ Object

Creates a new Pod.

CloudStack API Reference



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

def create_pod(netmask, name, startip, gateway, zoneid, options={})
  options.merge!(
    'command' => 'createPod', 
    'netmask' => netmask, 
    'name' => name, 
    'startip' => startip, 
    'gateway' => gateway, 
    'zoneid' => zoneid  
  )
  request(options)
end

#create_pool(algorithm, name, options = {}) ⇒ 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(publicport, virtualmachineid, ipaddressid, privateport, protocol, options = {}) ⇒ Object

Creates a port forwarding rule

CloudStack API Reference



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

def create_port_forwarding_rule(publicport, virtualmachineid, ipaddressid, privateport, protocol, options={})
  options.merge!(
    'command' => 'createPortForwardingRule', 
    'publicport' => publicport, 
    'virtualmachineid' => virtualmachineid, 
    'ipaddressid' => ipaddressid, 
    'privateport' => privateport, 
    'protocol' => protocol  
  )
  request(options)
end

#create_portable_ip_range(endip, startip, gateway, netmask, regionid, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/create_portable_ip_range.rb', line 9

def create_portable_ip_range(endip, startip, gateway, netmask, regionid, options={})
  options.merge!(
    'command' => 'createPortableIpRange', 
    'endip' => endip, 
    'startip' => startip, 
    'gateway' => gateway, 
    'netmask' => netmask, 
    'regionid' => regionid  
  )
  request(options)
end

#create_private_gateway(vpcid, gateway, ipaddress, vlan, netmask, options = {}) ⇒ Object

Creates a private gateway

CloudStack API Reference



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

def create_private_gateway(vpcid, gateway, ipaddress, vlan, netmask, options={})
  options.merge!(
    'command' => 'createPrivateGateway', 
    'vpcid' => vpcid, 
    'gateway' => gateway, 
    'ipaddress' => ipaddress, 
    'vlan' => vlan, 
    'netmask' => netmask  
  )
  request(options)
end

#create_project(displaytext, name, options = {}) ⇒ Object

Creates a project

CloudStack API Reference



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

def create_project(displaytext, name, options={})
  options.merge!(
    'command' => 'createProject', 
    'displaytext' => displaytext, 
    'name' => name  
  )
  request(options)
end

#create_remote_access_vpn(publicipid, options = {}) ⇒ Object

Creates a l2tp/ipsec remote access vpn

CloudStack API Reference



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

def create_remote_access_vpn(publicipid, options={})
  options.merge!(
    'command' => 'createRemoteAccessVpn', 
    'publicipid' => publicipid  
  )
  request(options)
end

#create_secondary_staging_store(url, options = {}) ⇒ Object

create secondary staging store.

CloudStack API Reference



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

def create_secondary_staging_store(url, options={})
  options.merge!(
    'command' => 'createSecondaryStagingStore', 
    'url' => url  
  )
  request(options)
end

#create_security_group(name, options = {}) ⇒ Object

Creates a security group

CloudStack API Reference



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

def create_security_group(name, options={})
  options.merge!(
    'command' => 'createSecurityGroup', 
    'name' => name  
  )
  request(options)
end

#create_service_offering(displaytext, cpunumber, name, memory, cpuspeed, options = {}) ⇒ Object

Creates a service offering.

CloudStack API Reference



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

def create_service_offering(displaytext, cpunumber, name, memory, cpuspeed, options={})
  options.merge!(
    'command' => 'createServiceOffering', 
    'displaytext' => displaytext, 
    'cpunumber' => cpunumber, 
    'name' => name, 
    'memory' => memory, 
    'cpuspeed' => cpuspeed  
  )
  request(options)
end

#create_snapshot(volumeid, options = {}) ⇒ Object

Creates an instant snapshot of a volume.

CloudStack API Reference



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

def create_snapshot(volumeid, options={})
  options.merge!(
    'command' => 'createSnapshot', 
    'volumeid' => volumeid  
  )
  request(options)
end

#create_snapshot_policy(intervaltype, volumeid, schedule, maxsnaps, timezone, options = {}) ⇒ Object

Creates a snapshot policy for the account.

CloudStack API Reference



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

def create_snapshot_policy(intervaltype, volumeid, schedule, maxsnaps, timezone, options={})
  options.merge!(
    'command' => 'createSnapshotPolicy', 
    'intervaltype' => intervaltype, 
    'volumeid' => volumeid, 
    'schedule' => schedule, 
    'maxsnaps' => maxsnaps, 
    'timezone' => timezone  
  )
  request(options)
end

#create_ssh_key_pair(name, options = {}) ⇒ Object

Create a new keypair and returns the private key

CloudStack API Reference



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

def create_ssh_key_pair(name, options={})
  options.merge!(
    'command' => 'createSSHKeyPair', 
    'name' => name  
  )
  request(options)
end

#create_static_route(cidr, gatewayid, options = {}) ⇒ Object

Creates a static route

CloudStack API Reference



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

def create_static_route(cidr, gatewayid, options={})
  options.merge!(
    'command' => 'createStaticRoute', 
    'cidr' => cidr, 
    'gatewayid' => gatewayid  
  )
  request(options)
end

#create_storage_network_ip_range(netmask, gateway, startip, podid, options = {}) ⇒ Object

Creates a Storage network IP range.

CloudStack API Reference



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

def create_storage_network_ip_range(netmask, gateway, startip, podid, options={})
  options.merge!(
    'command' => 'createStorageNetworkIpRange', 
    'netmask' => netmask, 
    'gateway' => gateway, 
    'startip' => startip, 
    'podid' => podid  
  )
  request(options)
end

#create_storage_pool(url, zoneid, name, options = {}) ⇒ Object

Creates a storage pool.

CloudStack API Reference



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

def create_storage_pool(url, zoneid, name, options={})
  options.merge!(
    'command' => 'createStoragePool', 
    'url' => url, 
    'zoneid' => zoneid, 
    'name' => name  
  )
  request(options)
end

#create_tags(resourceids, resourcetype, tags, options = {}) ⇒ Object

Creates resource tag(s)

CloudStack API Reference



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

def create_tags(resourceids, resourcetype, tags, options={})
  options.merge!(
    'command' => 'createTags', 
    'resourceids' => resourceids, 
    'resourcetype' => resourcetype, 
    'tags' => tags  
  )
  request(options)
end

#create_template(ostypeid, displaytext, name, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/create_template.rb', line 9

def create_template(ostypeid, displaytext, name, options={})
  options.merge!(
    'command' => 'createTemplate', 
    'ostypeid' => ostypeid, 
    'displaytext' => displaytext, 
    'name' => name  
  )
  request(options)
end

#create_user(username, email, firstname, lastname, password, account, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/create_user.rb', line 9

def create_user(username, email, firstname, lastname, password, , options={})
  options.merge!(
    'command' => 'createUser', 
    'username' => username, 
    'email' => email, 
    'firstname' => firstname, 
    'lastname' => lastname, 
    'password' => password, 
    'account' =>   
  )
  request(options)
end

#create_virtual_router_element(nspid, options = {}) ⇒ Object

Create a virtual router element.

CloudStack API Reference



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

def create_virtual_router_element(nspid, options={})
  options.merge!(
    'command' => 'createVirtualRouterElement', 
    'nspid' => nspid  
  )
  request(options)
end

#create_vlan_ip_range(options = {}) ⇒ Object

Creates a VLAN IP range.

CloudStack API Reference



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

def create_vlan_ip_range(options={})
  options.merge!(
    'command' => 'createVlanIpRange'  
  )
  request(options)
end

#create_vm_snapshot(virtualmachineid, options = {}) ⇒ Object

Creates snapshot for a vm.

CloudStack API Reference



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

def create_vm_snapshot(virtualmachineid, options={})
  options.merge!(
    'command' => 'createVMSnapshot', 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end

#create_volume(name, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/create_volume.rb', line 9

def create_volume(name, options={})
  options.merge!(
    'command' => 'createVolume', 
    'name' => name  
  )
  request(options)
end

#create_volume_on_filer(password, ipaddress, size, volumename, username, poolname, aggregatename, options = {}) ⇒ 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(cidr, vpcofferingid, name, displaytext, zoneid, options = {}) ⇒ Object

Creates a VPC

CloudStack API Reference



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

def create_vpc(cidr, vpcofferingid, name, displaytext, zoneid, options={})
  options.merge!(
    'command' => 'createVPC', 
    'cidr' => cidr, 
    'vpcofferingid' => vpcofferingid, 
    'name' => name, 
    'displaytext' => displaytext, 
    'zoneid' => zoneid  
  )
  request(options)
end

#create_vpcoffering(supportedservices, name, displaytext, options = {}) ⇒ Object

Creates VPC offering

CloudStack API Reference



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

def create_vpcoffering(supportedservices, name, displaytext, options={})
  options.merge!(
    'command' => 'createVPCOffering', 
    'supportedservices' => supportedservices, 
    'name' => name, 
    'displaytext' => displaytext  
  )
  request(options)
end

#create_vpn_connection(s2scustomergatewayid, s2svpngatewayid, options = {}) ⇒ Object

Create site to site vpn connection

CloudStack API Reference



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

def create_vpn_connection(s2scustomergatewayid, s2svpngatewayid, options={})
  options.merge!(
    'command' => 'createVpnConnection', 
    's2scustomergatewayid' => s2scustomergatewayid, 
    's2svpngatewayid' => s2svpngatewayid  
  )
  request(options)
end

#create_vpn_customer_gateway(gateway, cidrlist, ipsecpsk, ikepolicy, esppolicy, options = {}) ⇒ Object

Creates site to site vpn customer gateway

CloudStack API Reference



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

def create_vpn_customer_gateway(gateway, cidrlist, ipsecpsk, ikepolicy, esppolicy, options={})
  options.merge!(
    'command' => 'createVpnCustomerGateway', 
    'gateway' => gateway, 
    'cidrlist' => cidrlist, 
    'ipsecpsk' => ipsecpsk, 
    'ikepolicy' => ikepolicy, 
    'esppolicy' => esppolicy  
  )
  request(options)
end

#create_vpn_gateway(vpcid, options = {}) ⇒ Object

Creates site to site vpn local gateway

CloudStack API Reference



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

def create_vpn_gateway(vpcid, options={})
  options.merge!(
    'command' => 'createVpnGateway', 
    'vpcid' => vpcid  
  )
  request(options)
end

#create_zone(internaldns1, name, networktype, dns1, options = {}) ⇒ Object

Creates a Zone.

CloudStack API Reference



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

def create_zone(internaldns1, name, networktype, dns1, options={})
  options.merge!(
    'command' => 'createZone', 
    'internaldns1' => internaldns1, 
    'name' => name, 
    'networktype' => networktype, 
    'dns1' => dns1  
  )
  request(options)
end

#dedicate_cluster(clusterid, domainid, options = {}) ⇒ Object

Dedicate an existing cluster

CloudStack API Reference



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

def dedicate_cluster(clusterid, domainid, options={})
  options.merge!(
    'command' => 'dedicateCluster', 
    'clusterid' => clusterid, 
    'domainid' => domainid  
  )
  request(options)
end

#dedicate_guest_vlan_range(account, domainid, vlanrange, physicalnetworkid, options = {}) ⇒ Object

Dedicates a guest vlan range to an account

CloudStack API Reference



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

def dedicate_guest_vlan_range(, domainid, vlanrange, physicalnetworkid, options={})
  options.merge!(
    'command' => 'dedicateGuestVlanRange', 
    'account' => , 
    'domainid' => domainid, 
    'vlanrange' => vlanrange, 
    'physicalnetworkid' => physicalnetworkid  
  )
  request(options)
end

#dedicate_host(hostid, domainid, options = {}) ⇒ Object

Dedicates a host.

CloudStack API Reference



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

def dedicate_host(hostid, domainid, options={})
  options.merge!(
    'command' => 'dedicateHost', 
    'hostid' => hostid, 
    'domainid' => domainid  
  )
  request(options)
end

#dedicate_pod(domainid, podid, options = {}) ⇒ Object

Dedicates a Pod.

CloudStack API Reference



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

def dedicate_pod(domainid, podid, options={})
  options.merge!(
    'command' => 'dedicatePod', 
    'domainid' => domainid, 
    'podid' => podid  
  )
  request(options)
end

#dedicate_public_ip_range(domainid, id, account, options = {}) ⇒ Object

Dedicates a Public IP range to an account

CloudStack API Reference



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

def dedicate_public_ip_range(domainid, id, , options={})
  options.merge!(
    'command' => 'dedicatePublicIpRange', 
    'domainid' => domainid, 
    'id' => id, 
    'account' =>   
  )
  request(options)
end

#dedicate_zone(domainid, zoneid, options = {}) ⇒ Object

Dedicates a zones.

CloudStack API Reference



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

def dedicate_zone(domainid, zoneid, options={})
  options.merge!(
    'command' => 'dedicateZone', 
    'domainid' => domainid, 
    'zoneid' => zoneid  
  )
  request(options)
end

#delete_account(id, options = {}) ⇒ Object

Deletes a account, and all users associated with this account

CloudStack API Reference



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

def (id, options={})
  options.merge!(
    'command' => 'deleteAccount', 
    'id' => id  
  )
  request(options)
end

#delete_account_from_project(account, projectid, options = {}) ⇒ Object

Deletes account from the project

CloudStack API Reference



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

def (, projectid, options={})
  options.merge!(
    'command' => 'deleteAccountFromProject', 
    'account' => , 
    'projectid' => projectid  
  )
  request(options)
end

#delete_affinity_group(options = {}) ⇒ Object

Deletes affinity group

CloudStack API Reference



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

def delete_affinity_group(options={})
  options.merge!(
    'command' => 'deleteAffinityGroup'  
  )
  request(options)
end

#delete_alerts(options = {}) ⇒ Object

Delete one or more alerts.

CloudStack API Reference



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

def delete_alerts(options={})
  options.merge!(
    'command' => 'deleteAlerts'  
  )
  request(options)
end

#delete_auto_scale_policy(id, options = {}) ⇒ Object

Deletes a autoscale policy.

CloudStack API Reference



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

def delete_auto_scale_policy(id, options={})
  options.merge!(
    'command' => 'deleteAutoScalePolicy', 
    'id' => id  
  )
  request(options)
end

#delete_auto_scale_vm_group(id, options = {}) ⇒ Object

Deletes a autoscale vm group.

CloudStack API Reference



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

def delete_auto_scale_vm_group(id, options={})
  options.merge!(
    'command' => 'deleteAutoScaleVmGroup', 
    'id' => id  
  )
  request(options)
end

#delete_auto_scale_vm_profile(id, options = {}) ⇒ Object

Deletes a autoscale vm profile.

CloudStack API Reference



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

def delete_auto_scale_vm_profile(id, options={})
  options.merge!(
    'command' => 'deleteAutoScaleVmProfile', 
    'id' => id  
  )
  request(options)
end

#delete_cisco_asa1000v_resource(resourceid, options = {}) ⇒ Object

Deletes a Cisco ASA 1000v appliance

CloudStack API Reference



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

def delete_cisco_asa1000v_resource(resourceid, options={})
  options.merge!(
    'command' => 'deleteCiscoAsa1000vResource', 
    'resourceid' => resourceid  
  )
  request(options)
end

#delete_cisco_nexus_vsm(id, options = {}) ⇒ Object

delete a Cisco Nexus VSM device

CloudStack API Reference



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

def delete_cisco_nexus_vsm(id, options={})
  options.merge!(
    'command' => 'deleteCiscoNexusVSM', 
    'id' => id  
  )
  request(options)
end

#delete_cisco_vnmc_resource(resourceid, options = {}) ⇒ Object

Deletes a Cisco Vnmc controller

CloudStack API Reference



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

def delete_cisco_vnmc_resource(resourceid, options={})
  options.merge!(
    'command' => 'deleteCiscoVnmcResource', 
    'resourceid' => resourceid  
  )
  request(options)
end

#delete_cluster(id, options = {}) ⇒ Object

Deletes a cluster.

CloudStack API Reference



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

def delete_cluster(id, options={})
  options.merge!(
    'command' => 'deleteCluster', 
    'id' => id  
  )
  request(options)
end

#delete_condition(id, options = {}) ⇒ Object

Removes a condition

CloudStack API Reference



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

def delete_condition(id, options={})
  options.merge!(
    'command' => 'deleteCondition', 
    'id' => id  
  )
  request(options)
end

#delete_counter(id, options = {}) ⇒ Object

Deletes a counter

CloudStack API Reference



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

def delete_counter(id, options={})
  options.merge!(
    'command' => 'deleteCounter', 
    'id' => id  
  )
  request(options)
end

#delete_disk_offering(id, options = {}) ⇒ Object

Updates a disk offering.

CloudStack API Reference



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

def delete_disk_offering(id, options={})
  options.merge!(
    'command' => 'deleteDiskOffering', 
    'id' => id  
  )
  request(options)
end

#delete_domain(id, options = {}) ⇒ Object

Deletes a specified domain

CloudStack API Reference



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

def delete_domain(id, options={})
  options.merge!(
    'command' => 'deleteDomain', 
    'id' => id  
  )
  request(options)
end

#delete_egress_firewall_rule(id, options = {}) ⇒ Object

Deletes an ggress firewall rule

CloudStack API Reference



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

def delete_egress_firewall_rule(id, options={})
  options.merge!(
    'command' => 'deleteEgressFirewallRule', 
    'id' => id  
  )
  request(options)
end

#delete_events(options = {}) ⇒ Object

Delete one or more events.

CloudStack API Reference



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

def delete_events(options={})
  options.merge!(
    'command' => 'deleteEvents'  
  )
  request(options)
end

#delete_external_firewall(id, options = {}) ⇒ Object

Deletes an external firewall appliance.

CloudStack API Reference



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

def delete_external_firewall(id, options={})
  options.merge!(
    'command' => 'deleteExternalFirewall', 
    'id' => id  
  )
  request(options)
end

#delete_external_load_balancer(id, options = {}) ⇒ Object

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

CloudStack API Reference



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

def delete_external_load_balancer(id, options={})
  options.merge!(
    'command' => 'deleteExternalLoadBalancer', 
    'id' => id  
  )
  request(options)
end

#delete_f5_load_balancer(lbdeviceid, options = {}) ⇒ Object

delete a F5 load balancer device

CloudStack API Reference



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

def delete_f5_load_balancer(lbdeviceid, options={})
  options.merge!(
    'command' => 'deleteF5LoadBalancer', 
    'lbdeviceid' => lbdeviceid  
  )
  request(options)
end

#delete_firewall_rule(id, options = {}) ⇒ Object

Deletes a firewall rule

CloudStack API Reference



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

def delete_firewall_rule(id, options={})
  options.merge!(
    'command' => 'deleteFirewallRule', 
    'id' => id  
  )
  request(options)
end

#delete_global_load_balancer_rule(id, options = {}) ⇒ Object

Deletes a global load balancer rule.

CloudStack API Reference



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

def delete_global_load_balancer_rule(id, options={})
  options.merge!(
    'command' => 'deleteGlobalLoadBalancerRule', 
    'id' => id  
  )
  request(options)
end

#delete_host(id, options = {}) ⇒ Object

Deletes a host.

CloudStack API Reference



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

def delete_host(id, options={})
  options.merge!(
    'command' => 'deleteHost', 
    'id' => id  
  )
  request(options)
end

#delete_image_store(id, options = {}) ⇒ Object

Deletes an image store .

CloudStack API Reference



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

def delete_image_store(id, options={})
  options.merge!(
    'command' => 'deleteImageStore', 
    'id' => id  
  )
  request(options)
end

#delete_instance_group(id, options = {}) ⇒ Object

Deletes a vm group

CloudStack API Reference



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

def delete_instance_group(id, options={})
  options.merge!(
    'command' => 'deleteInstanceGroup', 
    'id' => id  
  )
  request(options)
end

#delete_ip_forwarding_rule(id, options = {}) ⇒ Object

Deletes an ip forwarding rule

CloudStack API Reference



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

def delete_ip_forwarding_rule(id, options={})
  options.merge!(
    'command' => 'deleteIpForwardingRule', 
    'id' => id  
  )
  request(options)
end

#delete_iso(id, options = {}) ⇒ Object

Deletes an ISO file.

CloudStack API Reference



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

def delete_iso(id, options={})
  options.merge!(
    'command' => 'deleteIso', 
    'id' => id  
  )
  request(options)
end

#delete_lb_health_check_policy(id, options = {}) ⇒ Object

Deletes a load balancer HealthCheck policy.

CloudStack API Reference



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

def delete_lb_health_check_policy(id, options={})
  options.merge!(
    'command' => 'deleteLBHealthCheckPolicy', 
    'id' => id  
  )
  request(options)
end

#delete_lb_stickiness_policy(id, options = {}) ⇒ Object

Deletes a LB stickiness policy.

CloudStack API Reference



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

def delete_lb_stickiness_policy(id, options={})
  options.merge!(
    'command' => 'deleteLBStickinessPolicy', 
    'id' => id  
  )
  request(options)
end

#delete_load_balancer(id, options = {}) ⇒ Object

Deletes a load balancer

CloudStack API Reference



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

def delete_load_balancer(id, options={})
  options.merge!(
    'command' => 'deleteLoadBalancer', 
    'id' => id  
  )
  request(options)
end

#delete_load_balancer_rule(id, options = {}) ⇒ Object

Deletes a load balancer rule.

CloudStack API Reference



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

def delete_load_balancer_rule(id, options={})
  options.merge!(
    'command' => 'deleteLoadBalancerRule', 
    'id' => id  
  )
  request(options)
end

#delete_netscaler_load_balancer(lbdeviceid, options = {}) ⇒ Object

delete a netscaler load balancer device

CloudStack API Reference



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

def delete_netscaler_load_balancer(lbdeviceid, options={})
  options.merge!(
    'command' => 'deleteNetscalerLoadBalancer', 
    'lbdeviceid' => lbdeviceid  
  )
  request(options)
end

#delete_network(id, options = {}) ⇒ Object

Deletes a network

CloudStack API Reference



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

def delete_network(id, options={})
  options.merge!(
    'command' => 'deleteNetwork', 
    'id' => id  
  )
  request(options)
end

#delete_network_acl(id, options = {}) ⇒ Object

Deletes a Network ACL

CloudStack API Reference



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

def delete_network_acl(id, options={})
  options.merge!(
    'command' => 'deleteNetworkACL', 
    'id' => id  
  )
  request(options)
end

#delete_network_acl_list(id, options = {}) ⇒ Object

Deletes a Network ACL

CloudStack API Reference



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

def delete_network_acl_list(id, options={})
  options.merge!(
    'command' => 'deleteNetworkACLList', 
    'id' => id  
  )
  request(options)
end

#delete_network_device(id, options = {}) ⇒ Object

Deletes network device.

CloudStack API Reference



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

def delete_network_device(id, options={})
  options.merge!(
    'command' => 'deleteNetworkDevice', 
    'id' => id  
  )
  request(options)
end

#delete_network_offering(id, options = {}) ⇒ Object

Deletes a network offering.

CloudStack API Reference



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

def delete_network_offering(id, options={})
  options.merge!(
    'command' => 'deleteNetworkOffering', 
    'id' => id  
  )
  request(options)
end

#delete_network_service_provider(id, options = {}) ⇒ Object

Deletes a Network Service Provider.

CloudStack API Reference



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

def delete_network_service_provider(id, options={})
  options.merge!(
    'command' => 'deleteNetworkServiceProvider', 
    'id' => id  
  )
  request(options)
end

#delete_nicira_nvp_device(nvpdeviceid, options = {}) ⇒ Object

delete a nicira nvp device

CloudStack API Reference



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

def delete_nicira_nvp_device(nvpdeviceid, options={})
  options.merge!(
    'command' => 'deleteNiciraNvpDevice', 
    'nvpdeviceid' => nvpdeviceid  
  )
  request(options)
end

#delete_physical_network(id, options = {}) ⇒ Object

Deletes a Physical Network.

CloudStack API Reference



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

def delete_physical_network(id, options={})
  options.merge!(
    'command' => 'deletePhysicalNetwork', 
    'id' => id  
  )
  request(options)
end

#delete_pod(id, options = {}) ⇒ Object

Deletes a Pod.

CloudStack API Reference



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

def delete_pod(id, options={})
  options.merge!(
    'command' => 'deletePod', 
    'id' => id  
  )
  request(options)
end

#delete_pool(poolname, options = {}) ⇒ 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(id, options = {}) ⇒ Object

Deletes a port forwarding rule

CloudStack API Reference



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

def delete_port_forwarding_rule(id, options={})
  options.merge!(
    'command' => 'deletePortForwardingRule', 
    'id' => id  
  )
  request(options)
end

#delete_portable_ip_range(id, options = {}) ⇒ Object

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

CloudStack API Reference



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

def delete_portable_ip_range(id, options={})
  options.merge!(
    'command' => 'deletePortableIpRange', 
    'id' => id  
  )
  request(options)
end

#delete_private_gateway(id, options = {}) ⇒ Object

Deletes a Private gateway

CloudStack API Reference



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

def delete_private_gateway(id, options={})
  options.merge!(
    'command' => 'deletePrivateGateway', 
    'id' => id  
  )
  request(options)
end

#delete_project(id, options = {}) ⇒ Object

Deletes a project

CloudStack API Reference



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

def delete_project(id, options={})
  options.merge!(
    'command' => 'deleteProject', 
    'id' => id  
  )
  request(options)
end

#delete_project_invitation(id, options = {}) ⇒ Object

Accepts or declines project invitation

CloudStack API Reference



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

def delete_project_invitation(id, options={})
  options.merge!(
    'command' => 'deleteProjectInvitation', 
    'id' => id  
  )
  request(options)
end

#delete_remote_access_vpn(publicipid, options = {}) ⇒ Object

Destroys a l2tp/ipsec remote access vpn

CloudStack API Reference



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

def delete_remote_access_vpn(publicipid, options={})
  options.merge!(
    'command' => 'deleteRemoteAccessVpn', 
    'publicipid' => publicipid  
  )
  request(options)
end

#delete_secondary_staging_store(id, options = {}) ⇒ Object

Deletes a secondary staging store .

CloudStack API Reference



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

def delete_secondary_staging_store(id, options={})
  options.merge!(
    'command' => 'deleteSecondaryStagingStore', 
    'id' => id  
  )
  request(options)
end

#delete_security_group(options = {}) ⇒ Object

Deletes security group

CloudStack API Reference



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

def delete_security_group(options={})
  options.merge!(
    'command' => 'deleteSecurityGroup'  
  )
  request(options)
end

#delete_service_offering(id, options = {}) ⇒ Object

Deletes a service offering.

CloudStack API Reference



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

def delete_service_offering(id, options={})
  options.merge!(
    'command' => 'deleteServiceOffering', 
    'id' => id  
  )
  request(options)
end

#delete_snapshot(id, options = {}) ⇒ Object

Deletes a snapshot of a disk volume.

CloudStack API Reference



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

def delete_snapshot(id, options={})
  options.merge!(
    'command' => 'deleteSnapshot', 
    'id' => id  
  )
  request(options)
end

#delete_snapshot_policies(options = {}) ⇒ Object

Deletes snapshot policies for the account.

CloudStack API Reference



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

def delete_snapshot_policies(options={})
  options.merge!(
    'command' => 'deleteSnapshotPolicies'  
  )
  request(options)
end

#delete_srx_firewall(fwdeviceid, options = {}) ⇒ Object

delete a SRX firewall device

CloudStack API Reference



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

def delete_srx_firewall(fwdeviceid, options={})
  options.merge!(
    'command' => 'deleteSrxFirewall', 
    'fwdeviceid' => fwdeviceid  
  )
  request(options)
end

#delete_ssh_key_pair(name, options = {}) ⇒ Object

Deletes a keypair by name

CloudStack API Reference



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

def delete_ssh_key_pair(name, options={})
  options.merge!(
    'command' => 'deleteSSHKeyPair', 
    'name' => name  
  )
  request(options)
end

#delete_static_route(id, options = {}) ⇒ Object

Deletes a static route

CloudStack API Reference



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

def delete_static_route(id, options={})
  options.merge!(
    'command' => 'deleteStaticRoute', 
    'id' => id  
  )
  request(options)
end

#delete_storage_network_ip_range(id, options = {}) ⇒ Object

Deletes a storage network IP Range.

CloudStack API Reference



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

def delete_storage_network_ip_range(id, options={})
  options.merge!(
    'command' => 'deleteStorageNetworkIpRange', 
    'id' => id  
  )
  request(options)
end

#delete_storage_pool(id, options = {}) ⇒ Object

Deletes a storage pool.

CloudStack API Reference



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

def delete_storage_pool(id, options={})
  options.merge!(
    'command' => 'deleteStoragePool', 
    'id' => id  
  )
  request(options)
end

#delete_tags(resourceids, resourcetype, options = {}) ⇒ Object

Deleting resource tag(s)

CloudStack API Reference



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

def delete_tags(resourceids, resourcetype, options={})
  options.merge!(
    'command' => 'deleteTags', 
    'resourceids' => resourceids, 
    'resourcetype' => resourcetype  
  )
  request(options)
end

#delete_template(id, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/delete_template.rb', line 9

def delete_template(id, options={})
  options.merge!(
    'command' => 'deleteTemplate', 
    'id' => id  
  )
  request(options)
end

#delete_traffic_monitor(id, options = {}) ⇒ Object

Deletes an traffic monitor host.

CloudStack API Reference



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

def delete_traffic_monitor(id, options={})
  options.merge!(
    'command' => 'deleteTrafficMonitor', 
    'id' => id  
  )
  request(options)
end

#delete_traffic_type(id, options = {}) ⇒ Object

Deletes traffic type of a physical network

CloudStack API Reference



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

def delete_traffic_type(id, options={})
  options.merge!(
    'command' => 'deleteTrafficType', 
    'id' => id  
  )
  request(options)
end

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

Delete a Ucs manager

CloudStack API Reference



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

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

#delete_user(id, options = {}) ⇒ Object

Deletes a user for an account

CloudStack API Reference



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

def delete_user(id, options={})
  options.merge!(
    'command' => 'deleteUser', 
    'id' => id  
  )
  request(options)
end

#delete_vlan_ip_range(id, options = {}) ⇒ Object

Creates a VLAN IP range.

CloudStack API Reference



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

def delete_vlan_ip_range(id, options={})
  options.merge!(
    'command' => 'deleteVlanIpRange', 
    'id' => id  
  )
  request(options)
end

#delete_vm_snapshot(vmsnapshotid, options = {}) ⇒ Object

Deletes a vmsnapshot.

CloudStack API Reference



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

def delete_vm_snapshot(vmsnapshotid, options={})
  options.merge!(
    'command' => 'deleteVMSnapshot', 
    'vmsnapshotid' => vmsnapshotid  
  )
  request(options)
end

#delete_volume(id, options = {}) ⇒ Object

Deletes a detached disk volume.

CloudStack API Reference



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

def delete_volume(id, options={})
  options.merge!(
    'command' => 'deleteVolume', 
    'id' => id  
  )
  request(options)
end

#delete_vpc(id, options = {}) ⇒ Object

Deletes a VPC

CloudStack API Reference



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

def delete_vpc(id, options={})
  options.merge!(
    'command' => 'deleteVPC', 
    'id' => id  
  )
  request(options)
end

#delete_vpcoffering(id, options = {}) ⇒ Object

Deletes VPC offering

CloudStack API Reference



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

def delete_vpcoffering(id, options={})
  options.merge!(
    'command' => 'deleteVPCOffering', 
    'id' => id  
  )
  request(options)
end

#delete_vpn_connection(id, options = {}) ⇒ Object

Delete site to site vpn connection

CloudStack API Reference



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

def delete_vpn_connection(id, options={})
  options.merge!(
    'command' => 'deleteVpnConnection', 
    'id' => id  
  )
  request(options)
end

#delete_vpn_customer_gateway(id, options = {}) ⇒ Object

Delete site to site vpn customer gateway

CloudStack API Reference



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

def delete_vpn_customer_gateway(id, options={})
  options.merge!(
    'command' => 'deleteVpnCustomerGateway', 
    'id' => id  
  )
  request(options)
end

#delete_vpn_gateway(id, options = {}) ⇒ Object

Delete site to site vpn gateway

CloudStack API Reference



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

def delete_vpn_gateway(id, options={})
  options.merge!(
    'command' => 'deleteVpnGateway', 
    'id' => id  
  )
  request(options)
end

#delete_zone(id, options = {}) ⇒ Object

Deletes a Zone.

CloudStack API Reference



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

def delete_zone(id, options={})
  options.merge!(
    'command' => 'deleteZone', 
    'id' => id  
  )
  request(options)
end

#deploy_virtual_machine(serviceofferingid, templateid, zoneid, options = {}) ⇒ 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
# File 'lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb', line 9

def deploy_virtual_machine(serviceofferingid, templateid, zoneid, options={})
  options.merge!(
    'command' => 'deployVirtualMachine', 
    'serviceofferingid' => serviceofferingid, 
    'templateid' => templateid, 
    'zoneid' => zoneid  
  )
  request(options)
end

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

Destroy a LUN

CloudStack API Reference



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

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

#destroy_router(id, options = {}) ⇒ Object

Destroys a router.

CloudStack API Reference



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

def destroy_router(id, options={})
  options.merge!(
    'command' => 'destroyRouter', 
    'id' => id  
  )
  request(options)
end

#destroy_system_vm(id, options = {}) ⇒ Object

Destroyes a system virtual machine.

CloudStack API Reference



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

def destroy_system_vm(id, options={})
  options.merge!(
    'command' => 'destroySystemVm', 
    'id' => id  
  )
  request(options)
end

#destroy_virtual_machine(id, options = {}) ⇒ Object

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

CloudStack API Reference



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

def destroy_virtual_machine(id, options={})
  options.merge!(
    'command' => 'destroyVirtualMachine', 
    'id' => id  
  )
  request(options)
end

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

Destroy a Volume

CloudStack API Reference



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

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

#detach_iso(virtualmachineid, options = {}) ⇒ Object

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

CloudStack API Reference



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

def detach_iso(virtualmachineid, options={})
  options.merge!(
    'command' => 'detachIso', 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end

#detach_volume(options = {}) ⇒ Object

Detaches a disk volume from a virtual machine.

CloudStack API Reference



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

def detach_volume(options={})
  options.merge!(
    'command' => 'detachVolume'  
  )
  request(options)
end

#disable_account(lock, options = {}) ⇒ Object

Disables an account

CloudStack API Reference



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

def (lock, options={})
  options.merge!(
    'command' => 'disableAccount', 
    'lock' => lock  
  )
  request(options)
end

#disable_auto_scale_vm_group(id, options = {}) ⇒ Object

Disables an AutoScale Vm Group

CloudStack API Reference



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

def disable_auto_scale_vm_group(id, options={})
  options.merge!(
    'command' => 'disableAutoScaleVmGroup', 
    'id' => id  
  )
  request(options)
end

#disable_cisco_nexus_vsm(id, options = {}) ⇒ Object

disable a Cisco Nexus VSM device

CloudStack API Reference



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

def disable_cisco_nexus_vsm(id, options={})
  options.merge!(
    'command' => 'disableCiscoNexusVSM', 
    'id' => id  
  )
  request(options)
end

#disable_static_nat(ipaddressid, options = {}) ⇒ Object

Disables static rule for given ip address

CloudStack API Reference



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

def disable_static_nat(ipaddressid, options={})
  options.merge!(
    'command' => 'disableStaticNat', 
    'ipaddressid' => ipaddressid  
  )
  request(options)
end

#disable_user(id, options = {}) ⇒ Object

Disables a user account

CloudStack API Reference



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

def disable_user(id, options={})
  options.merge!(
    'command' => 'disableUser', 
    'id' => id  
  )
  request(options)
end

#disassociate_ip_address(id, options = {}) ⇒ Object

Disassociates an ip address from the account.

CloudStack API Reference



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

def disassociate_ip_address(id, options={})
  options.merge!(
    'command' => 'disassociateIpAddress', 
    'id' => id  
  )
  request(options)
end

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

disassociate a profile from a blade

CloudStack API Reference



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

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

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

Dissociate a LUN

CloudStack API Reference



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

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

#enable_account(options = {}) ⇒ Object

Enables an account

CloudStack API Reference



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

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

#enable_auto_scale_vm_group(id, options = {}) ⇒ Object

Enables an AutoScale Vm Group

CloudStack API Reference



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

def enable_auto_scale_vm_group(id, options={})
  options.merge!(
    'command' => 'enableAutoScaleVmGroup', 
    'id' => id  
  )
  request(options)
end

#enable_cisco_nexus_vsm(id, options = {}) ⇒ Object

Enable a Cisco Nexus VSM device

CloudStack API Reference



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

def enable_cisco_nexus_vsm(id, options={})
  options.merge!(
    'command' => 'enableCiscoNexusVSM', 
    'id' => id  
  )
  request(options)
end

#enable_static_nat(ipaddressid, virtualmachineid, options = {}) ⇒ Object

Enables static nat for given ip address

CloudStack API Reference



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

def enable_static_nat(ipaddressid, virtualmachineid, options={})
  options.merge!(
    'command' => 'enableStaticNat', 
    'ipaddressid' => ipaddressid, 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end

#enable_storage_maintenance(id, options = {}) ⇒ Object

Puts storage pool into maintenance state

CloudStack API Reference



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

def enable_storage_maintenance(id, options={})
  options.merge!(
    'command' => 'enableStorageMaintenance', 
    'id' => id  
  )
  request(options)
end

#enable_user(id, options = {}) ⇒ Object

Enables a user account

CloudStack API Reference



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

def enable_user(id, options={})
  options.merge!(
    'command' => 'enableUser', 
    'id' => id  
  )
  request(options)
end

#extract_iso(mode, id, options = {}) ⇒ Object

Extracts an ISO

CloudStack API Reference



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

def extract_iso(mode, id, options={})
  options.merge!(
    'command' => 'extractIso', 
    'mode' => mode, 
    'id' => id  
  )
  request(options)
end

#extract_template(mode, id, options = {}) ⇒ Object

Extracts a template

CloudStack API Reference



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

def extract_template(mode, id, options={})
  options.merge!(
    'command' => 'extractTemplate', 
    'mode' => mode, 
    'id' => id  
  )
  request(options)
end

#extract_volume(zoneid, mode, id, options = {}) ⇒ Object

Extracts volume

CloudStack API Reference



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

def extract_volume(zoneid, mode, id, options={})
  options.merge!(
    'command' => 'extractVolume', 
    'zoneid' => zoneid, 
    'mode' => mode, 
    'id' => id  
  )
  request(options)
end

#find_hosts_for_migration(virtualmachineid, options = {}) ⇒ Object

Find hosts suitable for migrating a virtual machine.

CloudStack API Reference



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

def find_hosts_for_migration(virtualmachineid, options={})
  options.merge!(
    'command' => 'findHostsForMigration', 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end

#find_storage_pools_for_migration(id, options = {}) ⇒ Object

Lists storage pools available for migration of a volume.

CloudStack API Reference



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

def find_storage_pools_for_migration(id, options={})
  options.merge!(
    'command' => 'findStoragePoolsForMigration', 
    'id' => id  
  )
  request(options)
end

#generate_usage_records(enddate, startdate, options = {}) ⇒ Object

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

CloudStack API Reference



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

def generate_usage_records(enddate, startdate, options={})
  options.merge!(
    'command' => 'generateUsageRecords', 
    'enddate' => enddate, 
    'startdate' => startdate  
  )
  request(options)
end

#get_api_limit(options = {}) ⇒ Object

Get API limit count for the caller

CloudStack API Reference



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

def get_api_limit(options={})
  options.merge!(
    'command' => 'getApiLimit'  
  )
  request(options)
end

#get_cloud_identifier(userid, options = {}) ⇒ Object

Retrieves a cloud identifier.

CloudStack API Reference



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

def get_cloud_identifier(userid, options={})
  options.merge!(
    'command' => 'getCloudIdentifier', 
    'userid' => userid  
  )
  request(options)
end

#get_user(userapikey, options = {}) ⇒ Object

Find user account by API key

CloudStack API Reference



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

def get_user(userapikey, options={})
  options.merge!(
    'command' => 'getUser', 
    'userapikey' => userapikey  
  )
  request(options)
end

#get_vm_password(id, options = {}) ⇒ Object

Returns an encrypted password for the VM

CloudStack API Reference



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

def get_vm_password(id, options={})
  options.merge!(
    'command' => 'getVMPassword', 
    'id' => id  
  )
  request(options)
end

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

create a profile of template and associate to a blade

CloudStack API Reference



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

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

#ldap_config(options = {}) ⇒ Object

Configure the LDAP context for this site.

CloudStack API Reference



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

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

#ldap_remove(options = {}) ⇒ Object

Remove the LDAP context for this site.

CloudStack API Reference



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

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

#list_accounts(options = {}) ⇒ Object

Lists accounts and provides detailed account information for listed accounts

CloudStack API Reference



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

def list_accounts(options={})
  options.merge!(
    'command' => 'listAccounts'  
  )
  request(options)
end

#list_affinity_group_types(options = {}) ⇒ Object

Lists affinity group types available

CloudStack API Reference



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

def list_affinity_group_types(options={})
  options.merge!(
    'command' => 'listAffinityGroupTypes'  
  )
  request(options)
end

#list_affinity_groups(options = {}) ⇒ Object

Lists affinity groups

CloudStack API Reference



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

def list_affinity_groups(options={})
  options.merge!(
    'command' => 'listAffinityGroups'  
  )
  request(options)
end

#list_alerts(options = {}) ⇒ Object

Lists all alerts.

CloudStack API Reference



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

def list_alerts(options={})
  options.merge!(
    'command' => 'listAlerts'  
  )
  request(options)
end

#list_apis(options = {}) ⇒ Object

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

CloudStack API Reference



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

def list_apis(options={})
  options.merge!(
    'command' => 'listApis'  
  )
  request(options)
end

#list_async_jobs(options = {}) ⇒ Object

Lists all pending asynchronous jobs for the account.

CloudStack API Reference



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

def list_async_jobs(options={})
  options.merge!(
    'command' => 'listAsyncJobs'  
  )
  request(options)
end

#list_auto_scale_policies(options = {}) ⇒ Object

Lists autoscale policies.

CloudStack API Reference



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

def list_auto_scale_policies(options={})
  options.merge!(
    'command' => 'listAutoScalePolicies'  
  )
  request(options)
end

#list_auto_scale_vm_groups(options = {}) ⇒ Object

Lists autoscale vm groups.

CloudStack API Reference



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

def list_auto_scale_vm_groups(options={})
  options.merge!(
    'command' => 'listAutoScaleVmGroups'  
  )
  request(options)
end

#list_auto_scale_vm_profiles(options = {}) ⇒ Object

Lists autoscale vm profiles.

CloudStack API Reference



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

def list_auto_scale_vm_profiles(options={})
  options.merge!(
    'command' => 'listAutoScaleVmProfiles'  
  )
  request(options)
end

#list_baremetal_dhcp(options = {}) ⇒ Object

list baremetal dhcp servers

CloudStack API Reference



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

def list_baremetal_dhcp(options={})
  options.merge!(
    'command' => 'listBaremetalDhcp'  
  )
  request(options)
end

#list_baremetal_pxe_servers(options = {}) ⇒ Object

list baremetal pxe server

CloudStack API Reference



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

def list_baremetal_pxe_servers(options={})
  options.merge!(
    'command' => 'listBaremetalPxeServers'  
  )
  request(options)
end

#list_capabilities(options = {}) ⇒ Object

Lists capabilities

CloudStack API Reference



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

def list_capabilities(options={})
  options.merge!(
    'command' => 'listCapabilities'  
  )
  request(options)
end

#list_capacity(options = {}) ⇒ Object

Lists all the system wide capacities.

CloudStack API Reference



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

def list_capacity(options={})
  options.merge!(
    'command' => 'listCapacity'  
  )
  request(options)
end

#list_cisco_asa1000v_resources(options = {}) ⇒ Object

Lists Cisco ASA 1000v appliances

CloudStack API Reference



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

def list_cisco_asa1000v_resources(options={})
  options.merge!(
    'command' => 'listCiscoAsa1000vResources'  
  )
  request(options)
end

#list_cisco_nexus_vsms(options = {}) ⇒ Object

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

CloudStack API Reference



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

def list_cisco_nexus_vsms(options={})
  options.merge!(
    'command' => 'listCiscoNexusVSMs'  
  )
  request(options)
end

#list_cisco_vnmc_resources(options = {}) ⇒ Object

Lists Cisco VNMC controllers

CloudStack API Reference



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

def list_cisco_vnmc_resources(options={})
  options.merge!(
    'command' => 'listCiscoVnmcResources'  
  )
  request(options)
end

#list_clusters(options = {}) ⇒ Object

Lists clusters.

CloudStack API Reference



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

def list_clusters(options={})
  options.merge!(
    'command' => 'listClusters'  
  )
  request(options)
end

#list_conditions(options = {}) ⇒ Object

List Conditions for the specific user

CloudStack API Reference



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

def list_conditions(options={})
  options.merge!(
    'command' => 'listConditions'  
  )
  request(options)
end

#list_configurations(options = {}) ⇒ Object

Lists all configurations.

CloudStack API Reference



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

def list_configurations(options={})
  options.merge!(
    'command' => 'listConfigurations'  
  )
  request(options)
end

#list_counters(options = {}) ⇒ Object

List the counters

CloudStack API Reference



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

def list_counters(options={})
  options.merge!(
    'command' => 'listCounters'  
  )
  request(options)
end

#list_dedicated_clusters(options = {}) ⇒ Object

Lists dedicated clusters.

CloudStack API Reference



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

def list_dedicated_clusters(options={})
  options.merge!(
    'command' => 'listDedicatedClusters'  
  )
  request(options)
end

#list_dedicated_guest_vlan_ranges(options = {}) ⇒ Object

Lists dedicated guest vlan ranges

CloudStack API Reference



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

def list_dedicated_guest_vlan_ranges(options={})
  options.merge!(
    'command' => 'listDedicatedGuestVlanRanges'  
  )
  request(options)
end

#list_dedicated_hosts(options = {}) ⇒ Object

Lists dedicated hosts.

CloudStack API Reference



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

def list_dedicated_hosts(options={})
  options.merge!(
    'command' => 'listDedicatedHosts'  
  )
  request(options)
end

#list_dedicated_pods(options = {}) ⇒ Object

Lists dedicated pods.

CloudStack API Reference



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

def list_dedicated_pods(options={})
  options.merge!(
    'command' => 'listDedicatedPods'  
  )
  request(options)
end

#list_dedicated_zones(options = {}) ⇒ Object

List dedicated zones.

CloudStack API Reference



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

def list_dedicated_zones(options={})
  options.merge!(
    'command' => 'listDedicatedZones'  
  )
  request(options)
end

#list_deployment_planners(options = {}) ⇒ Object

Lists all DeploymentPlanners available.

CloudStack API Reference



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

def list_deployment_planners(options={})
  options.merge!(
    'command' => 'listDeploymentPlanners'  
  )
  request(options)
end

#list_disk_offerings(options = {}) ⇒ Object

Lists all available disk offerings.

CloudStack API Reference



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

def list_disk_offerings(options={})
  options.merge!(
    'command' => 'listDiskOfferings'  
  )
  request(options)
end

#list_domain_children(options = {}) ⇒ Object

Lists all children domains belonging to a specified domain

CloudStack API Reference



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

def list_domain_children(options={})
  options.merge!(
    'command' => 'listDomainChildren'  
  )
  request(options)
end

#list_domains(options = {}) ⇒ Object

Lists domains and provides detailed information for listed domains

CloudStack API Reference



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

def list_domains(options={})
  options.merge!(
    'command' => 'listDomains'  
  )
  request(options)
end

#list_egress_firewall_rules(options = {}) ⇒ Object

Lists all egress firewall rules for network id.

CloudStack API Reference



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

def list_egress_firewall_rules(options={})
  options.merge!(
    'command' => 'listEgressFirewallRules'  
  )
  request(options)
end

#list_event_types(options = {}) ⇒ Object

List Event Types

CloudStack API Reference



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

def list_event_types(options={})
  options.merge!(
    'command' => 'listEventTypes'  
  )
  request(options)
end

#list_events(options = {}) ⇒ Object

A command to list events.

CloudStack API Reference



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

def list_events(options={})
  options.merge!(
    'command' => 'listEvents'  
  )
  request(options)
end

#list_external_firewalls(zoneid, options = {}) ⇒ Object

List external firewall appliances.

CloudStack API Reference



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

def list_external_firewalls(zoneid, options={})
  options.merge!(
    'command' => 'listExternalFirewalls', 
    'zoneid' => zoneid  
  )
  request(options)
end

#list_external_load_balancers(options = {}) ⇒ Object

Lists F5 external load balancer appliances added in a zone.

CloudStack API Reference



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

def list_external_load_balancers(options={})
  options.merge!(
    'command' => 'listExternalLoadBalancers'  
  )
  request(options)
end

#list_f5_load_balancer_networks(lbdeviceid, options = {}) ⇒ Object

lists network that are using a F5 load balancer device

CloudStack API Reference



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

def list_f5_load_balancer_networks(lbdeviceid, options={})
  options.merge!(
    'command' => 'listF5LoadBalancerNetworks', 
    'lbdeviceid' => lbdeviceid  
  )
  request(options)
end

#list_f5_load_balancers(options = {}) ⇒ Object

lists F5 load balancer devices

CloudStack API Reference



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

def list_f5_load_balancers(options={})
  options.merge!(
    'command' => 'listF5LoadBalancers'  
  )
  request(options)
end

#list_firewall_rules(options = {}) ⇒ Object

Lists all firewall rules for an IP address.

CloudStack API Reference



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

def list_firewall_rules(options={})
  options.merge!(
    'command' => 'listFirewallRules'  
  )
  request(options)
end

#list_global_load_balancer_rules(options = {}) ⇒ Object

Lists load balancer rules.

CloudStack API Reference



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

def list_global_load_balancer_rules(options={})
  options.merge!(
    'command' => 'listGlobalLoadBalancerRules'  
  )
  request(options)
end

#list_hosts(options = {}) ⇒ Object



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

def list_hosts(options={})
  options.merge!(
    'command' => 'listHosts'  
  )
  request(options)
end

#list_hypervisor_capabilities(options = {}) ⇒ Object

Lists all hypervisor capabilities.

CloudStack API Reference



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

def list_hypervisor_capabilities(options={})
  options.merge!(
    'command' => 'listHypervisorCapabilities'  
  )
  request(options)
end

#list_hypervisors(options = {}) ⇒ Object

List hypervisors

CloudStack API Reference



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

def list_hypervisors(options={})
  options.merge!(
    'command' => 'listHypervisors'  
  )
  request(options)
end

#list_image_stores(options = {}) ⇒ Object

Lists image stores.

CloudStack API Reference



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

def list_image_stores(options={})
  options.merge!(
    'command' => 'listImageStores'  
  )
  request(options)
end

#list_instance_groups(options = {}) ⇒ Object

Lists vm groups

CloudStack API Reference



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

def list_instance_groups(options={})
  options.merge!(
    'command' => 'listInstanceGroups'  
  )
  request(options)
end

#list_internal_load_balancer_elements(options = {}) ⇒ Object

Lists all available Internal Load Balancer elements.

CloudStack API Reference



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

def list_internal_load_balancer_elements(options={})
  options.merge!(
    'command' => 'listInternalLoadBalancerElements'  
  )
  request(options)
end

#list_internal_load_balancer_vms(options = {}) ⇒ Object

List internal LB VMs.

CloudStack API Reference



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

def list_internal_load_balancer_vms(options={})
  options.merge!(
    'command' => 'listInternalLoadBalancerVMs'  
  )
  request(options)
end

#list_ip_forwarding_rules(options = {}) ⇒ Object

List the ip forwarding rules

CloudStack API Reference



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

def list_ip_forwarding_rules(options={})
  options.merge!(
    'command' => 'listIpForwardingRules'  
  )
  request(options)
end

#list_iso_permissions(id, options = {}) ⇒ Object

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

CloudStack API Reference



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

def list_iso_permissions(id, options={})
  options.merge!(
    'command' => 'listIsoPermissions', 
    'id' => id  
  )
  request(options)
end

#list_isos(options = {}) ⇒ Object

Lists all available ISO files.

CloudStack API Reference



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

def list_isos(options={})
  options.merge!(
    'command' => 'listIsos'  
  )
  request(options)
end

#list_lb_health_check_policies(lbruleid, options = {}) ⇒ Object

Lists load balancer HealthCheck policies.

CloudStack API Reference



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

def list_lb_health_check_policies(lbruleid, options={})
  options.merge!(
    'command' => 'listLBHealthCheckPolicies', 
    'lbruleid' => lbruleid  
  )
  request(options)
end

#list_lb_stickiness_policies(lbruleid, options = {}) ⇒ Object

Lists LBStickiness policies.

CloudStack API Reference



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

def list_lb_stickiness_policies(lbruleid, options={})
  options.merge!(
    'command' => 'listLBStickinessPolicies', 
    'lbruleid' => lbruleid  
  )
  request(options)
end

#list_load_balancer_rule_instances(id, options = {}) ⇒ Object

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

CloudStack API Reference



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

def list_load_balancer_rule_instances(id, options={})
  options.merge!(
    'command' => 'listLoadBalancerRuleInstances', 
    'id' => id  
  )
  request(options)
end

#list_load_balancer_rules(options = {}) ⇒ Object

Lists load balancer rules.

CloudStack API Reference



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

def list_load_balancer_rules(options={})
  options.merge!(
    'command' => 'listLoadBalancerRules'  
  )
  request(options)
end

#list_load_balancers(options = {}) ⇒ Object

Lists Load Balancers

CloudStack API Reference



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

def list_load_balancers(options={})
  options.merge!(
    'command' => 'listLoadBalancers'  
  )
  request(options)
end

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



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

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

#list_netscaler_load_balancer_networks(lbdeviceid, options = {}) ⇒ Object

lists network that are using a netscaler load balancer device

CloudStack API Reference



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

def list_netscaler_load_balancer_networks(lbdeviceid, options={})
  options.merge!(
    'command' => 'listNetscalerLoadBalancerNetworks', 
    'lbdeviceid' => lbdeviceid  
  )
  request(options)
end

#list_netscaler_load_balancers(options = {}) ⇒ Object

lists netscaler load balancer devices

CloudStack API Reference



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

def list_netscaler_load_balancers(options={})
  options.merge!(
    'command' => 'listNetscalerLoadBalancers'  
  )
  request(options)
end

#list_network_acl_lists(options = {}) ⇒ Object

Lists all network ACLs

CloudStack API Reference



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

def list_network_acl_lists(options={})
  options.merge!(
    'command' => 'listNetworkACLLists'  
  )
  request(options)
end

#list_network_acls(options = {}) ⇒ Object

Lists all network ACL items

CloudStack API Reference



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

def list_network_acls(options={})
  options.merge!(
    'command' => 'listNetworkACLs'  
  )
  request(options)
end

#list_network_device(options = {}) ⇒ Object

List network devices

CloudStack API Reference



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

def list_network_device(options={})
  options.merge!(
    'command' => 'listNetworkDevice'  
  )
  request(options)
end

#list_network_isolation_methods(options = {}) ⇒ Object

Lists supported methods of network isolation

CloudStack API Reference



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

def list_network_isolation_methods(options={})
  options.merge!(
    'command' => 'listNetworkIsolationMethods'  
  )
  request(options)
end

#list_network_offerings(options = {}) ⇒ Object

Lists all available network offerings.

CloudStack API Reference



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

def list_network_offerings(options={})
  options.merge!(
    'command' => 'listNetworkOfferings'  
  )
  request(options)
end

#list_network_service_providers(options = {}) ⇒ Object

Lists network serviceproviders for a given physical network.

CloudStack API Reference



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

def list_network_service_providers(options={})
  options.merge!(
    'command' => 'listNetworkServiceProviders'  
  )
  request(options)
end

#list_networks(options = {}) ⇒ Object

Lists all available networks.

CloudStack API Reference



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

def list_networks(options={})
  options.merge!(
    'command' => 'listNetworks'  
  )
  request(options)
end

#list_nicira_nvp_device_networks(nvpdeviceid, options = {}) ⇒ Object

lists network that are using a nicira nvp device

CloudStack API Reference



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

def list_nicira_nvp_device_networks(nvpdeviceid, options={})
  options.merge!(
    'command' => 'listNiciraNvpDeviceNetworks', 
    'nvpdeviceid' => nvpdeviceid  
  )
  request(options)
end

#list_nicira_nvp_devices(options = {}) ⇒ Object

Lists Nicira NVP devices

CloudStack API Reference



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

def list_nicira_nvp_devices(options={})
  options.merge!(
    'command' => 'listNiciraNvpDevices'  
  )
  request(options)
end

#list_nics(virtualmachineid, options = {}) ⇒ Object

list the vm nics IP to NIC

CloudStack API Reference



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

def list_nics(virtualmachineid, options={})
  options.merge!(
    'command' => 'listNics', 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end

#list_os_categories(options = {}) ⇒ Object

Lists all supported OS categories for this cloud.

CloudStack API Reference



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

def list_os_categories(options={})
  options.merge!(
    'command' => 'listOsCategories'  
  )
  request(options)
end

#list_os_types(options = {}) ⇒ Object

Lists all supported OS types for this cloud.

CloudStack API Reference



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

def list_os_types(options={})
  options.merge!(
    'command' => 'listOsTypes'  
  )
  request(options)
end

#list_physical_networks(options = {}) ⇒ Object

Lists physical networks

CloudStack API Reference



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

def list_physical_networks(options={})
  options.merge!(
    'command' => 'listPhysicalNetworks'  
  )
  request(options)
end

#list_pods(options = {}) ⇒ Object

Lists all Pods.

CloudStack API Reference



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

def list_pods(options={})
  options.merge!(
    'command' => 'listPods'  
  )
  request(options)
end

#list_pools(options = {}) ⇒ Object



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

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

#list_port_forwarding_rules(options = {}) ⇒ Object

Lists all port forwarding rules for an IP address.

CloudStack API Reference



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

def list_port_forwarding_rules(options={})
  options.merge!(
    'command' => 'listPortForwardingRules'  
  )
  request(options)
end

#list_portable_ip_ranges(options = {}) ⇒ Object

list portable IP ranges

CloudStack API Reference



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

def list_portable_ip_ranges(options={})
  options.merge!(
    'command' => 'listPortableIpRanges'  
  )
  request(options)
end

#list_private_gateways(options = {}) ⇒ Object

List private gateways

CloudStack API Reference



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

def list_private_gateways(options={})
  options.merge!(
    'command' => 'listPrivateGateways'  
  )
  request(options)
end

#list_project_accounts(projectid, options = {}) ⇒ Object

Lists project’s accounts

CloudStack API Reference



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

def list_project_accounts(projectid, options={})
  options.merge!(
    'command' => 'listProjectAccounts', 
    'projectid' => projectid  
  )
  request(options)
end

#list_project_invitations(options = {}) ⇒ Object

Lists projects and provides detailed information for listed projects

CloudStack API Reference



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

def list_project_invitations(options={})
  options.merge!(
    'command' => 'listProjectInvitations'  
  )
  request(options)
end

#list_projects(options = {}) ⇒ Object

Lists projects and provides detailed information for listed projects

CloudStack API Reference



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

def list_projects(options={})
  options.merge!(
    'command' => 'listProjects'  
  )
  request(options)
end

#list_public_ip_addresses(options = {}) ⇒ Object

Lists all public ip addresses

CloudStack API Reference



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

def list_public_ip_addresses(options={})
  options.merge!(
    'command' => 'listPublicIpAddresses'  
  )
  request(options)
end

#list_regions(options = {}) ⇒ Object

Lists Regions

CloudStack API Reference



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

def list_regions(options={})
  options.merge!(
    'command' => 'listRegions'  
  )
  request(options)
end

#list_remote_access_vpns(publicipid, options = {}) ⇒ Object

Lists remote access vpns

CloudStack API Reference



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

def list_remote_access_vpns(publicipid, options={})
  options.merge!(
    'command' => 'listRemoteAccessVpns', 
    'publicipid' => publicipid  
  )
  request(options)
end

#list_resource_details(options = {}) ⇒ Object

List resource detail(s)

CloudStack API Reference



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

def list_resource_details(options={})
  options.merge!(
    'command' => 'listResourceDetails'  
  )
  request(options)
end

#list_resource_limits(options = {}) ⇒ Object

Lists resource limits.

CloudStack API Reference



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

def list_resource_limits(options={})
  options.merge!(
    'command' => 'listResourceLimits'  
  )
  request(options)
end

#list_routers(options = {}) ⇒ Object

List routers.

CloudStack API Reference



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

def list_routers(options={})
  options.merge!(
    'command' => 'listRouters'  
  )
  request(options)
end

#list_s3s(options = {}) ⇒ Object



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

def list_s3s(options={})
  options.merge!(
    'command' => 'listS3s'  
  )
  request(options)
end

#list_secondary_staging_stores(options = {}) ⇒ Object

Lists secondary staging stores.

CloudStack API Reference



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

def list_secondary_staging_stores(options={})
  options.merge!(
    'command' => 'listSecondaryStagingStores'  
  )
  request(options)
end

#list_security_groups(options = {}) ⇒ Object

Lists security groups

CloudStack API Reference



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

def list_security_groups(options={})
  options.merge!(
    'command' => 'listSecurityGroups'  
  )
  request(options)
end

#list_service_offerings(options = {}) ⇒ Object

Lists all available service offerings.

CloudStack API Reference



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

def list_service_offerings(options={})
  options.merge!(
    'command' => 'listServiceOfferings'  
  )
  request(options)
end

#list_snapshot_policies(volumeid, options = {}) ⇒ Object

Lists snapshot policies.

CloudStack API Reference



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

def list_snapshot_policies(volumeid, options={})
  options.merge!(
    'command' => 'listSnapshotPolicies', 
    'volumeid' => volumeid  
  )
  request(options)
end

#list_snapshots(options = {}) ⇒ Object

Lists all available snapshots for the account.

CloudStack API Reference



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

def list_snapshots(options={})
  options.merge!(
    'command' => 'listSnapshots'  
  )
  request(options)
end

#list_srx_firewall_networks(lbdeviceid, options = {}) ⇒ Object

lists network that are using SRX firewall device

CloudStack API Reference



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

def list_srx_firewall_networks(lbdeviceid, options={})
  options.merge!(
    'command' => 'listSrxFirewallNetworks', 
    'lbdeviceid' => lbdeviceid  
  )
  request(options)
end

#list_srx_firewalls(options = {}) ⇒ Object

lists SRX firewall devices in a physical network

CloudStack API Reference



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

def list_srx_firewalls(options={})
  options.merge!(
    'command' => 'listSrxFirewalls'  
  )
  request(options)
end

#list_ssh_key_pairs(options = {}) ⇒ Object

List registered keypairs

CloudStack API Reference



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

def list_ssh_key_pairs(options={})
  options.merge!(
    'command' => 'listSSHKeyPairs'  
  )
  request(options)
end

#list_static_routes(options = {}) ⇒ Object

Lists all static routes

CloudStack API Reference



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

def list_static_routes(options={})
  options.merge!(
    'command' => 'listStaticRoutes'  
  )
  request(options)
end

#list_storage_network_ip_range(options = {}) ⇒ Object

List a storage network IP range.

CloudStack API Reference



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

def list_storage_network_ip_range(options={})
  options.merge!(
    'command' => 'listStorageNetworkIpRange'  
  )
  request(options)
end

#list_storage_pools(options = {}) ⇒ Object

Lists storage pools.

CloudStack API Reference



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

def list_storage_pools(options={})
  options.merge!(
    'command' => 'listStoragePools'  
  )
  request(options)
end

#list_storage_providers(type, options = {}) ⇒ Object

Lists storage providers.

CloudStack API Reference



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

def list_storage_providers(type, options={})
  options.merge!(
    'command' => 'listStorageProviders', 
    'type' => type  
  )
  request(options)
end

#list_supported_network_services(options = {}) ⇒ Object

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

CloudStack API Reference



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

def list_supported_network_services(options={})
  options.merge!(
    'command' => 'listSupportedNetworkServices'  
  )
  request(options)
end

#list_swifts(options = {}) ⇒ Object



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

def list_swifts(options={})
  options.merge!(
    'command' => 'listSwifts'  
  )
  request(options)
end

#list_system_vms(options = {}) ⇒ Object

List system virtual machines.

CloudStack API Reference



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

def list_system_vms(options={})
  options.merge!(
    'command' => 'listSystemVms'  
  )
  request(options)
end

#list_tags(options = {}) ⇒ Object

List resource tag(s)

CloudStack API Reference



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

def list_tags(options={})
  options.merge!(
    'command' => 'listTags'  
  )
  request(options)
end

#list_template_permissions(id, options = {}) ⇒ Object

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

CloudStack API Reference



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

def list_template_permissions(id, options={})
  options.merge!(
    'command' => 'listTemplatePermissions', 
    'id' => id  
  )
  request(options)
end

#list_templates(templatefilter, options = {}) ⇒ Object

List all public, private, and privileged templates.

CloudStack API Reference



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

def list_templates(templatefilter, options={})
  options.merge!(
    'command' => 'listTemplates', 
    'templatefilter' => templatefilter  
  )
  request(options)
end

#list_traffic_monitors(zoneid, options = {}) ⇒ Object

List traffic monitor Hosts.

CloudStack API Reference



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

def list_traffic_monitors(zoneid, options={})
  options.merge!(
    'command' => 'listTrafficMonitors', 
    'zoneid' => zoneid  
  )
  request(options)
end

#list_traffic_type_implementors(options = {}) ⇒ Object

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

CloudStack API Reference



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

def list_traffic_type_implementors(options={})
  options.merge!(
    'command' => 'listTrafficTypeImplementors'  
  )
  request(options)
end

#list_traffic_types(physicalnetworkid, options = {}) ⇒ Object

Lists traffic types of a given physical network.

CloudStack API Reference



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

def list_traffic_types(physicalnetworkid, options={})
  options.merge!(
    'command' => 'listTrafficTypes', 
    'physicalnetworkid' => physicalnetworkid  
  )
  request(options)
end

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

List ucs blades

CloudStack API Reference



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

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

#list_ucs_managers(options = {}) ⇒ Object

List ucs manager

CloudStack API Reference



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

def list_ucs_managers(options={})
  options.merge!(
    'command' => 'listUcsManagers'  
  )
  request(options)
end

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

List profile in ucs manager

CloudStack API Reference



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

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

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

List templates in ucs manager

CloudStack API Reference



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

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

#list_usage_records(enddate, startdate, options = {}) ⇒ Object

Lists usage records for accounts

CloudStack API Reference



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

def list_usage_records(enddate, startdate, options={})
  options.merge!(
    'command' => 'listUsageRecords', 
    'enddate' => enddate, 
    'startdate' => startdate  
  )
  request(options)
end

#list_usage_types(options = {}) ⇒ Object

List Usage Types

CloudStack API Reference



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

def list_usage_types(options={})
  options.merge!(
    'command' => 'listUsageTypes'  
  )
  request(options)
end

#list_users(options = {}) ⇒ Object

Lists user accounts

CloudStack API Reference



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

def list_users(options={})
  options.merge!(
    'command' => 'listUsers'  
  )
  request(options)
end

#list_virtual_machines(options = {}) ⇒ Object

List the virtual machines owned by the account.

CloudStack API Reference



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

def list_virtual_machines(options={})
  options.merge!(
    'command' => 'listVirtualMachines'  
  )
  request(options)
end

#list_virtual_router_elements(options = {}) ⇒ Object

Lists all available virtual router elements.

CloudStack API Reference



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

def list_virtual_router_elements(options={})
  options.merge!(
    'command' => 'listVirtualRouterElements'  
  )
  request(options)
end

#list_vlan_ip_ranges(options = {}) ⇒ Object

Lists all VLAN IP ranges.

CloudStack API Reference



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

def list_vlan_ip_ranges(options={})
  options.merge!(
    'command' => 'listVlanIpRanges'  
  )
  request(options)
end

#list_vm_snapshot(options = {}) ⇒ Object

List virtual machine snapshot by conditions

CloudStack API Reference



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

def list_vm_snapshot(options={})
  options.merge!(
    'command' => 'listVMSnapshot'  
  )
  request(options)
end

#list_vmware_dcs(zoneid, options = {}) ⇒ Object

Retrieves VMware DC(s) associated with a zone.

CloudStack API Reference



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

def list_vmware_dcs(zoneid, options={})
  options.merge!(
    'command' => 'listVmwareDcs', 
    'zoneid' => zoneid  
  )
  request(options)
end

#list_volumes(options = {}) ⇒ Object

Lists all volumes.

CloudStack API Reference



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

def list_volumes(options={})
  options.merge!(
    'command' => 'listVolumes'  
  )
  request(options)
end

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



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

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

#list_vpc_offerings(options = {}) ⇒ Object

Lists VPC offerings

CloudStack API Reference



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

def list_vpc_offerings(options={})
  options.merge!(
    'command' => 'listVPCOfferings'  
  )
  request(options)
end

#list_vpcs(options = {}) ⇒ Object



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

def list_vpcs(options={})
  options.merge!(
    'command' => 'listVPCs'  
  )
  request(options)
end

#list_vpn_connections(options = {}) ⇒ Object

Lists site to site vpn connection gateways

CloudStack API Reference



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

def list_vpn_connections(options={})
  options.merge!(
    'command' => 'listVpnConnections'  
  )
  request(options)
end

#list_vpn_customer_gateways(options = {}) ⇒ Object

Lists site to site vpn customer gateways

CloudStack API Reference



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

def list_vpn_customer_gateways(options={})
  options.merge!(
    'command' => 'listVpnCustomerGateways'  
  )
  request(options)
end

#list_vpn_gateways(options = {}) ⇒ Object

Lists site 2 site vpn gateways

CloudStack API Reference



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

def list_vpn_gateways(options={})
  options.merge!(
    'command' => 'listVpnGateways'  
  )
  request(options)
end

#list_vpn_users(options = {}) ⇒ Object

Lists vpn users

CloudStack API Reference



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

def list_vpn_users(options={})
  options.merge!(
    'command' => 'listVpnUsers'  
  )
  request(options)
end

#list_zones(options = {}) ⇒ Object



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

def list_zones(options={})
  options.merge!(
    'command' => 'listZones'  
  )
  request(options)
end

#lock_account(account, domainid, options = {}) ⇒ Object

Locks an account

CloudStack API Reference



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

def (, domainid, options={})
  options.merge!(
    'command' => 'lockAccount', 
    'account' => , 
    'domainid' => domainid  
  )
  request(options)
end

#lock_user(id, options = {}) ⇒ Object

Locks a user account

CloudStack API Reference



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

def lock_user(id, options={})
  options.merge!(
    'command' => 'lockUser', 
    'id' => id  
  )
  request(options)
end

#login(username, password, domain) ⇒ Object



516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
# File 'lib/fog/cloudstack/compute.rb', line 516

def (username,password,domain)
  response = issue_request({
    'response' => 'json',
    'command'  => 'login',
    'username' => username,
    'password' => Digest::MD5.hexdigest(password),
    'domain'   => domain
  })

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

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

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

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

  user
end

#mark_default_zone_for_account(zoneid, domainid, account, options = {}) ⇒ Object

Marks a default zone for this account

CloudStack API Reference



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

def (zoneid, domainid, , options={})
  options.merge!(
    'command' => 'markDefaultZoneForAccount', 
    'zoneid' => zoneid, 
    'domainid' => domainid, 
    'account' =>   
  )
  request(options)
end

#migrate_system_vm(virtualmachineid, hostid, options = {}) ⇒ Object

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

CloudStack API Reference



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

def migrate_system_vm(virtualmachineid, hostid, options={})
  options.merge!(
    'command' => 'migrateSystemVm', 
    'virtualmachineid' => virtualmachineid, 
    'hostid' => hostid  
  )
  request(options)
end

#migrate_virtual_machine(virtualmachineid, options = {}) ⇒ Object

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

CloudStack API Reference



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

def migrate_virtual_machine(virtualmachineid, options={})
  options.merge!(
    'command' => 'migrateVirtualMachine', 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end

#migrate_virtual_machine_with_volume(hostid, virtualmachineid, options = {}) ⇒ Object

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

CloudStack API Reference



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

def migrate_virtual_machine_with_volume(hostid, virtualmachineid, options={})
  options.merge!(
    'command' => 'migrateVirtualMachineWithVolume', 
    'hostid' => hostid, 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end

#migrate_volume(volumeid, storageid, options = {}) ⇒ Object

Migrate volume

CloudStack API Reference



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

def migrate_volume(volumeid, storageid, options={})
  options.merge!(
    'command' => 'migrateVolume', 
    'volumeid' => volumeid, 
    'storageid' => storageid  
  )
  request(options)
end

#modify_pool(algorithm, poolname, options = {}) ⇒ Object



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

def modify_pool(algorithm, poolname, options={})
  options.merge!(
    'command' => 'modifyPool', 
    'algorithm' => algorithm, 
    'poolname' => poolname  
  )
  request(options)
end

#prepare_host_for_maintenance(id, options = {}) ⇒ Object

Prepares a host for maintenance.

CloudStack API Reference



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

def prepare_host_for_maintenance(id, options={})
  options.merge!(
    'command' => 'prepareHostForMaintenance', 
    'id' => id  
  )
  request(options)
end

#prepare_template(templateid, zoneid, options = {}) ⇒ Object

load template into primary storage

CloudStack API Reference



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

def prepare_template(templateid, zoneid, options={})
  options.merge!(
    'command' => 'prepareTemplate', 
    'templateid' => templateid, 
    'zoneid' => zoneid  
  )
  request(options)
end

#query_async_job_result(jobid, options = {}) ⇒ Object

Retrieves the current status of asynchronous job.

CloudStack API Reference



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

def query_async_job_result(jobid, options={})
  options.merge!(
    'command' => 'queryAsyncJobResult', 
    'jobid' => jobid  
  )
  request(options)
end

#reboot_router(id, options = {}) ⇒ Object

Starts a router.

CloudStack API Reference



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

def reboot_router(id, options={})
  options.merge!(
    'command' => 'rebootRouter', 
    'id' => id  
  )
  request(options)
end

#reboot_system_vm(id, options = {}) ⇒ Object

Reboots a system VM.

CloudStack API Reference



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

def reboot_system_vm(id, options={})
  options.merge!(
    'command' => 'rebootSystemVm', 
    'id' => id  
  )
  request(options)
end

#reboot_virtual_machine(id, options = {}) ⇒ Object

Reboots a virtual machine.

CloudStack API Reference



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

def reboot_virtual_machine(id, options={})
  options.merge!(
    'command' => 'rebootVirtualMachine', 
    'id' => id  
  )
  request(options)
end

#reconnect_host(id, options = {}) ⇒ Object

Reconnects a host.

CloudStack API Reference



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

def reconnect_host(id, options={})
  options.merge!(
    'command' => 'reconnectHost', 
    'id' => id  
  )
  request(options)
end

#recover_virtual_machine(id, options = {}) ⇒ Object

Recovers a virtual machine.

CloudStack API Reference



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

def recover_virtual_machine(id, options={})
  options.merge!(
    'command' => 'recoverVirtualMachine', 
    'id' => id  
  )
  request(options)
end

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

refresh ucs blades to sync with UCS manager

CloudStack API Reference



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

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

#register_iso(url, zoneid, displaytext, name, options = {}) ⇒ Object

Registers an existing ISO into the CloudStack Cloud.

CloudStack API Reference



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

def register_iso(url, zoneid, displaytext, name, options={})
  options.merge!(
    'command' => 'registerIso', 
    'url' => url, 
    'zoneid' => zoneid, 
    'displaytext' => displaytext, 
    'name' => name  
  )
  request(options)
end

#register_ssh_key_pair(publickey, name, options = {}) ⇒ Object

Register a public key in a keypair under a certain name

CloudStack API Reference



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

def register_ssh_key_pair(publickey, name, options={})
  options.merge!(
    'command' => 'registerSSHKeyPair', 
    'publickey' => publickey, 
    'name' => name  
  )
  request(options)
end

#register_template(ostypeid, hypervisor, name, format, zoneid, displaytext, url, options = {}) ⇒ Object

Registers an existing template into the CloudStack cloud.

CloudStack API Reference



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

def register_template(ostypeid, hypervisor, name, format, zoneid, displaytext, url, options={})
  options.merge!(
    'command' => 'registerTemplate', 
    'ostypeid' => ostypeid, 
    'hypervisor' => hypervisor, 
    'name' => name, 
    'format' => format, 
    'zoneid' => zoneid, 
    'displaytext' => displaytext, 
    'url' => url  
  )
  request(options)
end

#register_user_keys(id, options = {}) ⇒ Object

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

CloudStack API Reference



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

def register_user_keys(id, options={})
  options.merge!(
    'command' => 'registerUserKeys', 
    'id' => id  
  )
  request(options)
end

#release_dedicated_cluster(clusterid, options = {}) ⇒ Object

Release the dedication for cluster

CloudStack API Reference



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

def release_dedicated_cluster(clusterid, options={})
  options.merge!(
    'command' => 'releaseDedicatedCluster', 
    'clusterid' => clusterid  
  )
  request(options)
end

#release_dedicated_guest_vlan_range(id, options = {}) ⇒ Object

Releases a dedicated guest vlan range to the system

CloudStack API Reference



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

def release_dedicated_guest_vlan_range(id, options={})
  options.merge!(
    'command' => 'releaseDedicatedGuestVlanRange', 
    'id' => id  
  )
  request(options)
end

#release_dedicated_host(hostid, options = {}) ⇒ Object

Release the dedication for host

CloudStack API Reference



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

def release_dedicated_host(hostid, options={})
  options.merge!(
    'command' => 'releaseDedicatedHost', 
    'hostid' => hostid  
  )
  request(options)
end

#release_dedicated_pod(podid, options = {}) ⇒ Object

Release the dedication for the pod

CloudStack API Reference



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

def release_dedicated_pod(podid, options={})
  options.merge!(
    'command' => 'releaseDedicatedPod', 
    'podid' => podid  
  )
  request(options)
end

#release_dedicated_zone(zoneid, options = {}) ⇒ Object

Release dedication of zone

CloudStack API Reference



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

def release_dedicated_zone(zoneid, options={})
  options.merge!(
    'command' => 'releaseDedicatedZone', 
    'zoneid' => zoneid  
  )
  request(options)
end

#release_host_reservation(id, options = {}) ⇒ Object

Releases host reservation.

CloudStack API Reference



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

def release_host_reservation(id, options={})
  options.merge!(
    'command' => 'releaseHostReservation', 
    'id' => id  
  )
  request(options)
end

#release_public_ip_range(id, options = {}) ⇒ Object

Releases a Public IP range back to the system pool

CloudStack API Reference



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

def release_public_ip_range(id, options={})
  options.merge!(
    'command' => 'releasePublicIpRange', 
    'id' => id  
  )
  request(options)
end

#reloadObject



512
513
514
# File 'lib/fog/cloudstack/compute.rb', line 512

def reload
  @connection.reset
end

#remove_from_global_load_balancer_rule(id, loadbalancerrulelist, options = {}) ⇒ Object

Removes a load balancer rule association with global load balancer rule

CloudStack API Reference



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

def remove_from_global_load_balancer_rule(id, loadbalancerrulelist, options={})
  options.merge!(
    'command' => 'removeFromGlobalLoadBalancerRule', 
    'id' => id, 
    'loadbalancerrulelist' => loadbalancerrulelist  
  )
  request(options)
end

#remove_from_load_balancer_rule(id, virtualmachineids, options = {}) ⇒ Object

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

CloudStack API Reference



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

def remove_from_load_balancer_rule(id, virtualmachineids, options={})
  options.merge!(
    'command' => 'removeFromLoadBalancerRule', 
    'id' => id, 
    'virtualmachineids' => virtualmachineids  
  )
  request(options)
end

#remove_ip_from_nic(id, options = {}) ⇒ Object

Assigns secondary IP to NIC.

CloudStack API Reference



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

def remove_ip_from_nic(id, options={})
  options.merge!(
    'command' => 'removeIpFromNic', 
    'id' => id  
  )
  request(options)
end

#remove_nic_from_virtual_machine(virtualmachineid, nicid, options = {}) ⇒ Object

Removes VM from specified network by deleting a NIC

CloudStack API Reference



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

def remove_nic_from_virtual_machine(virtualmachineid, nicid, options={})
  options.merge!(
    'command' => 'removeNicFromVirtualMachine', 
    'virtualmachineid' => virtualmachineid, 
    'nicid' => nicid  
  )
  request(options)
end

#remove_region(id, options = {}) ⇒ Object

Removes specified region

CloudStack API Reference



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

def remove_region(id, options={})
  options.merge!(
    'command' => 'removeRegion', 
    'id' => id  
  )
  request(options)
end

#remove_resource_detail(resourcetype, resourceid, options = {}) ⇒ Object

Removes detail for the Resource.

CloudStack API Reference



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

def remove_resource_detail(resourcetype, resourceid, options={})
  options.merge!(
    'command' => 'removeResourceDetail', 
    'resourcetype' => resourcetype, 
    'resourceid' => resourceid  
  )
  request(options)
end

#remove_vmware_dc(zoneid, options = {}) ⇒ Object

Remove a VMware datacenter from a zone.

CloudStack API Reference



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

def remove_vmware_dc(zoneid, options={})
  options.merge!(
    'command' => 'removeVmwareDc', 
    'zoneid' => zoneid  
  )
  request(options)
end

#remove_vpn_user(username, options = {}) ⇒ Object

Removes vpn user

CloudStack API Reference



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

def remove_vpn_user(username, options={})
  options.merge!(
    'command' => 'removeVpnUser', 
    'username' => username  
  )
  request(options)
end

#replace_network_acl_list(aclid, options = {}) ⇒ Object

Replaces ACL associated with a Network or private gateway

CloudStack API Reference



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

def replace_network_acl_list(aclid, options={})
  options.merge!(
    'command' => 'replaceNetworkACLList', 
    'aclid' => aclid  
  )
  request(options)
end

#request(params) ⇒ Object



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

def request(params)
  params.reject!{|k,v| v.nil?}

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

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

  response = issue_request(params,headers)
  response = Fog::JSON.decode(response.body) unless response.body.empty?
  response
end

#reset_api_limit(options = {}) ⇒ Object

Reset api count

CloudStack API Reference



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

def reset_api_limit(options={})
  options.merge!(
    'command' => 'resetApiLimit'  
  )
  request(options)
end

#reset_password_for_virtual_machine(id, options = {}) ⇒ Object

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

CloudStack API Reference



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

def reset_password_for_virtual_machine(id, options={})
  options.merge!(
    'command' => 'resetPasswordForVirtualMachine', 
    'id' => id  
  )
  request(options)
end

#reset_ssh_key_for_virtual_machine(id, keypair, options = {}) ⇒ Object

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

CloudStack API Reference



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

def reset_ssh_key_for_virtual_machine(id, keypair, options={})
  options.merge!(
    'command' => 'resetSSHKeyForVirtualMachine', 
    'id' => id, 
    'keypair' => keypair  
  )
  request(options)
end

#reset_vpn_connection(id, options = {}) ⇒ Object

Reset site to site vpn connection

CloudStack API Reference



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

def reset_vpn_connection(id, options={})
  options.merge!(
    'command' => 'resetVpnConnection', 
    'id' => id  
  )
  request(options)
end

#resize_volume(options = {}) ⇒ Object

Resizes a volume

CloudStack API Reference



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

def resize_volume(options={})
  options.merge!(
    'command' => 'resizeVolume'  
  )
  request(options)
end

#restart_network(id, options = {}) ⇒ Object

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

CloudStack API Reference



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

def restart_network(id, options={})
  options.merge!(
    'command' => 'restartNetwork', 
    'id' => id  
  )
  request(options)
end

#restart_vpc(id, options = {}) ⇒ Object

Restarts a VPC

CloudStack API Reference



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

def restart_vpc(id, options={})
  options.merge!(
    'command' => 'restartVPC', 
    'id' => id  
  )
  request(options)
end

#restore_virtual_machine(virtualmachineid, options = {}) ⇒ Object

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

CloudStack API Reference



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

def restore_virtual_machine(virtualmachineid, options={})
  options.merge!(
    'command' => 'restoreVirtualMachine', 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end

#revert_to_vm_snapshot(vmsnapshotid, options = {}) ⇒ Object

Revert VM from a vmsnapshot.

CloudStack API Reference



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

def revert_to_vm_snapshot(vmsnapshotid, options={})
  options.merge!(
    'command' => 'revertToVMSnapshot', 
    'vmsnapshotid' => vmsnapshotid  
  )
  request(options)
end

#revoke_security_group_egress(id, options = {}) ⇒ Object

Deletes a particular egress rule from this security group

CloudStack API Reference



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

def revoke_security_group_egress(id, options={})
  options.merge!(
    'command' => 'revokeSecurityGroupEgress', 
    'id' => id  
  )
  request(options)
end

#revoke_security_group_ingress(id, options = {}) ⇒ Object

Deletes a particular ingress rule from this security group

CloudStack API Reference



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

def revoke_security_group_ingress(id, options={})
  options.merge!(
    'command' => 'revokeSecurityGroupIngress', 
    'id' => id  
  )
  request(options)
end

#scale_system_vm(id, serviceofferingid, options = {}) ⇒ Object

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

CloudStack API Reference



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

def scale_system_vm(id, serviceofferingid, options={})
  options.merge!(
    'command' => 'scaleSystemVm', 
    'id' => id, 
    'serviceofferingid' => serviceofferingid  
  )
  request(options)
end

#scale_virtual_machine(id, serviceofferingid, options = {}) ⇒ Object

Scales the virtual machine to a new service offering.

CloudStack API Reference



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

def scale_virtual_machine(id, serviceofferingid, options={})
  options.merge!(
    'command' => 'scaleVirtualMachine', 
    'id' => id, 
    'serviceofferingid' => serviceofferingid  
  )
  request(options)
end

#start_internal_load_balancer_vm(id, options = {}) ⇒ Object

Starts an existing internal lb vm.

CloudStack API Reference



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

def start_internal_load_balancer_vm(id, options={})
  options.merge!(
    'command' => 'startInternalLoadBalancerVM', 
    'id' => id  
  )
  request(options)
end

#start_router(id, options = {}) ⇒ Object

Starts a router.

CloudStack API Reference



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

def start_router(id, options={})
  options.merge!(
    'command' => 'startRouter', 
    'id' => id  
  )
  request(options)
end

#start_system_vm(id, options = {}) ⇒ Object

Starts a system virtual machine.

CloudStack API Reference



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

def start_system_vm(id, options={})
  options.merge!(
    'command' => 'startSystemVm', 
    'id' => id  
  )
  request(options)
end

#start_virtual_machine(id, options = {}) ⇒ Object

Starts a virtual machine.

CloudStack API Reference



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

def start_virtual_machine(id, options={})
  options.merge!(
    'command' => 'startVirtualMachine', 
    'id' => id  
  )
  request(options)
end

#stop_internal_load_balancer_vm(id, options = {}) ⇒ Object

Stops an Internal LB vm.

CloudStack API Reference



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

def stop_internal_load_balancer_vm(id, options={})
  options.merge!(
    'command' => 'stopInternalLoadBalancerVM', 
    'id' => id  
  )
  request(options)
end

#stop_router(id, options = {}) ⇒ Object

Stops a router.

CloudStack API Reference



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

def stop_router(id, options={})
  options.merge!(
    'command' => 'stopRouter', 
    'id' => id  
  )
  request(options)
end

#stop_system_vm(id, options = {}) ⇒ Object

Stops a system VM.

CloudStack API Reference



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

def stop_system_vm(id, options={})
  options.merge!(
    'command' => 'stopSystemVm', 
    'id' => id  
  )
  request(options)
end

#stop_virtual_machine(id, options = {}) ⇒ Object

Stops a virtual machine.

CloudStack API Reference



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

def stop_virtual_machine(id, options={})
  options.merge!(
    'command' => 'stopVirtualMachine', 
    'id' => id  
  )
  request(options)
end

#suspend_project(id, options = {}) ⇒ Object

Suspends a project

CloudStack API Reference



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

def suspend_project(id, options={})
  options.merge!(
    'command' => 'suspendProject', 
    'id' => id  
  )
  request(options)
end

#update_account(newname, options = {}) ⇒ Object

Updates account information for the authenticated user

CloudStack API Reference



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

def (newname, options={})
  options.merge!(
    'command' => 'updateAccount', 
    'newname' => newname  
  )
  request(options)
end

#update_auto_scale_policy(id, options = {}) ⇒ Object

Updates an existing autoscale policy.

CloudStack API Reference



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

def update_auto_scale_policy(id, options={})
  options.merge!(
    'command' => 'updateAutoScalePolicy', 
    'id' => id  
  )
  request(options)
end

#update_auto_scale_vm_group(id, options = {}) ⇒ Object

Updates an existing autoscale vm group.

CloudStack API Reference



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

def update_auto_scale_vm_group(id, options={})
  options.merge!(
    'command' => 'updateAutoScaleVmGroup', 
    'id' => id  
  )
  request(options)
end

#update_auto_scale_vm_profile(id, options = {}) ⇒ Object

Updates an existing autoscale vm profile.

CloudStack API Reference



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

def update_auto_scale_vm_profile(id, options={})
  options.merge!(
    'command' => 'updateAutoScaleVmProfile', 
    'id' => id  
  )
  request(options)
end

#update_cluster(id, options = {}) ⇒ Object

Updates an existing cluster

CloudStack API Reference



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

def update_cluster(id, options={})
  options.merge!(
    'command' => 'updateCluster', 
    'id' => id  
  )
  request(options)
end

#update_configuration(name, options = {}) ⇒ Object

Updates a configuration.

CloudStack API Reference



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

def update_configuration(name, options={})
  options.merge!(
    'command' => 'updateConfiguration', 
    'name' => name  
  )
  request(options)
end

#update_default_nic_for_virtual_machine(nicid, virtualmachineid, options = {}) ⇒ Object

Changes the default NIC on a VM

CloudStack API Reference



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

def update_default_nic_for_virtual_machine(nicid, virtualmachineid, options={})
  options.merge!(
    'command' => 'updateDefaultNicForVirtualMachine', 
    'nicid' => nicid, 
    'virtualmachineid' => virtualmachineid  
  )
  request(options)
end

#update_disk_offering(id, options = {}) ⇒ Object

Updates a disk offering.

CloudStack API Reference



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

def update_disk_offering(id, options={})
  options.merge!(
    'command' => 'updateDiskOffering', 
    'id' => id  
  )
  request(options)
end

#update_domain(id, options = {}) ⇒ Object

Updates a domain with a new name

CloudStack API Reference



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

def update_domain(id, options={})
  options.merge!(
    'command' => 'updateDomain', 
    'id' => id  
  )
  request(options)
end

#update_global_load_balancer_rule(id, options = {}) ⇒ Object

update global load balancer rules.

CloudStack API Reference



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

def update_global_load_balancer_rule(id, options={})
  options.merge!(
    'command' => 'updateGlobalLoadBalancerRule', 
    'id' => id  
  )
  request(options)
end

#update_host(id, options = {}) ⇒ Object

Updates a host.

CloudStack API Reference



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

def update_host(id, options={})
  options.merge!(
    'command' => 'updateHost', 
    'id' => id  
  )
  request(options)
end

#update_host_password(password, username, options = {}) ⇒ Object

Update password of a host/pool on management server.

CloudStack API Reference



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

def update_host_password(password, username, options={})
  options.merge!(
    'command' => 'updateHostPassword', 
    'password' => password, 
    'username' => username  
  )
  request(options)
end

#update_hypervisor_capabilities(options = {}) ⇒ Object

Updates a hypervisor capabilities.

CloudStack API Reference



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

def update_hypervisor_capabilities(options={})
  options.merge!(
    'command' => 'updateHypervisorCapabilities'  
  )
  request(options)
end

#update_instance_group(id, options = {}) ⇒ Object

Updates a vm group

CloudStack API Reference



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

def update_instance_group(id, options={})
  options.merge!(
    'command' => 'updateInstanceGroup', 
    'id' => id  
  )
  request(options)
end

#update_iso(id, options = {}) ⇒ Object

Updates an ISO file.

CloudStack API Reference



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

def update_iso(id, options={})
  options.merge!(
    'command' => 'updateIso', 
    'id' => id  
  )
  request(options)
end

#update_iso_permissions(id, options = {}) ⇒ Object

Updates iso permissions

CloudStack API Reference



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

def update_iso_permissions(id, options={})
  options.merge!(
    'command' => 'updateIsoPermissions', 
    'id' => id  
  )
  request(options)
end

#update_load_balancer_rule(id, options = {}) ⇒ Object

Updates load balancer

CloudStack API Reference



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

def update_load_balancer_rule(id, options={})
  options.merge!(
    'command' => 'updateLoadBalancerRule', 
    'id' => id  
  )
  request(options)
end

#update_network(id, options = {}) ⇒ Object

Updates a network

CloudStack API Reference



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

def update_network(id, options={})
  options.merge!(
    'command' => 'updateNetwork', 
    'id' => id  
  )
  request(options)
end

#update_network_acl_item(id, options = {}) ⇒ Object

Updates ACL Item with specified Id

CloudStack API Reference



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

def update_network_acl_item(id, options={})
  options.merge!(
    'command' => 'updateNetworkACLItem', 
    'id' => id  
  )
  request(options)
end

#update_network_offering(options = {}) ⇒ Object

Updates a network offering.

CloudStack API Reference



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

def update_network_offering(options={})
  options.merge!(
    'command' => 'updateNetworkOffering'  
  )
  request(options)
end

#update_network_service_provider(id, options = {}) ⇒ Object

Updates a network serviceProvider of a physical network

CloudStack API Reference



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

def update_network_service_provider(id, options={})
  options.merge!(
    'command' => 'updateNetworkServiceProvider', 
    'id' => id  
  )
  request(options)
end

#update_physical_network(id, options = {}) ⇒ Object

Updates a physical network

CloudStack API Reference



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

def update_physical_network(id, options={})
  options.merge!(
    'command' => 'updatePhysicalNetwork', 
    'id' => id  
  )
  request(options)
end

#update_pod(id, options = {}) ⇒ Object

Updates a Pod.

CloudStack API Reference



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

def update_pod(id, options={})
  options.merge!(
    'command' => 'updatePod', 
    'id' => id  
  )
  request(options)
end

#update_port_forwarding_rule(publicport, privateport, protocol, ipaddressid, options = {}) ⇒ Object

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

CloudStack API Reference



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

def update_port_forwarding_rule(publicport, privateport, protocol, ipaddressid, options={})
  options.merge!(
    'command' => 'updatePortForwardingRule', 
    'publicport' => publicport, 
    'privateport' => privateport, 
    'protocol' => protocol, 
    'ipaddressid' => ipaddressid  
  )
  request(options)
end

#update_project(id, options = {}) ⇒ Object

Updates a project

CloudStack API Reference



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

def update_project(id, options={})
  options.merge!(
    'command' => 'updateProject', 
    'id' => id  
  )
  request(options)
end

#update_project_invitation(projectid, options = {}) ⇒ Object

Accepts or declines project invitation

CloudStack API Reference



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

def update_project_invitation(projectid, options={})
  options.merge!(
    'command' => 'updateProjectInvitation', 
    'projectid' => projectid  
  )
  request(options)
end

#update_region(id, options = {}) ⇒ Object

Updates a region

CloudStack API Reference



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

def update_region(id, options={})
  options.merge!(
    'command' => 'updateRegion', 
    'id' => id  
  )
  request(options)
end

#update_resource_count(domainid, options = {}) ⇒ Object

Recalculate and update resource count for an account or domain.

CloudStack API Reference



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

def update_resource_count(domainid, options={})
  options.merge!(
    'command' => 'updateResourceCount', 
    'domainid' => domainid  
  )
  request(options)
end

#update_resource_limit(resourcetype, options = {}) ⇒ Object

Updates resource limits for an account or domain.

CloudStack API Reference



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

def update_resource_limit(resourcetype, options={})
  options.merge!(
    'command' => 'updateResourceLimit', 
    'resourcetype' => resourcetype  
  )
  request(options)
end

#update_service_offering(id, options = {}) ⇒ Object

Updates a service offering.

CloudStack API Reference



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

def update_service_offering(id, options={})
  options.merge!(
    'command' => 'updateServiceOffering', 
    'id' => id  
  )
  request(options)
end

#update_storage_network_ip_range(id, options = {}) ⇒ Object

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

CloudStack API Reference



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

def update_storage_network_ip_range(id, options={})
  options.merge!(
    'command' => 'updateStorageNetworkIpRange', 
    'id' => id  
  )
  request(options)
end

#update_storage_pool(id, options = {}) ⇒ Object

Updates a storage pool.

CloudStack API Reference



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

def update_storage_pool(id, options={})
  options.merge!(
    'command' => 'updateStoragePool', 
    'id' => id  
  )
  request(options)
end

#update_template(id, options = {}) ⇒ Object

Updates attributes of a template.

CloudStack API Reference



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

def update_template(id, options={})
  options.merge!(
    'command' => 'updateTemplate', 
    'id' => id  
  )
  request(options)
end

#update_template_permissions(id, options = {}) ⇒ Object

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

CloudStack API Reference



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

def update_template_permissions(id, options={})
  options.merge!(
    'command' => 'updateTemplatePermissions', 
    'id' => id  
  )
  request(options)
end

#update_traffic_type(id, options = {}) ⇒ Object

Updates traffic type of a physical network

CloudStack API Reference



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

def update_traffic_type(id, options={})
  options.merge!(
    'command' => 'updateTrafficType', 
    'id' => id  
  )
  request(options)
end

#update_user(id, options = {}) ⇒ Object

Updates a user account

CloudStack API Reference



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

def update_user(id, options={})
  options.merge!(
    'command' => 'updateUser', 
    'id' => id  
  )
  request(options)
end

#update_virtual_machine(id, options = {}) ⇒ Object

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

CloudStack API Reference



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

def update_virtual_machine(id, options={})
  options.merge!(
    'command' => 'updateVirtualMachine', 
    'id' => id  
  )
  request(options)
end

#update_vm_affinity_group(id, options = {}) ⇒ Object

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

CloudStack API Reference



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

def update_vm_affinity_group(id, options={})
  options.merge!(
    'command' => 'updateVMAffinityGroup', 
    'id' => id  
  )
  request(options)
end

#update_volume(id, path, options = {}) ⇒ Object

Updates the volume.

CloudStack API Reference



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

def update_volume(id, path, options={})
  options.merge!(
    'command' => 'updateVolume', 
    'id' => id, 
    'path' => path  
  )
  request(options)
end

#update_vpc(id, name, options = {}) ⇒ Object

Updates a VPC

CloudStack API Reference



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

def update_vpc(id, name, options={})
  options.merge!(
    'command' => 'updateVPC', 
    'id' => id, 
    'name' => name  
  )
  request(options)
end

#update_vpcoffering(id, options = {}) ⇒ Object

Updates VPC offering

CloudStack API Reference



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

def update_vpcoffering(id, options={})
  options.merge!(
    'command' => 'updateVPCOffering', 
    'id' => id  
  )
  request(options)
end

#update_vpn_customer_gateway(id, esppolicy, ikepolicy, cidrlist, gateway, ipsecpsk, options = {}) ⇒ Object

Update site to site vpn customer gateway

CloudStack API Reference



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

def update_vpn_customer_gateway(id, esppolicy, ikepolicy, cidrlist, gateway, ipsecpsk, options={})
  options.merge!(
    'command' => 'updateVpnCustomerGateway', 
    'id' => id, 
    'esppolicy' => esppolicy, 
    'ikepolicy' => ikepolicy, 
    'cidrlist' => cidrlist, 
    'gateway' => gateway, 
    'ipsecpsk' => ipsecpsk  
  )
  request(options)
end

#update_zone(id, options = {}) ⇒ Object

Updates a Zone.

CloudStack API Reference



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

def update_zone(id, options={})
  options.merge!(
    'command' => 'updateZone', 
    'id' => id  
  )
  request(options)
end

#upload_custom_certificate(domainsuffix, certificate, options = {}) ⇒ Object

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

CloudStack API Reference



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

def upload_custom_certificate(domainsuffix, certificate, options={})
  options.merge!(
    'command' => 'uploadCustomCertificate', 
    'domainsuffix' => domainsuffix, 
    'certificate' => certificate  
  )
  request(options)
end

#upload_volume(zoneid, name, url, format, options = {}) ⇒ Object

Uploads a data disk.

CloudStack API Reference



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

def upload_volume(zoneid, name, url, format, options={})
  options.merge!(
    'command' => 'uploadVolume', 
    'zoneid' => zoneid, 
    'name' => name, 
    'url' => url, 
    'format' => format  
  )
  request(options)
end