Class: Fog::Compute::Cloudstack::Real
- Inherits:
-
Object
- Object
- Fog::Compute::Cloudstack::Real
- Defined in:
- lib/fog/cloudstack/compute.rb,
lib/fog/cloudstack/requests/compute/add_s3.rb,
lib/fog/cloudstack/requests/compute/add_host.rb,
lib/fog/cloudstack/requests/compute/copy_iso.rb,
lib/fog/cloudstack/requests/compute/get_user.rb,
lib/fog/cloudstack/requests/compute/list_s3s.rb,
lib/fog/cloudstack/requests/compute/add_swift.rb,
lib/fog/cloudstack/requests/compute/list_apis.rb,
lib/fog/cloudstack/requests/compute/list_isos.rb,
lib/fog/cloudstack/requests/compute/list_nics.rb,
lib/fog/cloudstack/requests/compute/list_pods.rb,
lib/fog/cloudstack/requests/compute/list_tags.rb,
lib/fog/cloudstack/requests/compute/list_vpcs.rb,
lib/fog/cloudstack/requests/compute/lock_user.rb,
lib/fog/cloudstack/requests/compute/add_region.rb,
lib/fog/cloudstack/requests/compute/attach_iso.rb,
lib/fog/cloudstack/requests/compute/create_pod.rb,
lib/fog/cloudstack/requests/compute/create_vpc.rb,
lib/fog/cloudstack/requests/compute/delete_iso.rb,
lib/fog/cloudstack/requests/compute/delete_pod.rb,
lib/fog/cloudstack/requests/compute/delete_vpc.rb,
lib/fog/cloudstack/requests/compute/detach_iso.rb,
lib/fog/cloudstack/requests/compute/list_hosts.rb,
lib/fog/cloudstack/requests/compute/list_pools.rb,
lib/fog/cloudstack/requests/compute/list_users.rb,
lib/fog/cloudstack/requests/compute/list_zones.rb,
lib/fog/cloudstack/requests/compute/update_iso.rb,
lib/fog/cloudstack/requests/compute/update_pod.rb,
lib/fog/cloudstack/requests/compute/update_vpc.rb,
lib/fog/cloudstack/requests/compute/add_cluster.rb,
lib/fog/cloudstack/requests/compute/create_pool.rb,
lib/fog/cloudstack/requests/compute/create_tags.rb,
lib/fog/cloudstack/requests/compute/create_user.rb,
lib/fog/cloudstack/requests/compute/create_zone.rb,
lib/fog/cloudstack/requests/compute/delete_host.rb,
lib/fog/cloudstack/requests/compute/delete_pool.rb,
lib/fog/cloudstack/requests/compute/delete_tags.rb,
lib/fog/cloudstack/requests/compute/delete_user.rb,
lib/fog/cloudstack/requests/compute/delete_zone.rb,
lib/fog/cloudstack/requests/compute/enable_user.rb,
lib/fog/cloudstack/requests/compute/extract_iso.rb,
lib/fog/cloudstack/requests/compute/ldap_config.rb,
lib/fog/cloudstack/requests/compute/ldap_remove.rb,
lib/fog/cloudstack/requests/compute/list_alerts.rb,
lib/fog/cloudstack/requests/compute/list_events.rb,
lib/fog/cloudstack/requests/compute/list_swifts.rb,
lib/fog/cloudstack/requests/compute/modify_pool.rb,
lib/fog/cloudstack/requests/compute/restart_vpc.rb,
lib/fog/cloudstack/requests/compute/stop_router.rb,
lib/fog/cloudstack/requests/compute/update_host.rb,
lib/fog/cloudstack/requests/compute/update_user.rb,
lib/fog/cloudstack/requests/compute/update_zone.rb,
lib/fog/cloudstack/requests/compute/add_guest_os.rb,
lib/fog/cloudstack/requests/compute/add_vpn_user.rb,
lib/fog/cloudstack/requests/compute/dedicate_pod.rb,
lib/fog/cloudstack/requests/compute/disable_user.rb,
lib/fog/cloudstack/requests/compute/list_domains.rb,
lib/fog/cloudstack/requests/compute/list_regions.rb,
lib/fog/cloudstack/requests/compute/list_routers.rb,
lib/fog/cloudstack/requests/compute/list_volumes.rb,
lib/fog/cloudstack/requests/compute/lock_account.rb,
lib/fog/cloudstack/requests/compute/register_iso.rb,
lib/fog/cloudstack/requests/compute/start_router.rb,
lib/fog/cloudstack/requests/compute/add_ip_to_nic.rb,
lib/fog/cloudstack/requests/compute/add_vmware_dc.rb,
lib/fog/cloudstack/requests/compute/associate_lun.rb,
lib/fog/cloudstack/requests/compute/attach_volume.rb,
lib/fog/cloudstack/requests/compute/copy_template.rb,
lib/fog/cloudstack/requests/compute/create_domain.rb,
lib/fog/cloudstack/requests/compute/create_volume.rb,
lib/fog/cloudstack/requests/compute/dedicate_host.rb,
lib/fog/cloudstack/requests/compute/dedicate_zone.rb,
lib/fog/cloudstack/requests/compute/delete_alerts.rb,
lib/fog/cloudstack/requests/compute/delete_domain.rb,
lib/fog/cloudstack/requests/compute/delete_events.rb,
lib/fog/cloudstack/requests/compute/delete_volume.rb,
lib/fog/cloudstack/requests/compute/detach_volume.rb,
lib/fog/cloudstack/requests/compute/get_api_limit.rb,
lib/fog/cloudstack/requests/compute/list_accounts.rb,
lib/fog/cloudstack/requests/compute/list_capacity.rb,
lib/fog/cloudstack/requests/compute/list_clusters.rb,
lib/fog/cloudstack/requests/compute/list_counters.rb,
lib/fog/cloudstack/requests/compute/list_networks.rb,
lib/fog/cloudstack/requests/compute/list_os_types.rb,
lib/fog/cloudstack/requests/compute/list_projects.rb,
lib/fog/cloudstack/requests/compute/reboot_router.rb,
lib/fog/cloudstack/requests/compute/remove_region.rb,
lib/fog/cloudstack/requests/compute/resize_volume.rb,
lib/fog/cloudstack/requests/compute/update_domain.rb,
lib/fog/cloudstack/requests/compute/update_region.rb,
lib/fog/cloudstack/requests/compute/update_volume.rb,
lib/fog/cloudstack/requests/compute/upload_volume.rb,
lib/fog/cloudstack/requests/compute/archive_alerts.rb,
lib/fog/cloudstack/requests/compute/archive_events.rb,
lib/fog/cloudstack/requests/compute/create_account.rb,
lib/fog/cloudstack/requests/compute/create_counter.rb,
lib/fog/cloudstack/requests/compute/create_network.rb,
lib/fog/cloudstack/requests/compute/create_project.rb,
lib/fog/cloudstack/requests/compute/delete_account.rb,
lib/fog/cloudstack/requests/compute/delete_cluster.rb,
lib/fog/cloudstack/requests/compute/delete_counter.rb,
lib/fog/cloudstack/requests/compute/delete_network.rb,
lib/fog/cloudstack/requests/compute/delete_project.rb,
lib/fog/cloudstack/requests/compute/destroy_router.rb,
lib/fog/cloudstack/requests/compute/dissociate_lun.rb,
lib/fog/cloudstack/requests/compute/enable_account.rb,
lib/fog/cloudstack/requests/compute/extract_volume.rb,
lib/fog/cloudstack/requests/compute/generate_alert.rb,
lib/fog/cloudstack/requests/compute/list_snapshots.rb,
lib/fog/cloudstack/requests/compute/list_ssl_certs.rb,
lib/fog/cloudstack/requests/compute/list_templates.rb,
lib/fog/cloudstack/requests/compute/list_vpn_users.rb,
lib/fog/cloudstack/requests/compute/migrate_volume.rb,
lib/fog/cloudstack/requests/compute/reconnect_host.rb,
lib/fog/cloudstack/requests/compute/stop_system_vm.rb,
lib/fog/cloudstack/requests/compute/update_account.rb,
lib/fog/cloudstack/requests/compute/update_cluster.rb,
lib/fog/cloudstack/requests/compute/update_network.rb,
lib/fog/cloudstack/requests/compute/update_project.rb,
lib/fog/cloudstack/requests/compute/add_image_store.rb,
lib/fog/cloudstack/requests/compute/add_ucs_manager.rb,
lib/fog/cloudstack/requests/compute/create_snapshot.rb,
lib/fog/cloudstack/requests/compute/create_template.rb,
lib/fog/cloudstack/requests/compute/delete_snapshot.rb,
lib/fog/cloudstack/requests/compute/delete_ssl_cert.rb,
lib/fog/cloudstack/requests/compute/delete_template.rb,
lib/fog/cloudstack/requests/compute/disable_account.rb,
lib/fog/cloudstack/requests/compute/get_vm_password.rb,
lib/fog/cloudstack/requests/compute/list_async_jobs.rb,
lib/fog/cloudstack/requests/compute/list_conditions.rb,
lib/fog/cloudstack/requests/compute/list_ldap_users.rb,
lib/fog/cloudstack/requests/compute/list_system_vms.rb,
lib/fog/cloudstack/requests/compute/list_ucs_blades.rb,
lib/fog/cloudstack/requests/compute/list_vmware_dcs.rb,
lib/fog/cloudstack/requests/compute/remove_guest_os.rb,
lib/fog/cloudstack/requests/compute/remove_vpn_user.rb,
lib/fog/cloudstack/requests/compute/reset_api_limit.rb,
lib/fog/cloudstack/requests/compute/restart_network.rb,
lib/fog/cloudstack/requests/compute/revert_snapshot.rb,
lib/fog/cloudstack/requests/compute/scale_system_vm.rb,
lib/fog/cloudstack/requests/compute/start_system_vm.rb,
lib/fog/cloudstack/requests/compute/suspend_project.rb,
lib/fog/cloudstack/requests/compute/update_guest_os.rb,
lib/fog/cloudstack/requests/compute/update_template.rb,
lib/fog/cloudstack/requests/compute/upload_ssl_cert.rb,
lib/fog/cloudstack/requests/compute/activate_project.rb,
lib/fog/cloudstack/requests/compute/add_srx_firewall.rb,
lib/fog/cloudstack/requests/compute/add_traffic_type.rb,
lib/fog/cloudstack/requests/compute/create_condition.rb,
lib/fog/cloudstack/requests/compute/dedicate_cluster.rb,
lib/fog/cloudstack/requests/compute/delete_condition.rb,
lib/fog/cloudstack/requests/compute/extract_template.rb,
lib/fog/cloudstack/requests/compute/list_event_types.rb,
lib/fog/cloudstack/requests/compute/list_hypervisors.rb,
lib/fog/cloudstack/requests/compute/list_usage_types.rb,
lib/fog/cloudstack/requests/compute/list_vm_snapshot.rb,
lib/fog/cloudstack/requests/compute/prepare_template.rb,
lib/fog/cloudstack/requests/compute/reboot_system_vm.rb,
lib/fog/cloudstack/requests/compute/remove_vmware_dc.rb,
lib/fog/cloudstack/requests/compute/destroy_system_vm.rb,
lib/fog/cloudstack/requests/compute/enable_static_nat.rb,
lib/fog/cloudstack/requests/compute/import_ldap_users.rb,
lib/fog/cloudstack/requests/compute/list_capabilities.rb,
lib/fog/cloudstack/requests/compute/list_image_stores.rb,
lib/fog/cloudstack/requests/compute/list_network_acls.rb,
lib/fog/cloudstack/requests/compute/list_ovs_elements.rb,
lib/fog/cloudstack/requests/compute/list_ucs_managers.rb,
lib/fog/cloudstack/requests/compute/list_ucs_profiles.rb,
lib/fog/cloudstack/requests/compute/list_vpn_gateways.rb,
lib/fog/cloudstack/requests/compute/migrate_system_vm.rb,
lib/fog/cloudstack/requests/compute/register_template.rb,
lib/fog/cloudstack/requests/compute/update_ip_address.rb,
lib/fog/cloudstack/requests/compute/acquire_ip_address.rb,
lib/fog/cloudstack/requests/compute/add_baremetal_dhcp.rb,
lib/fog/cloudstack/requests/compute/add_baremetal_host.rb,
lib/fog/cloudstack/requests/compute/add_network_device.rb,
lib/fog/cloudstack/requests/compute/create_network_acl.rb,
lib/fog/cloudstack/requests/compute/create_vm_snapshot.rb,
lib/fog/cloudstack/requests/compute/create_vpcoffering.rb,
lib/fog/cloudstack/requests/compute/create_vpn_gateway.rb,
lib/fog/cloudstack/requests/compute/delete_image_store.rb,
lib/fog/cloudstack/requests/compute/delete_network_acl.rb,
lib/fog/cloudstack/requests/compute/delete_ucs_manager.rb,
lib/fog/cloudstack/requests/compute/delete_vm_snapshot.rb,
lib/fog/cloudstack/requests/compute/delete_vpcoffering.rb,
lib/fog/cloudstack/requests/compute/delete_vpn_gateway.rb,
lib/fog/cloudstack/requests/compute/disable_static_nat.rb,
lib/fog/cloudstack/requests/compute/list_luns_on_filer.rb,
lib/fog/cloudstack/requests/compute/list_os_categories.rb,
lib/fog/cloudstack/requests/compute/list_srx_firewalls.rb,
lib/fog/cloudstack/requests/compute/list_ssh_key_pairs.rb,
lib/fog/cloudstack/requests/compute/list_static_routes.rb,
lib/fog/cloudstack/requests/compute/list_storage_pools.rb,
lib/fog/cloudstack/requests/compute/list_traffic_types.rb,
lib/fog/cloudstack/requests/compute/list_ucs_templates.rb,
lib/fog/cloudstack/requests/compute/list_usage_records.rb,
lib/fog/cloudstack/requests/compute/list_vpc_offerings.rb,
lib/fog/cloudstack/requests/compute/refresh_ucs_blades.rb,
lib/fog/cloudstack/requests/compute/register_user_keys.rb,
lib/fog/cloudstack/requests/compute/remove_ip_from_nic.rb,
lib/fog/cloudstack/requests/compute/update_vpcoffering.rb,
lib/fog/cloudstack/requests/compute/update_vpn_gateway.rb,
lib/fog/cloudstack/requests/compute/add_resource_detail.rb,
lib/fog/cloudstack/requests/compute/add_traffic_monitor.rb,
lib/fog/cloudstack/requests/compute/create_lun_on_filer.rb,
lib/fog/cloudstack/requests/compute/create_ssh_key_pair.rb,
lib/fog/cloudstack/requests/compute/create_static_route.rb,
lib/fog/cloudstack/requests/compute/create_storage_pool.rb,
lib/fog/cloudstack/requests/compute/delete_srx_firewall.rb,
lib/fog/cloudstack/requests/compute/delete_ssh_key_pair.rb,
lib/fog/cloudstack/requests/compute/delete_static_route.rb,
lib/fog/cloudstack/requests/compute/delete_storage_pool.rb,
lib/fog/cloudstack/requests/compute/delete_traffic_type.rb,
lib/fog/cloudstack/requests/compute/ldap_create_account.rb,
lib/fog/cloudstack/requests/compute/list_baremetal_dhcp.rb,
lib/fog/cloudstack/requests/compute/list_configurations.rb,
lib/fog/cloudstack/requests/compute/list_dedicated_pods.rb,
lib/fog/cloudstack/requests/compute/list_disk_offerings.rb,
lib/fog/cloudstack/requests/compute/list_firewall_rules.rb,
lib/fog/cloudstack/requests/compute/list_load_balancers.rb,
lib/fog/cloudstack/requests/compute/list_network_device.rb,
lib/fog/cloudstack/requests/compute/list_vlan_ip_ranges.rb,
lib/fog/cloudstack/requests/compute/update_storage_pool.rb,
lib/fog/cloudstack/requests/compute/update_traffic_type.rb,
lib/fog/cloudstack/requests/compute/add_f5_load_balancer.rb,
lib/fog/cloudstack/requests/compute/add_guest_os_mapping.rb,
lib/fog/cloudstack/requests/compute/add_stratosphere_ssp.rb,
lib/fog/cloudstack/requests/compute/associate_ip_address.rb,
lib/fog/cloudstack/requests/compute/clean_vmreservations.rb,
lib/fog/cloudstack/requests/compute/create_disk_offering.rb,
lib/fog/cloudstack/requests/compute/create_firewall_rule.rb,
lib/fog/cloudstack/requests/compute/create_load_balancer.rb,
lib/fog/cloudstack/requests/compute/create_vlan_ip_range.rb,
lib/fog/cloudstack/requests/compute/delete_disk_offering.rb,
lib/fog/cloudstack/requests/compute/delete_firewall_rule.rb,
lib/fog/cloudstack/requests/compute/delete_load_balancer.rb,
lib/fog/cloudstack/requests/compute/delete_vlan_ip_range.rb,
lib/fog/cloudstack/requests/compute/destroy_lun_on_filer.rb,
lib/fog/cloudstack/requests/compute/get_cloud_identifier.rb,
lib/fog/cloudstack/requests/compute/list_affinity_groups.rb,
lib/fog/cloudstack/requests/compute/list_dedicated_hosts.rb,
lib/fog/cloudstack/requests/compute/list_dedicated_zones.rb,
lib/fog/cloudstack/requests/compute/list_domain_children.rb,
lib/fog/cloudstack/requests/compute/list_instance_groups.rb,
lib/fog/cloudstack/requests/compute/list_iso_permissions.rb,
lib/fog/cloudstack/requests/compute/list_resource_limits.rb,
lib/fog/cloudstack/requests/compute/list_security_groups.rb,
lib/fog/cloudstack/requests/compute/list_vpn_connections.rb,
lib/fog/cloudstack/requests/compute/reset_vpn_connection.rb,
lib/fog/cloudstack/requests/compute/stop_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/update_configuration.rb,
lib/fog/cloudstack/requests/compute/update_disk_offering.rb,
lib/fog/cloudstack/requests/compute/update_firewall_rule.rb,
lib/fog/cloudstack/requests/compute/update_host_password.rb,
lib/fog/cloudstack/requests/compute/update_load_balancer.rb,
lib/fog/cloudstack/requests/compute/add_external_firewall.rb,
lib/fog/cloudstack/requests/compute/add_nicira_nvp_device.rb,
lib/fog/cloudstack/requests/compute/add_secondary_storage.rb,
lib/fog/cloudstack/requests/compute/configure_ovs_element.rb,
lib/fog/cloudstack/requests/compute/create_affinity_group.rb,
lib/fog/cloudstack/requests/compute/create_instance_group.rb,
lib/fog/cloudstack/requests/compute/create_security_group.rb,
lib/fog/cloudstack/requests/compute/create_vpn_connection.rb,
lib/fog/cloudstack/requests/compute/delete_affinity_group.rb,
lib/fog/cloudstack/requests/compute/delete_instance_group.rb,
lib/fog/cloudstack/requests/compute/delete_network_device.rb,
lib/fog/cloudstack/requests/compute/delete_security_group.rb,
lib/fog/cloudstack/requests/compute/delete_vpn_connection.rb,
lib/fog/cloudstack/requests/compute/list_cisco_nexus_vsms.rb,
lib/fog/cloudstack/requests/compute/list_guest_os_mapping.rb,
lib/fog/cloudstack/requests/compute/list_private_gateways.rb,
lib/fog/cloudstack/requests/compute/list_project_accounts.rb,
lib/fog/cloudstack/requests/compute/list_resource_details.rb,
lib/fog/cloudstack/requests/compute/list_traffic_monitors.rb,
lib/fog/cloudstack/requests/compute/list_virtual_machines.rb,
lib/fog/cloudstack/requests/compute/list_volumes_on_filer.rb,
lib/fog/cloudstack/requests/compute/register_ssh_key_pair.rb,
lib/fog/cloudstack/requests/compute/release_dedicated_pod.rb,
lib/fog/cloudstack/requests/compute/revert_to_vm_snapshot.rb,
lib/fog/cloudstack/requests/compute/scale_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/start_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/update_instance_group.rb,
lib/fog/cloudstack/requests/compute/update_resource_count.rb,
lib/fog/cloudstack/requests/compute/update_resource_limit.rb,
lib/fog/cloudstack/requests/compute/update_vpn_connection.rb,
lib/fog/cloudstack/requests/compute/add_account_to_project.rb,
lib/fog/cloudstack/requests/compute/add_ldap_configuration.rb,
lib/fog/cloudstack/requests/compute/add_palo_alto_firewall.rb,
lib/fog/cloudstack/requests/compute/assign_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/configure_srx_firewall.rb,
lib/fog/cloudstack/requests/compute/create_private_gateway.rb,
lib/fog/cloudstack/requests/compute/create_snapshot_policy.rb,
lib/fog/cloudstack/requests/compute/create_volume_on_filer.rb,
lib/fog/cloudstack/requests/compute/delete_cisco_nexus_vsm.rb,
lib/fog/cloudstack/requests/compute/delete_private_gateway.rb,
lib/fog/cloudstack/requests/compute/delete_traffic_monitor.rb,
lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/enable_cisco_nexus_vsm.rb,
lib/fog/cloudstack/requests/compute/generate_usage_records.rb,
lib/fog/cloudstack/requests/compute/list_f5_load_balancers.rb,
lib/fog/cloudstack/requests/compute/list_network_acl_lists.rb,
lib/fog/cloudstack/requests/compute/list_network_offerings.rb,
lib/fog/cloudstack/requests/compute/list_physical_networks.rb,
lib/fog/cloudstack/requests/compute/list_service_offerings.rb,
lib/fog/cloudstack/requests/compute/list_snapshot_policies.rb,
lib/fog/cloudstack/requests/compute/list_storage_providers.rb,
lib/fog/cloudstack/requests/compute/query_async_job_result.rb,
lib/fog/cloudstack/requests/compute/reboot_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/release_dedicated_host.rb,
lib/fog/cloudstack/requests/compute/release_dedicated_zone.rb,
lib/fog/cloudstack/requests/compute/remove_resource_detail.rb,
lib/fog/cloudstack/requests/compute/update_iso_permissions.rb,
lib/fog/cloudstack/requests/compute/update_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/add_cisco_vnmc_resource.rb,
lib/fog/cloudstack/requests/compute/cancel_host_maintenance.rb,
lib/fog/cloudstack/requests/compute/create_network_acl_list.rb,
lib/fog/cloudstack/requests/compute/create_network_offering.rb,
lib/fog/cloudstack/requests/compute/create_physical_network.rb,
lib/fog/cloudstack/requests/compute/create_service_instance.rb,
lib/fog/cloudstack/requests/compute/create_service_offering.rb,
lib/fog/cloudstack/requests/compute/delete_f5_load_balancer.rb,
lib/fog/cloudstack/requests/compute/delete_network_acl_list.rb,
lib/fog/cloudstack/requests/compute/delete_network_offering.rb,
lib/fog/cloudstack/requests/compute/delete_physical_network.rb,
lib/fog/cloudstack/requests/compute/delete_service_offering.rb,
lib/fog/cloudstack/requests/compute/destroy_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/destroy_volume_on_filer.rb,
lib/fog/cloudstack/requests/compute/disable_cisco_nexus_vsm.rb,
lib/fog/cloudstack/requests/compute/disassociate_ip_address.rb,
lib/fog/cloudstack/requests/compute/expunge_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/list_dedicated_clusters.rb,
lib/fog/cloudstack/requests/compute/list_external_firewalls.rb,
lib/fog/cloudstack/requests/compute/list_nicira_nvp_devices.rb,
lib/fog/cloudstack/requests/compute/list_portable_ip_ranges.rb,
lib/fog/cloudstack/requests/compute/list_remote_access_vpns.rb,
lib/fog/cloudstack/requests/compute/migrate_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/recover_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/release_public_ip_range.rb,
lib/fog/cloudstack/requests/compute/remove_guest_os_mapping.rb,
lib/fog/cloudstack/requests/compute/restore_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/update_guest_os_mapping.rb,
lib/fog/cloudstack/requests/compute/update_network_acl_item.rb,
lib/fog/cloudstack/requests/compute/update_network_acl_list.rb,
lib/fog/cloudstack/requests/compute/update_network_offering.rb,
lib/fog/cloudstack/requests/compute/update_physical_network.rb,
lib/fog/cloudstack/requests/compute/update_service_offering.rb,
lib/fog/cloudstack/requests/compute/upgrade_router_template.rb,
lib/fog/cloudstack/requests/compute/create_auto_scale_policy.rb,
lib/fog/cloudstack/requests/compute/create_portable_ip_range.rb,
lib/fog/cloudstack/requests/compute/create_remote_access_vpn.rb,
lib/fog/cloudstack/requests/compute/dedicate_public_ip_range.rb,
lib/fog/cloudstack/requests/compute/delete_auto_scale_policy.rb,
lib/fog/cloudstack/requests/compute/delete_external_firewall.rb,
lib/fog/cloudstack/requests/compute/delete_nicira_nvp_device.rb,
lib/fog/cloudstack/requests/compute/delete_portable_ip_range.rb,
lib/fog/cloudstack/requests/compute/delete_remote_access_vpn.rb,
lib/fog/cloudstack/requests/compute/delete_snapshot_policies.rb,
lib/fog/cloudstack/requests/compute/find_hosts_for_migration.rb,
lib/fog/cloudstack/requests/compute/list_auto_scale_policies.rb,
lib/fog/cloudstack/requests/compute/list_deployment_planners.rb,
lib/fog/cloudstack/requests/compute/list_ip_forwarding_rules.rb,
lib/fog/cloudstack/requests/compute/list_ldap_configurations.rb,
lib/fog/cloudstack/requests/compute/list_load_balancer_rules.rb,
lib/fog/cloudstack/requests/compute/list_palo_alto_firewalls.rb,
lib/fog/cloudstack/requests/compute/list_project_invitations.rb,
lib/fog/cloudstack/requests/compute/list_public_ip_addresses.rb,
lib/fog/cloudstack/requests/compute/release_host_reservation.rb,
lib/fog/cloudstack/requests/compute/replace_network_acl_list.rb,
lib/fog/cloudstack/requests/compute/update_auto_scale_policy.rb,
lib/fog/cloudstack/requests/compute/update_remote_access_vpn.rb,
lib/fog/cloudstack/requests/compute/update_vm_affinity_group.rb,
lib/fog/cloudstack/requests/compute/add_big_switch_vns_device.rb,
lib/fog/cloudstack/requests/compute/change_service_for_router.rb,
lib/fog/cloudstack/requests/compute/create_ip_forwarding_rule.rb,
lib/fog/cloudstack/requests/compute/create_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/dedicate_guest_vlan_range.rb,
lib/fog/cloudstack/requests/compute/delete_ip_forwarding_rule.rb,
lib/fog/cloudstack/requests/compute/delete_ldap_configuration.rb,
lib/fog/cloudstack/requests/compute/delete_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/delete_palo_alto_firewall.rb,
lib/fog/cloudstack/requests/compute/delete_project_invitation.rb,
lib/fog/cloudstack/requests/compute/list_affinity_group_types.rb,
lib/fog/cloudstack/requests/compute/list_auto_scale_vm_groups.rb,
lib/fog/cloudstack/requests/compute/list_cisco_vnmc_resources.rb,
lib/fog/cloudstack/requests/compute/list_template_permissions.rb,
lib/fog/cloudstack/requests/compute/release_dedicated_cluster.rb,
lib/fog/cloudstack/requests/compute/update_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/update_project_invitation.rb,
lib/fog/cloudstack/requests/compute/upload_custom_certificate.rb,
lib/fog/cloudstack/requests/compute/add_external_load_balancer.rb,
lib/fog/cloudstack/requests/compute/add_nic_to_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/cancel_storage_maintenance.rb,
lib/fog/cloudstack/requests/compute/configure_f5_load_balancer.rb,
lib/fog/cloudstack/requests/compute/create_auto_scale_vm_group.rb,
lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_group.rb,
lib/fog/cloudstack/requests/compute/delete_cisco_vnmc_resource.rb,
lib/fog/cloudstack/requests/compute/enable_auto_scale_vm_group.rb,
lib/fog/cloudstack/requests/compute/enable_storage_maintenance.rb,
lib/fog/cloudstack/requests/compute/list_baremetal_pxe_servers.rb,
lib/fog/cloudstack/requests/compute/list_egress_firewall_rules.rb,
lib/fog/cloudstack/requests/compute/list_port_forwarding_rules.rb,
lib/fog/cloudstack/requests/compute/list_srx_firewall_networks.rb,
lib/fog/cloudstack/requests/compute/list_vpn_customer_gateways.rb,
lib/fog/cloudstack/requests/compute/update_auto_scale_vm_group.rb,
lib/fog/cloudstack/requests/compute/add_cisco_asa1000v_resource.rb,
lib/fog/cloudstack/requests/compute/add_netscaler_load_balancer.rb,
lib/fog/cloudstack/requests/compute/create_egress_firewall_rule.rb,
lib/fog/cloudstack/requests/compute/create_lb_stickiness_policy.rb,
lib/fog/cloudstack/requests/compute/create_port_forwarding_rule.rb,
lib/fog/cloudstack/requests/compute/create_vpn_customer_gateway.rb,
lib/fog/cloudstack/requests/compute/delete_account_from_project.rb,
lib/fog/cloudstack/requests/compute/delete_egress_firewall_rule.rb,
lib/fog/cloudstack/requests/compute/delete_lb_stickiness_policy.rb,
lib/fog/cloudstack/requests/compute/delete_port_forwarding_rule.rb,
lib/fog/cloudstack/requests/compute/delete_vpn_customer_gateway.rb,
lib/fog/cloudstack/requests/compute/disable_auto_scale_vm_group.rb,
lib/fog/cloudstack/requests/compute/list_auto_scale_vm_profiles.rb,
lib/fog/cloudstack/requests/compute/list_big_switch_vns_devices.rb,
lib/fog/cloudstack/requests/compute/list_lb_stickiness_policies.rb,
lib/fog/cloudstack/requests/compute/update_egress_firewall_rule.rb,
lib/fog/cloudstack/requests/compute/update_lb_stickiness_policy.rb,
lib/fog/cloudstack/requests/compute/update_port_forwarding_rule.rb,
lib/fog/cloudstack/requests/compute/update_template_permissions.rb,
lib/fog/cloudstack/requests/compute/update_vpn_customer_gateway.rb,
lib/fog/cloudstack/requests/compute/add_network_service_provider.rb,
lib/fog/cloudstack/requests/compute/add_open_daylight_controller.rb,
lib/fog/cloudstack/requests/compute/assign_cert_to_load_balancer.rb,
lib/fog/cloudstack/requests/compute/assign_to_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/change_service_for_system_vm.rb,
lib/fog/cloudstack/requests/compute/configure_palo_alto_firewall.rb,
lib/fog/cloudstack/requests/compute/create_auto_scale_vm_profile.rb,
lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_profile.rb,
lib/fog/cloudstack/requests/compute/delete_big_switch_vns_device.rb,
lib/fog/cloudstack/requests/compute/list_external_load_balancers.rb,
lib/fog/cloudstack/requests/compute/list_hypervisor_capabilities.rb,
lib/fog/cloudstack/requests/compute/list_virtual_router_elements.rb,
lib/fog/cloudstack/requests/compute/prepare_host_for_maintenance.rb,
lib/fog/cloudstack/requests/compute/revoke_security_group_egress.rb,
lib/fog/cloudstack/requests/compute/update_auto_scale_vm_profile.rb,
lib/fog/cloudstack/requests/compute/add_baremetal_pxe_ping_server.rb,
lib/fog/cloudstack/requests/compute/create_lb_health_check_policy.rb,
lib/fog/cloudstack/requests/compute/create_virtual_router_element.rb,
lib/fog/cloudstack/requests/compute/delete_external_load_balancer.rb,
lib/fog/cloudstack/requests/compute/delete_lb_health_check_policy.rb,
lib/fog/cloudstack/requests/compute/get_virtual_machine_user_data.rb,
lib/fog/cloudstack/requests/compute/list_cisco_asa1000v_resources.rb,
lib/fog/cloudstack/requests/compute/list_lb_health_check_policies.rb,
lib/fog/cloudstack/requests/compute/list_netscaler_load_balancers.rb,
lib/fog/cloudstack/requests/compute/list_secondary_staging_stores.rb,
lib/fog/cloudstack/requests/compute/list_storage_network_ip_range.rb,
lib/fog/cloudstack/requests/compute/mark_default_zone_for_account.rb,
lib/fog/cloudstack/requests/compute/revoke_security_group_ingress.rb,
lib/fog/cloudstack/requests/compute/update_lb_health_check_policy.rb,
lib/fog/cloudstack/requests/compute/associate_ucs_profile_to_blade.rb,
lib/fog/cloudstack/requests/compute/create_secondary_staging_store.rb,
lib/fog/cloudstack/requests/compute/delete_cisco_asa1000v_resource.rb,
lib/fog/cloudstack/requests/compute/delete_netscaler_load_balancer.rb,
lib/fog/cloudstack/requests/compute/delete_secondary_staging_store.rb,
lib/fog/cloudstack/requests/compute/list_f5_load_balancer_networks.rb,
lib/fog/cloudstack/requests/compute/list_network_isolation_methods.rb,
lib/fog/cloudstack/requests/compute/list_network_service_providers.rb,
lib/fog/cloudstack/requests/compute/list_open_daylight_controllers.rb,
lib/fog/cloudstack/requests/compute/list_traffic_type_implementors.rb,
lib/fog/cloudstack/requests/compute/remove_cert_from_load_balancer.rb,
lib/fog/cloudstack/requests/compute/remove_from_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/stop_internal_load_balancer_vm.rb,
lib/fog/cloudstack/requests/compute/update_hypervisor_capabilities.rb,
lib/fog/cloudstack/requests/compute/authorize_security_group_egress.rb,
lib/fog/cloudstack/requests/compute/create_storage_network_ip_range.rb,
lib/fog/cloudstack/requests/compute/delete_network_service_provider.rb,
lib/fog/cloudstack/requests/compute/delete_open_daylight_controller.rb,
lib/fog/cloudstack/requests/compute/delete_storage_network_ip_range.rb,
lib/fog/cloudstack/requests/compute/list_global_load_balancer_rules.rb,
lib/fog/cloudstack/requests/compute/list_internal_load_balancer_vms.rb,
lib/fog/cloudstack/requests/compute/list_nicira_nvp_device_networks.rb,
lib/fog/cloudstack/requests/compute/list_supported_network_services.rb,
lib/fog/cloudstack/requests/compute/remove_nic_from_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/start_internal_load_balancer_vm.rb,
lib/fog/cloudstack/requests/compute/update_network_service_provider.rb,
lib/fog/cloudstack/requests/compute/update_storage_network_ip_range.rb,
lib/fog/cloudstack/requests/compute/authorize_security_group_ingress.rb,
lib/fog/cloudstack/requests/compute/configure_virtual_router_element.rb,
lib/fog/cloudstack/requests/compute/create_global_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/delete_global_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/find_storage_pools_for_migration.rb,
lib/fog/cloudstack/requests/compute/list_dedicated_guest_vlan_ranges.rb,
lib/fog/cloudstack/requests/compute/list_palo_alto_firewall_networks.rb,
lib/fog/cloudstack/requests/compute/update_cloud_to_use_object_store.rb,
lib/fog/cloudstack/requests/compute/update_global_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/configure_netscaler_load_balancer.rb,
lib/fog/cloudstack/requests/compute/list_load_balancer_rule_instances.rb,
lib/fog/cloudstack/requests/compute/reset_ssh_key_for_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/change_service_for_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/release_dedicated_guest_vlan_range.rb,
lib/fog/cloudstack/requests/compute/reset_password_for_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/add_baremetal_pxe_kick_start_server.rb,
lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/disassociate_ucs_profile_from_blade.rb,
lib/fog/cloudstack/requests/compute/migrate_virtual_machine_with_volume.rb,
lib/fog/cloudstack/requests/compute/list_internal_load_balancer_elements.rb,
lib/fog/cloudstack/requests/compute/create_internal_load_balancer_element.rb,
lib/fog/cloudstack/requests/compute/list_netscaler_load_balancer_networks.rb,
lib/fog/cloudstack/requests/compute/remove_from_global_load_balancer_rule.rb,
lib/fog/cloudstack/requests/compute/update_default_nic_for_virtual_machine.rb,
lib/fog/cloudstack/requests/compute/configure_internal_load_balancer_element.rb,
lib/fog/cloudstack/requests/compute/instantiate_ucs_template_and_assocaciate_to_blade.rb
Instance Method Summary collapse
-
#acquire_ip_address(options = {}) ⇒ Object
Creates an account.
-
#activate_project(*args) ⇒ Object
Activates a project.
-
#add_account_to_project(*args) ⇒ Object
Adds acoount to a project.
-
#add_baremetal_dhcp(*args) ⇒ Object
adds a baremetal dhcp server.
-
#add_baremetal_host(*args) ⇒ Object
add a baremetal host.
-
#add_baremetal_pxe_kick_start_server(*args) ⇒ Object
add a baremetal pxe server.
-
#add_baremetal_pxe_ping_server(*args) ⇒ Object
add a baremetal ping pxe server.
-
#add_big_switch_vns_device(*args) ⇒ Object
Adds a BigSwitch VNS device.
-
#add_cisco_asa1000v_resource(*args) ⇒ Object
Adds a Cisco Asa 1000v appliance.
-
#add_cisco_vnmc_resource(*args) ⇒ Object
Adds a Cisco Vnmc Controller.
-
#add_cluster(*args) ⇒ Object
Adds a new cluster.
-
#add_external_firewall(*args) ⇒ Object
Adds an external firewall appliance.
-
#add_external_load_balancer(*args) ⇒ Object
Adds F5 external load balancer appliance.
-
#add_f5_load_balancer(*args) ⇒ Object
Adds a F5 BigIP load balancer device.
-
#add_guest_os(*args) ⇒ Object
Add a new guest OS type.
-
#add_guest_os_mapping(*args) ⇒ Object
Adds a guest OS name to hypervisor OS name mapping.
-
#add_host(*args) ⇒ Object
Adds a new host.
-
#add_image_store(*args) ⇒ Object
Adds backup image store.
-
#add_ip_to_nic(*args) ⇒ Object
Assigns secondary IP to NIC.
-
#add_ldap_configuration(*args) ⇒ Object
Add a new Ldap Configuration.
-
#add_netscaler_load_balancer(*args) ⇒ Object
Adds a netscaler load balancer device.
-
#add_network_device(*args) ⇒ Object
Adds a network device of one of the following types: ExternalDhcp, ExternalFirewall, ExternalLoadBalancer, PxeServer.
-
#add_network_service_provider(*args) ⇒ Object
Adds a network serviceProvider to a physical network.
-
#add_nic_to_virtual_machine(*args) ⇒ Object
Adds VM to specified network by creating a NIC.
-
#add_nicira_nvp_device(*args) ⇒ Object
Adds a Nicira NVP device.
-
#add_open_daylight_controller(*args) ⇒ Object
Adds an OpenDyalight controler.
-
#add_palo_alto_firewall(*args) ⇒ Object
Adds a Palo Alto firewall device.
-
#add_region(*args) ⇒ Object
Adds a Region.
-
#add_resource_detail(*args) ⇒ Object
Adds detail for the Resource.
-
#add_s3(*args) ⇒ Object
Adds S3.
-
#add_secondary_storage(*args) ⇒ Object
Adds secondary storage.
-
#add_srx_firewall(*args) ⇒ Object
Adds a SRX firewall device.
-
#add_stratosphere_ssp(*args) ⇒ Object
Adds stratosphere ssp server.
-
#add_swift(*args) ⇒ Object
Adds Swift.
-
#add_traffic_monitor(*args) ⇒ Object
Adds Traffic Monitor Host for Direct Network Usage.
-
#add_traffic_type(*args) ⇒ Object
Adds traffic type to a physical network.
-
#add_ucs_manager(*args) ⇒ Object
Adds a Ucs manager.
-
#add_vmware_dc(*args) ⇒ Object
Adds a VMware datacenter to specified zone.
-
#add_vpn_user(*args) ⇒ Object
Adds vpn users.
-
#archive_alerts(*args) ⇒ Object
Archive one or more alerts.
-
#archive_events(*args) ⇒ Object
Archive one or more events.
-
#assign_cert_to_load_balancer(*args) ⇒ Object
Assigns a certificate to a Load Balancer Rule.
-
#assign_to_global_load_balancer_rule(*args) ⇒ Object
Assign load balancer rule or list of load balancer rules to a global load balancer rules.
-
#assign_to_load_balancer_rule(*args) ⇒ Object
Assigns virtual machine or a list of virtual machines to a load balancer rule.
-
#assign_virtual_machine(*args) ⇒ Object
Change ownership of a VM from one account to another.
-
#associate_ip_address(*args) ⇒ Object
Acquires and associates a public IP to an account.
-
#associate_lun(iqn, name, options = {}) ⇒ Object
Associate a LUN with a guest IQN.
-
#associate_ucs_profile_to_blade(*args) ⇒ Object
associate a profile to a blade.
-
#attach_iso(*args) ⇒ Object
Attaches an ISO to a virtual machine.
-
#attach_volume(*args) ⇒ Object
Attaches a disk volume to a virtual machine.
-
#authorize_security_group_egress(*args) ⇒ Object
Authorizes a particular egress rule for this security group.
-
#authorize_security_group_ingress(*args) ⇒ Object
Authorizes a particular ingress rule for this security group.
-
#cancel_host_maintenance(*args) ⇒ Object
Cancels host maintenance.
-
#cancel_storage_maintenance(*args) ⇒ Object
Cancels maintenance for primary storage.
-
#change_service_for_router(*args) ⇒ Object
Upgrades domain router to a new service offering.
-
#change_service_for_system_vm(*args) ⇒ Object
Changes the service offering for a system vm (console proxy or secondary storage).
-
#change_service_for_virtual_machine(*args) ⇒ Object
Changes the service offering for a virtual machine.
-
#clean_vmreservations(*args) ⇒ Object
Cleanups VM reservations in the database.
-
#configure_f5_load_balancer(*args) ⇒ Object
configures a F5 load balancer device.
-
#configure_internal_load_balancer_element(*args) ⇒ Object
Configures an Internal Load Balancer element.
-
#configure_netscaler_load_balancer(*args) ⇒ Object
configures a netscaler load balancer device.
-
#configure_ovs_element(*args) ⇒ Object
Configures an ovs element.
-
#configure_palo_alto_firewall(*args) ⇒ Object
Configures a Palo Alto firewall device.
-
#configure_srx_firewall(*args) ⇒ Object
Configures a SRX firewall device.
-
#configure_virtual_router_element(*args) ⇒ Object
Configures a virtual router element.
-
#copy_iso(*args) ⇒ Object
Copies an iso from one zone to another.
-
#copy_template(*args) ⇒ Object
Copies a template from one zone to another.
-
#create_account(*args) ⇒ Object
Creates an account.
-
#create_affinity_group(*args) ⇒ Object
Creates an affinity/anti-affinity group.
-
#create_auto_scale_policy(*args) ⇒ Object
Creates an autoscale policy for a provision or deprovision action, the action is taken when the all the conditions evaluates to true for the specified duration.
-
#create_auto_scale_vm_group(*args) ⇒ Object
Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.
-
#create_auto_scale_vm_profile(*args) ⇒ Object
Creates a profile that contains information about the virtual machine which will be provisioned automatically by autoscale feature.
-
#create_condition(*args) ⇒ Object
Creates a condition.
-
#create_counter(*args) ⇒ Object
Adds metric counter.
-
#create_disk_offering(*args) ⇒ Object
Creates a disk offering.
-
#create_domain(*args) ⇒ Object
Creates a domain.
-
#create_egress_firewall_rule(*args) ⇒ Object
Creates a egress firewall rule for a given network.
-
#create_firewall_rule(*args) ⇒ Object
Creates a firewall rule for a given ip address.
-
#create_global_load_balancer_rule(*args) ⇒ Object
Creates a global load balancer rule.
-
#create_instance_group(*args) ⇒ Object
Creates a vm group.
-
#create_internal_load_balancer_element(*args) ⇒ Object
Create an Internal Load Balancer element.
-
#create_ip_forwarding_rule(*args) ⇒ Object
Creates an ip forwarding rule.
-
#create_lb_health_check_policy(*args) ⇒ Object
Creates a Load Balancer healthcheck policy .
-
#create_lb_stickiness_policy(*args) ⇒ Object
Creates a Load Balancer stickiness policy .
-
#create_load_balancer(*args) ⇒ Object
Creates a Load Balancer.
-
#create_load_balancer_rule(*args) ⇒ Object
Creates a load balancer rule.
-
#create_lun_on_filer(size, name, options = {}) ⇒ Object
Create a LUN from a pool.
-
#create_network(*args) ⇒ Object
Creates a network.
-
#create_network_acl(*args) ⇒ Object
Creates a ACL rule in the given network (the network has to belong to VPC).
-
#create_network_acl_list(*args) ⇒ Object
Creates a Network ACL for the given VPC.
-
#create_network_offering(*args) ⇒ Object
Creates a network offering.
-
#create_physical_network(*args) ⇒ Object
Creates a physical network.
-
#create_pod(*args) ⇒ Object
Creates a new Pod.
-
#create_pool(algorithm, name, options = {}) ⇒ Object
Create a pool.
-
#create_port_forwarding_rule(*args) ⇒ Object
Creates a port forwarding rule.
-
#create_portable_ip_range(*args) ⇒ Object
adds a range of portable public IP’s to a region.
-
#create_private_gateway(*args) ⇒ Object
Creates a private gateway.
-
#create_project(*args) ⇒ Object
Creates a project.
-
#create_remote_access_vpn(*args) ⇒ Object
Creates a l2tp/ipsec remote access vpn.
-
#create_secondary_staging_store(*args) ⇒ Object
create secondary staging store.
-
#create_security_group(*args) ⇒ Object
Creates a security group.
-
#create_service_instance(*args) ⇒ Object
Creates a system virtual-machine that implements network services.
-
#create_service_offering(*args) ⇒ Object
Creates a service offering.
-
#create_snapshot(*args) ⇒ Object
Creates an instant snapshot of a volume.
-
#create_snapshot_policy(*args) ⇒ Object
Creates a snapshot policy for the account.
-
#create_ssh_key_pair(*args) ⇒ Object
Create a new keypair and returns the private key.
-
#create_static_route(*args) ⇒ Object
Creates a static route.
-
#create_storage_network_ip_range(*args) ⇒ Object
Creates a Storage network IP range.
-
#create_storage_pool(*args) ⇒ Object
Creates a storage pool.
-
#create_tags(*args) ⇒ Object
Creates resource tag(s).
-
#create_template(*args) ⇒ Object
Creates a template of a virtual machine.
-
#create_user(*args) ⇒ Object
Creates a user for an account that already exists.
-
#create_virtual_router_element(*args) ⇒ Object
Create a virtual router element.
-
#create_vlan_ip_range(*args) ⇒ Object
Creates a VLAN IP range.
-
#create_vm_snapshot(*args) ⇒ Object
Creates snapshot for a vm.
-
#create_volume(*args) ⇒ Object
Creates a disk volume from a disk offering.
-
#create_volume_on_filer(password, ipaddress, size, volumename, username, poolname, aggregatename, options = {}) ⇒ Object
Create a volume.
-
#create_vpc(*args) ⇒ Object
Creates a VPC.
-
#create_vpcoffering(*args) ⇒ Object
Creates VPC offering.
-
#create_vpn_connection(*args) ⇒ Object
Create site to site vpn connection.
-
#create_vpn_customer_gateway(*args) ⇒ Object
Creates site to site vpn customer gateway.
-
#create_vpn_gateway(*args) ⇒ Object
Creates site to site vpn local gateway.
-
#create_zone(*args) ⇒ Object
Creates a Zone.
-
#dedicate_cluster(*args) ⇒ Object
Dedicate an existing cluster.
-
#dedicate_guest_vlan_range(*args) ⇒ Object
Dedicates a guest vlan range to an account.
-
#dedicate_host(*args) ⇒ Object
Dedicates a host.
-
#dedicate_pod(*args) ⇒ Object
Dedicates a Pod.
-
#dedicate_public_ip_range(*args) ⇒ Object
Dedicates a Public IP range to an account.
-
#dedicate_zone(*args) ⇒ Object
Dedicates a zones.
-
#delete_account(*args) ⇒ Object
Deletes a account, and all users associated with this account.
-
#delete_account_from_project(*args) ⇒ Object
Deletes account from the project.
-
#delete_affinity_group(*args) ⇒ Object
Deletes affinity group.
-
#delete_alerts(*args) ⇒ Object
Delete one or more alerts.
-
#delete_auto_scale_policy(*args) ⇒ Object
Deletes a autoscale policy.
-
#delete_auto_scale_vm_group(*args) ⇒ Object
Deletes a autoscale vm group.
-
#delete_auto_scale_vm_profile(*args) ⇒ Object
Deletes a autoscale vm profile.
-
#delete_big_switch_vns_device(*args) ⇒ Object
delete a bigswitch vns device.
-
#delete_cisco_asa1000v_resource(*args) ⇒ Object
Deletes a Cisco ASA 1000v appliance.
-
#delete_cisco_nexus_vsm(*args) ⇒ Object
delete a Cisco Nexus VSM device.
-
#delete_cisco_vnmc_resource(*args) ⇒ Object
Deletes a Cisco Vnmc controller.
-
#delete_cluster(*args) ⇒ Object
Deletes a cluster.
-
#delete_condition(*args) ⇒ Object
Removes a condition.
-
#delete_counter(*args) ⇒ Object
Deletes a counter.
-
#delete_disk_offering(*args) ⇒ Object
Updates a disk offering.
-
#delete_domain(*args) ⇒ Object
Deletes a specified domain.
-
#delete_egress_firewall_rule(*args) ⇒ Object
Deletes an ggress firewall rule.
-
#delete_events(*args) ⇒ Object
Delete one or more events.
-
#delete_external_firewall(*args) ⇒ Object
Deletes an external firewall appliance.
-
#delete_external_load_balancer(*args) ⇒ Object
Deletes a F5 external load balancer appliance added in a zone.
-
#delete_f5_load_balancer(*args) ⇒ Object
delete a F5 load balancer device.
-
#delete_firewall_rule(*args) ⇒ Object
Deletes a firewall rule.
-
#delete_global_load_balancer_rule(*args) ⇒ Object
Deletes a global load balancer rule.
-
#delete_host(*args) ⇒ Object
Deletes a host.
-
#delete_image_store(*args) ⇒ Object
Deletes an image store .
-
#delete_instance_group(*args) ⇒ Object
Deletes a vm group.
-
#delete_ip_forwarding_rule(*args) ⇒ Object
Deletes an ip forwarding rule.
-
#delete_iso(*args) ⇒ Object
Deletes an ISO file.
-
#delete_lb_health_check_policy(*args) ⇒ Object
Deletes a load balancer HealthCheck policy.
-
#delete_lb_stickiness_policy(*args) ⇒ Object
Deletes a LB stickiness policy.
-
#delete_ldap_configuration(*args) ⇒ Object
Remove an Ldap Configuration.
-
#delete_load_balancer(*args) ⇒ Object
Deletes a load balancer.
-
#delete_load_balancer_rule(*args) ⇒ Object
Deletes a load balancer rule.
-
#delete_netscaler_load_balancer(*args) ⇒ Object
delete a netscaler load balancer device.
-
#delete_network(*args) ⇒ Object
Deletes a network.
-
#delete_network_acl(*args) ⇒ Object
Deletes a Network ACL.
-
#delete_network_acl_list(*args) ⇒ Object
Deletes a Network ACL.
-
#delete_network_device(*args) ⇒ Object
Deletes network device.
-
#delete_network_offering(*args) ⇒ Object
Deletes a network offering.
-
#delete_network_service_provider(*args) ⇒ Object
Deletes a Network Service Provider.
-
#delete_nicira_nvp_device(*args) ⇒ Object
delete a nicira nvp device.
-
#delete_open_daylight_controller(*args) ⇒ Object
Removes an OpenDyalight controler.
-
#delete_palo_alto_firewall(*args) ⇒ Object
delete a Palo Alto firewall device.
-
#delete_physical_network(*args) ⇒ Object
Deletes a Physical Network.
-
#delete_pod(*args) ⇒ Object
Deletes a Pod.
-
#delete_pool(poolname, options = {}) ⇒ Object
Delete a pool.
-
#delete_port_forwarding_rule(*args) ⇒ Object
Deletes a port forwarding rule.
-
#delete_portable_ip_range(*args) ⇒ Object
deletes a range of portable public IP’s associated with a region.
-
#delete_private_gateway(*args) ⇒ Object
Deletes a Private gateway.
-
#delete_project(*args) ⇒ Object
Deletes a project.
-
#delete_project_invitation(*args) ⇒ Object
Accepts or declines project invitation.
-
#delete_remote_access_vpn(*args) ⇒ Object
Destroys a l2tp/ipsec remote access vpn.
-
#delete_secondary_staging_store(*args) ⇒ Object
Deletes a secondary staging store .
-
#delete_security_group(*args) ⇒ Object
Deletes security group.
-
#delete_service_offering(*args) ⇒ Object
Deletes a service offering.
-
#delete_snapshot(*args) ⇒ Object
Deletes a snapshot of a disk volume.
-
#delete_snapshot_policies(*args) ⇒ Object
Deletes snapshot policies for the account.
-
#delete_srx_firewall(*args) ⇒ Object
delete a SRX firewall device.
-
#delete_ssh_key_pair(*args) ⇒ Object
Deletes a keypair by name.
-
#delete_ssl_cert(*args) ⇒ Object
Delete a certificate to cloudstack.
-
#delete_static_route(*args) ⇒ Object
Deletes a static route.
-
#delete_storage_network_ip_range(*args) ⇒ Object
Deletes a storage network IP Range.
-
#delete_storage_pool(*args) ⇒ Object
Deletes a storage pool.
-
#delete_tags(*args) ⇒ Object
Deleting resource tag(s).
-
#delete_template(*args) ⇒ Object
Deletes a template from the system.
-
#delete_traffic_monitor(*args) ⇒ Object
Deletes an traffic monitor host.
-
#delete_traffic_type(*args) ⇒ Object
Deletes traffic type of a physical network.
-
#delete_ucs_manager(ucsmanagerid, options = {}) ⇒ Object
Delete a Ucs manager.
-
#delete_user(*args) ⇒ Object
Deletes a user for an account.
-
#delete_vlan_ip_range(*args) ⇒ Object
Creates a VLAN IP range.
-
#delete_vm_snapshot(*args) ⇒ Object
Deletes a vmsnapshot.
-
#delete_volume(*args) ⇒ Object
Deletes a detached disk volume.
-
#delete_vpc(*args) ⇒ Object
Deletes a VPC.
-
#delete_vpcoffering(*args) ⇒ Object
Deletes VPC offering.
-
#delete_vpn_connection(*args) ⇒ Object
Delete site to site vpn connection.
-
#delete_vpn_customer_gateway(*args) ⇒ Object
Delete site to site vpn customer gateway.
-
#delete_vpn_gateway(*args) ⇒ Object
Delete site to site vpn gateway.
-
#delete_zone(*args) ⇒ Object
Deletes a Zone.
-
#deploy_virtual_machine(*args) ⇒ Object
Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.
-
#destroy_lun_on_filer(path, options = {}) ⇒ Object
Destroy a LUN.
-
#destroy_router(*args) ⇒ Object
Destroys a router.
-
#destroy_system_vm(*args) ⇒ Object
Destroyes a system virtual machine.
-
#destroy_virtual_machine(*args) ⇒ Object
Destroys a virtual machine.
-
#destroy_volume_on_filer(ipaddress, aggregatename, volumename, options = {}) ⇒ Object
Destroy a Volume.
-
#detach_iso(*args) ⇒ Object
Detaches any ISO file (if any) currently attached to a virtual machine.
-
#detach_volume(*args) ⇒ Object
Detaches a disk volume from a virtual machine.
-
#disable_account(*args) ⇒ Object
Disables an account.
-
#disable_auto_scale_vm_group(*args) ⇒ Object
Disables an AutoScale Vm Group.
-
#disable_cisco_nexus_vsm(*args) ⇒ Object
disable a Cisco Nexus VSM device.
-
#disable_static_nat(*args) ⇒ Object
Disables static rule for given ip address.
-
#disable_user(*args) ⇒ Object
Disables a user account.
-
#disassociate_ip_address(*args) ⇒ Object
Disassociates an ip address from the account.
-
#disassociate_ucs_profile_from_blade(bladeid, options = {}) ⇒ Object
disassociate a profile from a blade.
-
#dissociate_lun(iqn, path, options = {}) ⇒ Object
Dissociate a LUN.
-
#enable_account(*args) ⇒ Object
Enables an account.
-
#enable_auto_scale_vm_group(*args) ⇒ Object
Enables an AutoScale Vm Group.
-
#enable_cisco_nexus_vsm(*args) ⇒ Object
Enable a Cisco Nexus VSM device.
-
#enable_static_nat(*args) ⇒ Object
Enables static nat for given ip address.
-
#enable_storage_maintenance(*args) ⇒ Object
Puts storage pool into maintenance state.
-
#enable_user(*args) ⇒ Object
Enables a user account.
-
#expunge_virtual_machine(*args) ⇒ Object
Expunge a virtual machine.
-
#extract_iso(*args) ⇒ Object
Extracts an ISO.
-
#extract_template(*args) ⇒ Object
Extracts a template.
-
#extract_volume(*args) ⇒ Object
Extracts volume.
-
#find_hosts_for_migration(*args) ⇒ Object
Find hosts suitable for migrating a virtual machine.
-
#find_storage_pools_for_migration(*args) ⇒ Object
Lists storage pools available for migration of a volume.
-
#generate_alert(*args) ⇒ Object
Generates an alert.
-
#generate_usage_records(*args) ⇒ Object
Generates usage records.
-
#get_api_limit(*args) ⇒ Object
Get API limit count for the caller.
-
#get_cloud_identifier(*args) ⇒ Object
Retrieves a cloud identifier.
-
#get_user(*args) ⇒ Object
Find user account by API key.
-
#get_virtual_machine_user_data(*args) ⇒ Object
Returns user data associated with the VM.
-
#get_vm_password(*args) ⇒ Object
Returns an encrypted password for the VM.
-
#import_ldap_users(*args) ⇒ Object
Import LDAP users.
-
#initialize(options = {}) ⇒ Real
constructor
A new instance of Real.
-
#instantiate_ucs_template_and_assocaciate_to_blade(bladeid, templatedn, ucsmanagerid, options = {}) ⇒ Object
create a profile of template and associate to a blade.
-
#ldap_config(options = {}) ⇒ Object
Configure the LDAP context for this site.
-
#ldap_create_account(*args) ⇒ Object
Creates an account from an LDAP user.
-
#ldap_remove(options = {}) ⇒ Object
Remove the LDAP context for this site.
-
#list_accounts(*args) ⇒ Object
Lists accounts and provides detailed account information for listed accounts.
-
#list_affinity_group_types(*args) ⇒ Object
Lists affinity group types available.
-
#list_affinity_groups(*args) ⇒ Object
Lists affinity groups.
-
#list_alerts(*args) ⇒ Object
Lists all alerts.
-
#list_apis(*args) ⇒ Object
lists all available apis on the server, provided by the Api Discovery plugin.
-
#list_async_jobs(*args) ⇒ Object
Lists all pending asynchronous jobs for the account.
-
#list_auto_scale_policies(*args) ⇒ Object
Lists autoscale policies.
-
#list_auto_scale_vm_groups(*args) ⇒ Object
Lists autoscale vm groups.
-
#list_auto_scale_vm_profiles(*args) ⇒ Object
Lists autoscale vm profiles.
-
#list_baremetal_dhcp(*args) ⇒ Object
list baremetal dhcp servers.
-
#list_baremetal_pxe_servers(*args) ⇒ Object
list baremetal pxe server.
-
#list_big_switch_vns_devices(*args) ⇒ Object
Lists BigSwitch Vns devices.
-
#list_capabilities(*args) ⇒ Object
Lists capabilities.
-
#list_capacity(*args) ⇒ Object
Lists all the system wide capacities.
-
#list_cisco_asa1000v_resources(*args) ⇒ Object
Lists Cisco ASA 1000v appliances.
-
#list_cisco_nexus_vsms(*args) ⇒ Object
Retrieves a Cisco Nexus 1000v Virtual Switch Manager device associated with a Cluster.
-
#list_cisco_vnmc_resources(*args) ⇒ Object
Lists Cisco VNMC controllers.
-
#list_clusters(*args) ⇒ Object
Lists clusters.
-
#list_conditions(*args) ⇒ Object
List Conditions for the specific user.
-
#list_configurations(*args) ⇒ Object
Lists all configurations.
-
#list_counters(*args) ⇒ Object
List the counters.
-
#list_dedicated_clusters(*args) ⇒ Object
Lists dedicated clusters.
-
#list_dedicated_guest_vlan_ranges(*args) ⇒ Object
Lists dedicated guest vlan ranges.
-
#list_dedicated_hosts(*args) ⇒ Object
Lists dedicated hosts.
-
#list_dedicated_pods(*args) ⇒ Object
Lists dedicated pods.
-
#list_dedicated_zones(*args) ⇒ Object
List dedicated zones.
-
#list_deployment_planners(*args) ⇒ Object
Lists all DeploymentPlanners available.
-
#list_disk_offerings(*args) ⇒ Object
Lists all available disk offerings.
-
#list_domain_children(*args) ⇒ Object
Lists all children domains belonging to a specified domain.
-
#list_domains(*args) ⇒ Object
Lists domains and provides detailed information for listed domains.
-
#list_egress_firewall_rules(*args) ⇒ Object
Lists all egress firewall rules for network id.
-
#list_event_types(*args) ⇒ Object
List Event Types.
-
#list_events(*args) ⇒ Object
A command to list events.
-
#list_external_firewalls(*args) ⇒ Object
List external firewall appliances.
-
#list_external_load_balancers(*args) ⇒ Object
Lists F5 external load balancer appliances added in a zone.
-
#list_f5_load_balancer_networks(*args) ⇒ Object
lists network that are using a F5 load balancer device.
-
#list_f5_load_balancers(*args) ⇒ Object
lists F5 load balancer devices.
-
#list_firewall_rules(*args) ⇒ Object
Lists all firewall rules for an IP address.
-
#list_global_load_balancer_rules(*args) ⇒ Object
Lists load balancer rules.
-
#list_guest_os_mapping(*args) ⇒ Object
Lists all available OS mappings for given hypervisor.
-
#list_hosts(*args) ⇒ Object
Lists hosts.
-
#list_hypervisor_capabilities(*args) ⇒ Object
Lists all hypervisor capabilities.
-
#list_hypervisors(*args) ⇒ Object
List hypervisors.
-
#list_image_stores(*args) ⇒ Object
Lists image stores.
-
#list_instance_groups(*args) ⇒ Object
Lists vm groups.
-
#list_internal_load_balancer_elements(*args) ⇒ Object
Lists all available Internal Load Balancer elements.
-
#list_internal_load_balancer_vms(*args) ⇒ Object
List internal LB VMs.
-
#list_ip_forwarding_rules(*args) ⇒ Object
List the ip forwarding rules.
-
#list_iso_permissions(*args) ⇒ Object
List iso visibility and all accounts that have permissions to view this iso.
-
#list_isos(*args) ⇒ Object
Lists all available ISO files.
-
#list_lb_health_check_policies(*args) ⇒ Object
Lists load balancer HealthCheck policies.
-
#list_lb_stickiness_policies(*args) ⇒ Object
Lists LBStickiness policies.
-
#list_ldap_configurations(*args) ⇒ Object
Lists all LDAP configurations.
-
#list_ldap_users(*args) ⇒ Object
Lists all LDAP Users.
-
#list_load_balancer_rule_instances(*args) ⇒ Object
List all virtual machine instances that are assigned to a load balancer rule.
-
#list_load_balancer_rules(*args) ⇒ Object
Lists load balancer rules.
-
#list_load_balancers(*args) ⇒ Object
Lists Load Balancers.
-
#list_luns_on_filer(poolname, options = {}) ⇒ Object
List LUN.
-
#list_netscaler_load_balancer_networks(*args) ⇒ Object
lists network that are using a netscaler load balancer device.
-
#list_netscaler_load_balancers(*args) ⇒ Object
lists netscaler load balancer devices.
-
#list_network_acl_lists(*args) ⇒ Object
Lists all network ACLs.
-
#list_network_acls(*args) ⇒ Object
Lists all network ACL items.
-
#list_network_device(*args) ⇒ Object
List network devices.
-
#list_network_isolation_methods(*args) ⇒ Object
Lists supported methods of network isolation.
-
#list_network_offerings(*args) ⇒ Object
Lists all available network offerings.
-
#list_network_service_providers(*args) ⇒ Object
Lists network serviceproviders for a given physical network.
-
#list_networks(*args) ⇒ Object
Lists all available networks.
-
#list_nicira_nvp_device_networks(*args) ⇒ Object
lists network that are using a nicira nvp device.
-
#list_nicira_nvp_devices(*args) ⇒ Object
Lists Nicira NVP devices.
-
#list_nics(*args) ⇒ Object
list the vm nics IP to NIC.
-
#list_open_daylight_controllers(*args) ⇒ Object
Lists OpenDyalight controllers.
-
#list_os_categories(*args) ⇒ Object
Lists all supported OS categories for this cloud.
-
#list_os_types(*args) ⇒ Object
Lists all supported OS types for this cloud.
-
#list_ovs_elements(*args) ⇒ Object
Lists all available ovs elements.
-
#list_palo_alto_firewall_networks(*args) ⇒ Object
lists network that are using Palo Alto firewall device.
-
#list_palo_alto_firewalls(*args) ⇒ Object
lists Palo Alto firewall devices in a physical network.
-
#list_physical_networks(*args) ⇒ Object
Lists physical networks.
-
#list_pods(*args) ⇒ Object
Lists all Pods.
-
#list_pools(options = {}) ⇒ Object
List Pool.
-
#list_port_forwarding_rules(*args) ⇒ Object
Lists all port forwarding rules for an IP address.
-
#list_portable_ip_ranges(*args) ⇒ Object
list portable IP ranges.
-
#list_private_gateways(*args) ⇒ Object
List private gateways.
-
#list_project_accounts(*args) ⇒ Object
Lists project’s accounts.
-
#list_project_invitations(*args) ⇒ Object
Lists projects and provides detailed information for listed projects.
-
#list_projects(*args) ⇒ Object
Lists projects and provides detailed information for listed projects.
-
#list_public_ip_addresses(*args) ⇒ Object
Lists all public ip addresses.
-
#list_regions(*args) ⇒ Object
Lists Regions.
-
#list_remote_access_vpns(*args) ⇒ Object
Lists remote access vpns.
-
#list_resource_details(*args) ⇒ Object
List resource detail(s).
-
#list_resource_limits(*args) ⇒ Object
Lists resource limits.
-
#list_routers(*args) ⇒ Object
List routers.
-
#list_s3s(*args) ⇒ Object
Lists S3s.
-
#list_secondary_staging_stores(*args) ⇒ Object
Lists secondary staging stores.
-
#list_security_groups(*args) ⇒ Object
Lists security groups.
-
#list_service_offerings(*args) ⇒ Object
Lists all available service offerings.
-
#list_snapshot_policies(*args) ⇒ Object
Lists snapshot policies.
-
#list_snapshots(*args) ⇒ Object
Lists all available snapshots for the account.
-
#list_srx_firewall_networks(*args) ⇒ Object
lists network that are using SRX firewall device.
-
#list_srx_firewalls(*args) ⇒ Object
lists SRX firewall devices in a physical network.
-
#list_ssh_key_pairs(*args) ⇒ Object
List registered keypairs.
-
#list_ssl_certs(*args) ⇒ Object
Lists SSL certificates.
-
#list_static_routes(*args) ⇒ Object
Lists all static routes.
-
#list_storage_network_ip_range(*args) ⇒ Object
List a storage network IP range.
-
#list_storage_pools(*args) ⇒ Object
Lists storage pools.
-
#list_storage_providers(*args) ⇒ Object
Lists storage providers.
-
#list_supported_network_services(*args) ⇒ Object
Lists all network services provided by CloudStack or for the given Provider.
-
#list_swifts(*args) ⇒ Object
List Swift.
-
#list_system_vms(*args) ⇒ Object
List system virtual machines.
-
#list_tags(*args) ⇒ Object
List resource tag(s).
-
#list_template_permissions(*args) ⇒ Object
List template visibility and all accounts that have permissions to view this template.
-
#list_templates(*args) ⇒ Object
List all public, private, and privileged templates.
-
#list_traffic_monitors(*args) ⇒ Object
List traffic monitor Hosts.
-
#list_traffic_type_implementors(*args) ⇒ Object
Lists implementors of implementor of a network traffic type or implementors of all network traffic types.
-
#list_traffic_types(*args) ⇒ Object
Lists traffic types of a given physical network.
-
#list_ucs_blades(*args) ⇒ Object
List ucs blades.
-
#list_ucs_managers(*args) ⇒ Object
List ucs manager.
-
#list_ucs_profiles(*args) ⇒ Object
List profile in ucs manager.
-
#list_ucs_templates(ucsmanagerid, options = {}) ⇒ Object
List templates in ucs manager.
-
#list_usage_records(*args) ⇒ Object
Lists usage records for accounts.
-
#list_usage_types(*args) ⇒ Object
List Usage Types.
-
#list_users(*args) ⇒ Object
Lists user accounts.
-
#list_virtual_machines(*args) ⇒ Object
List the virtual machines owned by the account.
-
#list_virtual_router_elements(*args) ⇒ Object
Lists all available virtual router elements.
-
#list_vlan_ip_ranges(*args) ⇒ Object
Lists all VLAN IP ranges.
-
#list_vm_snapshot(*args) ⇒ Object
List virtual machine snapshot by conditions.
-
#list_vmware_dcs(*args) ⇒ Object
Retrieves VMware DC(s) associated with a zone.
-
#list_volumes(*args) ⇒ Object
Lists all volumes.
-
#list_volumes_on_filer(poolname, options = {}) ⇒ Object
List Volumes.
-
#list_vpc_offerings(*args) ⇒ Object
Lists VPC offerings.
-
#list_vpcs(*args) ⇒ Object
Lists VPCs.
-
#list_vpn_connections(*args) ⇒ Object
Lists site to site vpn connection gateways.
-
#list_vpn_customer_gateways(*args) ⇒ Object
Lists site to site vpn customer gateways.
-
#list_vpn_gateways(*args) ⇒ Object
Lists site 2 site vpn gateways.
-
#list_vpn_users(*args) ⇒ Object
Lists vpn users.
-
#list_zones(*args) ⇒ Object
Lists zones.
-
#lock_account(*args) ⇒ Object
Locks an account.
-
#lock_user(*args) ⇒ Object
Locks a user account.
- #login(username, password, domain) ⇒ Object
-
#mark_default_zone_for_account(*args) ⇒ Object
Marks a default zone for this account.
-
#migrate_system_vm(*args) ⇒ Object
Attempts Migration of a system virtual machine to the host specified.
-
#migrate_virtual_machine(*args) ⇒ Object
Attempts Migration of a VM to a different host or Root volume of the vm to a different storage pool.
-
#migrate_virtual_machine_with_volume(*args) ⇒ Object
Attempts Migration of a VM with its volumes to a different host.
-
#migrate_volume(*args) ⇒ Object
Migrate volume.
-
#modify_pool(algorithm, poolname, options = {}) ⇒ Object
Modify pool.
-
#prepare_host_for_maintenance(*args) ⇒ Object
Prepares a host for maintenance.
-
#prepare_template(*args) ⇒ Object
load template into primary storage.
-
#query_async_job_result(*args) ⇒ Object
Retrieves the current status of asynchronous job.
-
#reboot_router(*args) ⇒ Object
Starts a router.
-
#reboot_system_vm(*args) ⇒ Object
Reboots a system VM.
-
#reboot_virtual_machine(*args) ⇒ Object
Reboots a virtual machine.
-
#reconnect_host(*args) ⇒ Object
Reconnects a host.
-
#recover_virtual_machine(*args) ⇒ Object
Recovers a virtual machine.
-
#refresh_ucs_blades(ucsmanagerid, options = {}) ⇒ Object
refresh ucs blades to sync with UCS manager.
-
#register_iso(*args) ⇒ Object
Registers an existing ISO into the CloudStack Cloud.
-
#register_ssh_key_pair(*args) ⇒ Object
Register a public key in a keypair under a certain name.
-
#register_template(*args) ⇒ Object
Registers an existing template into the CloudStack cloud.
-
#register_user_keys(*args) ⇒ Object
This command allows a user to register for the developer API, returning a secret key and an API key.
-
#release_dedicated_cluster(*args) ⇒ Object
Release the dedication for cluster.
-
#release_dedicated_guest_vlan_range(*args) ⇒ Object
Releases a dedicated guest vlan range to the system.
-
#release_dedicated_host(*args) ⇒ Object
Release the dedication for host.
-
#release_dedicated_pod(*args) ⇒ Object
Release the dedication for the pod.
-
#release_dedicated_zone(*args) ⇒ Object
Release dedication of zone.
-
#release_host_reservation(*args) ⇒ Object
Releases host reservation.
-
#release_public_ip_range(*args) ⇒ Object
Releases a Public IP range back to the system pool.
- #reload ⇒ Object
-
#remove_cert_from_load_balancer(*args) ⇒ Object
Removes a certificate from a Load Balancer Rule.
-
#remove_from_global_load_balancer_rule(*args) ⇒ Object
Removes a load balancer rule association with global load balancer rule.
-
#remove_from_load_balancer_rule(*args) ⇒ Object
Removes a virtual machine or a list of virtual machines from a load balancer rule.
-
#remove_guest_os(*args) ⇒ Object
Removes a Guest OS from listing.
-
#remove_guest_os_mapping(*args) ⇒ Object
Removes a Guest OS Mapping.
-
#remove_ip_from_nic(*args) ⇒ Object
Removes secondary IP from the NIC.
-
#remove_nic_from_virtual_machine(*args) ⇒ Object
Removes VM from specified network by deleting a NIC.
-
#remove_region(*args) ⇒ Object
Removes specified region.
-
#remove_resource_detail(*args) ⇒ Object
Removes detail for the Resource.
-
#remove_vmware_dc(*args) ⇒ Object
Remove a VMware datacenter from a zone.
-
#remove_vpn_user(*args) ⇒ Object
Removes vpn user.
-
#replace_network_acl_list(*args) ⇒ Object
Replaces ACL associated with a Network or private gateway.
- #request(params) ⇒ Object
-
#reset_api_limit(*args) ⇒ Object
Reset api count.
-
#reset_password_for_virtual_machine(*args) ⇒ Object
Resets the password for virtual machine.
-
#reset_ssh_key_for_virtual_machine(*args) ⇒ Object
Resets the SSH Key for virtual machine.
-
#reset_vpn_connection(*args) ⇒ Object
Reset site to site vpn connection.
-
#resize_volume(*args) ⇒ Object
Resizes a volume.
-
#restart_network(*args) ⇒ Object
Restarts the network; includes 1) restarting network elements - virtual routers, dhcp servers 2) reapplying all public ips 3) reapplying loadBalancing/portForwarding rules.
-
#restart_vpc(*args) ⇒ Object
Restarts a VPC.
-
#restore_virtual_machine(*args) ⇒ Object
Restore a VM to original template/ISO or new template/ISO.
-
#revert_snapshot(*args) ⇒ Object
revert a volume snapshot.
-
#revert_to_vm_snapshot(*args) ⇒ Object
Revert VM from a vmsnapshot.
-
#revoke_security_group_egress(*args) ⇒ Object
Deletes a particular egress rule from this security group.
-
#revoke_security_group_ingress(*args) ⇒ Object
Deletes a particular ingress rule from this security group.
-
#scale_system_vm(*args) ⇒ Object
Scale the service offering for a system vm (console proxy or secondary storage).
-
#scale_virtual_machine(*args) ⇒ Object
Scales the virtual machine to a new service offering.
-
#start_internal_load_balancer_vm(*args) ⇒ Object
Starts an existing internal lb vm.
-
#start_router(*args) ⇒ Object
Starts a router.
-
#start_system_vm(*args) ⇒ Object
Starts a system virtual machine.
-
#start_virtual_machine(*args) ⇒ Object
Starts a virtual machine.
-
#stop_internal_load_balancer_vm(*args) ⇒ Object
Stops an Internal LB vm.
-
#stop_router(*args) ⇒ Object
Stops a router.
-
#stop_system_vm(*args) ⇒ Object
Stops a system VM.
-
#stop_virtual_machine(*args) ⇒ Object
Stops a virtual machine.
-
#suspend_project(*args) ⇒ Object
Suspends a project.
-
#update_account(*args) ⇒ Object
Updates account information for the authenticated user.
-
#update_auto_scale_policy(*args) ⇒ Object
Updates an existing autoscale policy.
-
#update_auto_scale_vm_group(*args) ⇒ Object
Updates an existing autoscale vm group.
-
#update_auto_scale_vm_profile(*args) ⇒ Object
Updates an existing autoscale vm profile.
-
#update_cloud_to_use_object_store(*args) ⇒ Object
Migrate current NFS secondary storages to use object store.
-
#update_cluster(*args) ⇒ Object
Updates an existing cluster.
-
#update_configuration(*args) ⇒ Object
Updates a configuration.
-
#update_default_nic_for_virtual_machine(*args) ⇒ Object
Changes the default NIC on a VM.
-
#update_disk_offering(*args) ⇒ Object
Updates a disk offering.
-
#update_domain(*args) ⇒ Object
Updates a domain with a new name.
-
#update_egress_firewall_rule(*args) ⇒ Object
Updates egress firewall rule .
-
#update_firewall_rule(*args) ⇒ Object
Updates firewall rule .
-
#update_global_load_balancer_rule(*args) ⇒ Object
update global load balancer rules.
-
#update_guest_os(*args) ⇒ Object
Updates the information about Guest OS.
-
#update_guest_os_mapping(*args) ⇒ Object
Updates the information about Guest OS to Hypervisor specific name mapping.
-
#update_host(*args) ⇒ Object
Updates a host.
-
#update_host_password(*args) ⇒ Object
Update password of a host/pool on management server.
-
#update_hypervisor_capabilities(*args) ⇒ Object
Updates a hypervisor capabilities.
-
#update_instance_group(*args) ⇒ Object
Updates a vm group.
-
#update_ip_address(*args) ⇒ Object
Updates an ip address.
-
#update_iso(*args) ⇒ Object
Updates an ISO file.
-
#update_iso_permissions(*args) ⇒ Object
Updates iso permissions.
-
#update_lb_health_check_policy(*args) ⇒ Object
Updates LB HealthCheck policy.
-
#update_lb_stickiness_policy(*args) ⇒ Object
Updates LB Stickiness policy.
-
#update_load_balancer(*args) ⇒ Object
Updates a Load Balancer.
-
#update_load_balancer_rule(*args) ⇒ Object
Updates load balancer.
-
#update_network(*args) ⇒ Object
Updates a network.
-
#update_network_acl_item(*args) ⇒ Object
Updates ACL Item with specified Id.
-
#update_network_acl_list(*args) ⇒ Object
Updates Network ACL list.
-
#update_network_offering(*args) ⇒ Object
Updates a network offering.
-
#update_network_service_provider(*args) ⇒ Object
Updates a network serviceProvider of a physical network.
-
#update_physical_network(*args) ⇒ Object
Updates a physical network.
-
#update_pod(*args) ⇒ Object
Updates a Pod.
-
#update_port_forwarding_rule(*args) ⇒ Object
Updates a port forwarding rule.
-
#update_project(*args) ⇒ Object
Updates a project.
-
#update_project_invitation(*args) ⇒ Object
Accepts or declines project invitation.
-
#update_region(*args) ⇒ Object
Updates a region.
-
#update_remote_access_vpn(*args) ⇒ Object
Updates remote access vpn.
-
#update_resource_count(*args) ⇒ Object
Recalculate and update resource count for an account or domain.
-
#update_resource_limit(*args) ⇒ Object
Updates resource limits for an account or domain.
-
#update_service_offering(*args) ⇒ Object
Updates a service offering.
-
#update_storage_network_ip_range(*args) ⇒ Object
Update a Storage network IP range, only allowed when no IPs in this range have been allocated.
-
#update_storage_pool(*args) ⇒ Object
Updates a storage pool.
-
#update_template(*args) ⇒ Object
Updates attributes of a template.
-
#update_template_permissions(*args) ⇒ Object
Updates a template visibility permissions.
-
#update_traffic_type(*args) ⇒ Object
Updates traffic type of a physical network.
-
#update_user(*args) ⇒ Object
Updates a user account.
-
#update_virtual_machine(*args) ⇒ Object
Updates properties of a virtual machine.
-
#update_vm_affinity_group(*args) ⇒ Object
Updates the affinity/anti-affinity group associations of a virtual machine.
-
#update_volume(*args) ⇒ Object
Updates the volume.
-
#update_vpc(*args) ⇒ Object
Updates a VPC.
-
#update_vpcoffering(*args) ⇒ Object
Updates VPC offering.
-
#update_vpn_connection(*args) ⇒ Object
Updates site to site vpn connection.
-
#update_vpn_customer_gateway(*args) ⇒ Object
Update site to site vpn customer gateway.
-
#update_vpn_gateway(*args) ⇒ Object
Updates site to site vpn local gateway.
-
#update_zone(*args) ⇒ Object
Updates a Zone.
-
#upgrade_router_template(*args) ⇒ Object
Upgrades router to use newer template.
-
#upload_custom_certificate(*args) ⇒ Object
Uploads a custom certificate for the console proxy VMs to use for SSL.
-
#upload_ssl_cert(*args) ⇒ Object
Upload a certificate to cloudstack.
-
#upload_volume(*args) ⇒ Object
Uploads a data disk.
Constructor Details
#initialize(options = {}) ⇒ Real
Returns a new instance of Real.
544 545 546 547 548 549 550 551 552 553 554 555 |
# File 'lib/fog/cloudstack/compute.rb', line 544 def initialize(={}) @cloudstack_api_key = [:cloudstack_api_key] @cloudstack_secret_access_key = [:cloudstack_secret_access_key] @cloudstack_session_id = [:cloudstack_session_id] @cloudstack_session_key = [:cloudstack_session_key] @cloudstack_project_id = [:cloudstack_project_id] @host = [:cloudstack_host] @path = [:cloudstack_path] || '/client/api' @port = [:cloudstack_port] || 443 @scheme = [:cloudstack_scheme] || 'https' @connection = Fog::XML::Connection.new("#{@scheme}://#{@host}:#{@port}#{@path}", [:cloudstack_persistent], {:ssl_verify_peer => false}) end |
Instance Method Details
#acquire_ip_address(options = {}) ⇒ Object
Creates an account.
8 9 10 11 12 13 14 |
# File 'lib/fog/cloudstack/requests/compute/acquire_ip_address.rb', line 8 def acquire_ip_address(={}) .merge!( 'command' => 'associateIpAddress' ) request() end |
#activate_project(*args) ⇒ Object
Activates a project
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/activate_project.rb', line 9 def activate_project(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'activateProject') else .merge!('command' => 'activateProject', 'id' => args[0]) end request() end |
#add_account_to_project(*args) ⇒ Object
Adds acoount to a project
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/add_account_to_project.rb', line 9 def add_account_to_project(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addAccountToProject') else .merge!('command' => 'addAccountToProject', 'projectid' => args[0]) end request() end |
#add_baremetal_dhcp(*args) ⇒ Object
adds a baremetal dhcp server
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/add_baremetal_dhcp.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addBaremetalDhcp') else .merge!('command' => 'addBaremetalDhcp', 'dhcpservertype' => args[0], 'username' => args[1], 'url' => args[2], 'physicalnetworkid' => args[3], 'password' => args[4]) end request() end |
#add_baremetal_host(*args) ⇒ Object
add a baremetal host
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/fog/cloudstack/requests/compute/add_baremetal_host.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addBaremetalHost') else .merge!('command' => 'addBaremetalHost', 'podid' => args[0], 'url' => args[1], 'hypervisor' => args[2], 'username' => args[3], 'zoneid' => args[4], 'password' => args[5]) end request() end |
#add_baremetal_pxe_kick_start_server(*args) ⇒ Object
add a baremetal pxe server
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/fog/cloudstack/requests/compute/add_baremetal_pxe_kick_start_server.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addBaremetalPxeKickStartServer') else .merge!('command' => 'addBaremetalPxeKickStartServer', 'url' => args[0], 'username' => args[1], 'tftpdir' => args[2], 'pxeservertype' => args[3], 'password' => args[4], 'physicalnetworkid' => args[5]) end request() end |
#add_baremetal_pxe_ping_server(*args) ⇒ Object
add a baremetal ping pxe server
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/fog/cloudstack/requests/compute/add_baremetal_pxe_ping_server.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addBaremetalPxePingServer') else .merge!('command' => 'addBaremetalPxePingServer', 'physicalnetworkid' => args[0], 'pxeservertype' => args[1], 'pingstorageserverip' => args[2], 'url' => args[3], 'tftpdir' => args[4], 'password' => args[5], 'pingdir' => args[6], 'username' => args[7]) end request() end |
#add_big_switch_vns_device(*args) ⇒ Object
Adds a BigSwitch VNS device
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/add_big_switch_vns_device.rb', line 9 def add_big_switch_vns_device(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addBigSwitchVnsDevice') else .merge!('command' => 'addBigSwitchVnsDevice', 'hostname' => args[0], 'physicalnetworkid' => args[1]) end request() end |
#add_cisco_asa1000v_resource(*args) ⇒ Object
Adds a Cisco Asa 1000v appliance
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/add_cisco_asa1000v_resource.rb', line 9 def add_cisco_asa1000v_resource(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addCiscoAsa1000vResource') else .merge!('command' => 'addCiscoAsa1000vResource', 'hostname' => args[0], 'physicalnetworkid' => args[1], 'insideportprofile' => args[2], 'clusterid' => args[3]) end request() end |
#add_cisco_vnmc_resource(*args) ⇒ Object
Adds a Cisco Vnmc Controller
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/add_cisco_vnmc_resource.rb', line 9 def add_cisco_vnmc_resource(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addCiscoVnmcResource') else .merge!('command' => 'addCiscoVnmcResource', 'username' => args[0], 'hostname' => args[1], 'password' => args[2], 'physicalnetworkid' => args[3]) end request() end |
#add_cluster(*args) ⇒ Object
Adds a new cluster
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/add_cluster.rb', line 9 def add_cluster(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addCluster') else .merge!('command' => 'addCluster', 'clustertype' => args[0], 'hypervisor' => args[1], 'clustername' => args[2], 'podid' => args[3], 'zoneid' => args[4]) end request() end |
#add_external_firewall(*args) ⇒ Object
Adds an external firewall appliance
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/add_external_firewall.rb', line 9 def add_external_firewall(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addExternalFirewall') else .merge!('command' => 'addExternalFirewall', 'url' => args[0], 'username' => args[1], 'password' => args[2], 'zoneid' => args[3]) end request() end |
#add_external_load_balancer(*args) ⇒ Object
Adds F5 external load balancer appliance.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/add_external_load_balancer.rb', line 9 def add_external_load_balancer(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addExternalLoadBalancer') else .merge!('command' => 'addExternalLoadBalancer', 'zoneid' => args[0], 'url' => args[1], 'password' => args[2], 'username' => args[3]) end request() end |
#add_f5_load_balancer(*args) ⇒ Object
Adds a F5 BigIP load balancer device
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/add_f5_load_balancer.rb', line 9 def add_f5_load_balancer(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addF5LoadBalancer') else .merge!('command' => 'addF5LoadBalancer', 'password' => args[0], 'physicalnetworkid' => args[1], 'networkdevicetype' => args[2], 'username' => args[3], 'url' => args[4]) end request() end |
#add_guest_os(*args) ⇒ Object
Add a new guest OS type
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/add_guest_os.rb', line 9 def add_guest_os(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addGuestOs') else .merge!('command' => 'addGuestOs', 'osdisplayname' => args[0], 'oscategoryid' => args[1]) end request() end |
#add_guest_os_mapping(*args) ⇒ Object
Adds a guest OS name to hypervisor OS name mapping
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/add_guest_os_mapping.rb', line 9 def add_guest_os_mapping(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addGuestOsMapping') else .merge!('command' => 'addGuestOsMapping', 'hypervisor' => args[0], 'osnameforhypervisor' => args[1], 'hypervisorversion' => args[2]) end request() end |
#add_host(*args) ⇒ Object
Adds a new host.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/fog/cloudstack/requests/compute/add_host.rb', line 9 def add_host(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addHost') else .merge!('command' => 'addHost', 'url' => args[0], 'zoneid' => args[1], 'username' => args[2], 'password' => args[3], 'hypervisor' => args[4], 'podid' => args[5]) end request() end |
#add_image_store(*args) ⇒ Object
Adds backup image store.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/add_image_store.rb', line 9 def add_image_store(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addImageStore') else .merge!('command' => 'addImageStore', 'provider' => args[0]) end request() end |
#add_ip_to_nic(*args) ⇒ Object
Assigns secondary IP to NIC
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/add_ip_to_nic.rb', line 9 def add_ip_to_nic(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addIpToNic') else .merge!('command' => 'addIpToNic', 'nicid' => args[0]) end request() end |
#add_ldap_configuration(*args) ⇒ Object
Add a new Ldap Configuration
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/add_ldap_configuration.rb', line 9 def add_ldap_configuration(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addLdapConfiguration') else .merge!('command' => 'addLdapConfiguration', 'port' => args[0], 'hostname' => args[1]) end request() end |
#add_netscaler_load_balancer(*args) ⇒ Object
Adds a netscaler load balancer device
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/add_netscaler_load_balancer.rb', line 9 def add_netscaler_load_balancer(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addNetscalerLoadBalancer') else .merge!('command' => 'addNetscalerLoadBalancer', 'username' => args[0], 'networkdevicetype' => args[1], 'password' => args[2], 'physicalnetworkid' => args[3], 'url' => args[4]) end request() end |
#add_network_device(*args) ⇒ Object
Adds a network device of one of the following types: ExternalDhcp, ExternalFirewall, ExternalLoadBalancer, PxeServer
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/add_network_device.rb', line 9 def add_network_device(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addNetworkDevice') else .merge!('command' => 'addNetworkDevice') end request() end |
#add_network_service_provider(*args) ⇒ Object
Adds a network serviceProvider to a physical network
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/add_network_service_provider.rb', line 9 def add_network_service_provider(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addNetworkServiceProvider') else .merge!('command' => 'addNetworkServiceProvider', 'name' => args[0], 'physicalnetworkid' => args[1]) end request() end |
#add_nic_to_virtual_machine(*args) ⇒ Object
Adds VM to specified network by creating a NIC
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/add_nic_to_virtual_machine.rb', line 9 def add_nic_to_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addNicToVirtualMachine') else .merge!('command' => 'addNicToVirtualMachine', 'virtualmachineid' => args[0], 'networkid' => args[1]) end request() end |
#add_nicira_nvp_device(*args) ⇒ Object
Adds a Nicira NVP device
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/add_nicira_nvp_device.rb', line 9 def add_nicira_nvp_device(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addNiciraNvpDevice') else .merge!('command' => 'addNiciraNvpDevice', 'physicalnetworkid' => args[0], 'transportzoneuuid' => args[1], 'username' => args[2], 'password' => args[3], 'hostname' => args[4]) end request() end |
#add_open_daylight_controller(*args) ⇒ Object
Adds an OpenDyalight controler
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/add_open_daylight_controller.rb', line 9 def add_open_daylight_controller(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addOpenDaylightController') else .merge!('command' => 'addOpenDaylightController', 'physicalnetworkid' => args[0], 'url' => args[1], 'password' => args[2], 'username' => args[3]) end request() end |
#add_palo_alto_firewall(*args) ⇒ Object
Adds a Palo Alto firewall device
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/add_palo_alto_firewall.rb', line 9 def add_palo_alto_firewall(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addPaloAltoFirewall') else .merge!('command' => 'addPaloAltoFirewall', 'username' => args[0], 'networkdevicetype' => args[1], 'password' => args[2], 'physicalnetworkid' => args[3], 'url' => args[4]) end request() end |
#add_region(*args) ⇒ Object
Adds a Region
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/add_region.rb', line 9 def add_region(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addRegion') else .merge!('command' => 'addRegion', 'id' => args[0], 'name' => args[1], 'endpoint' => args[2]) end request() end |
#add_resource_detail(*args) ⇒ Object
Adds detail for the Resource.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/add_resource_detail.rb', line 9 def add_resource_detail(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addResourceDetail') else .merge!('command' => 'addResourceDetail', 'resourcetype' => args[0], 'details' => args[1], 'resourceid' => args[2]) end request() end |
#add_s3(*args) ⇒ Object
Adds S3
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/add_s3.rb', line 9 def add_s3(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addS3') else .merge!('command' => 'addS3', 'accesskey' => args[0], 'bucket' => args[1], 'secretkey' => args[2]) end request() end |
#add_secondary_storage(*args) ⇒ Object
Adds secondary storage.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/add_secondary_storage.rb', line 9 def add_secondary_storage(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addSecondaryStorage') else .merge!('command' => 'addSecondaryStorage', 'url' => args[0]) end request() end |
#add_srx_firewall(*args) ⇒ Object
Adds a SRX firewall device
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/add_srx_firewall.rb', line 9 def add_srx_firewall(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addSrxFirewall') else .merge!('command' => 'addSrxFirewall', 'username' => args[0], 'networkdevicetype' => args[1], 'physicalnetworkid' => args[2], 'password' => args[3], 'url' => args[4]) end request() end |
#add_stratosphere_ssp(*args) ⇒ Object
Adds stratosphere ssp server
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/add_stratosphere_ssp.rb', line 9 def add_stratosphere_ssp(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addStratosphereSsp') else .merge!('command' => 'addStratosphereSsp', 'url' => args[0], 'zoneid' => args[1], 'name' => args[2]) end request() end |
#add_swift(*args) ⇒ Object
Adds Swift.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/add_swift.rb', line 9 def add_swift(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addSwift') else .merge!('command' => 'addSwift', 'url' => args[0]) end request() end |
#add_traffic_monitor(*args) ⇒ Object
Adds Traffic Monitor Host for Direct Network Usage
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/add_traffic_monitor.rb', line 9 def add_traffic_monitor(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addTrafficMonitor') else .merge!('command' => 'addTrafficMonitor', 'zoneid' => args[0], 'url' => args[1]) end request() end |
#add_traffic_type(*args) ⇒ Object
Adds traffic type to a physical network
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/add_traffic_type.rb', line 9 def add_traffic_type(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addTrafficType') else .merge!('command' => 'addTrafficType', 'traffictype' => args[0], 'physicalnetworkid' => args[1]) end request() end |
#add_ucs_manager(*args) ⇒ Object
Adds a Ucs manager
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/add_ucs_manager.rb', line 9 def add_ucs_manager(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addUcsManager') else .merge!('command' => 'addUcsManager', 'url' => args[0], 'password' => args[1], 'username' => args[2], 'zoneid' => args[3]) end request() end |
#add_vmware_dc(*args) ⇒ Object
Adds a VMware datacenter to specified zone
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/add_vmware_dc.rb', line 9 def add_vmware_dc(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addVmwareDc') else .merge!('command' => 'addVmwareDc', 'zoneid' => args[0], 'vcenter' => args[1], 'name' => args[2]) end request() end |
#add_vpn_user(*args) ⇒ Object
Adds vpn users
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/add_vpn_user.rb', line 9 def add_vpn_user(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'addVpnUser') else .merge!('command' => 'addVpnUser', 'password' => args[0], 'username' => args[1]) end request() end |
#archive_alerts(*args) ⇒ Object
Archive one or more alerts.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/archive_alerts.rb', line 9 def archive_alerts(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'archiveAlerts') else .merge!('command' => 'archiveAlerts') end request() end |
#archive_events(*args) ⇒ Object
Archive one or more events.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/archive_events.rb', line 9 def archive_events(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'archiveEvents') else .merge!('command' => 'archiveEvents') end request() end |
#assign_cert_to_load_balancer(*args) ⇒ Object
Assigns a certificate to a Load Balancer Rule
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/assign_cert_to_load_balancer.rb', line 9 def assign_cert_to_load_balancer(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'assignCertToLoadBalancer') else .merge!('command' => 'assignCertToLoadBalancer', 'lbruleid' => args[0], 'certid' => args[1]) end request() end |
#assign_to_global_load_balancer_rule(*args) ⇒ Object
Assign load balancer rule or list of load balancer rules to a global load balancer rules.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb', line 9 def assign_to_global_load_balancer_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'assignToGlobalLoadBalancerRule') else .merge!('command' => 'assignToGlobalLoadBalancerRule', 'id' => args[0], 'loadbalancerrulelist' => args[1]) end request() end |
#assign_to_load_balancer_rule(*args) ⇒ Object
Assigns virtual machine or a list of virtual machines to a load balancer rule.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/assign_to_load_balancer_rule.rb', line 9 def assign_to_load_balancer_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'assignToLoadBalancerRule') else .merge!('command' => 'assignToLoadBalancerRule', 'id' => args[0]) end request() end |
#assign_virtual_machine(*args) ⇒ Object
Change ownership of a VM from one account to another. This API is available for Basic zones with security groups and Advanced zones with guest networks. A root administrator can reassign a VM from any account to any other account in any domain. A domain administrator can reassign a VM to any account in the same domain.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/assign_virtual_machine.rb', line 9 def assign_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'assignVirtualMachine') else .merge!('command' => 'assignVirtualMachine', 'account' => args[0], 'virtualmachineid' => args[1], 'domainid' => args[2]) end request() end |
#associate_ip_address(*args) ⇒ Object
Acquires and associates a public IP to an account.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/associate_ip_address.rb', line 9 def associate_ip_address(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'associateIpAddress') else .merge!('command' => 'associateIpAddress') end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#associate_lun(iqn, name, options = {}) ⇒ Object
Associate a LUN with a guest IQN
9 10 11 12 13 14 15 16 |
# File 'lib/fog/cloudstack/requests/compute/associate_lun.rb', line 9 def associate_lun(iqn, name, ={}) .merge!( 'command' => 'associateLun', 'iqn' => iqn, 'name' => name ) request() end |
#associate_ucs_profile_to_blade(*args) ⇒ Object
associate a profile to a blade
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/associate_ucs_profile_to_blade.rb', line 9 def associate_ucs_profile_to_blade(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'associateUcsProfileToBlade') else .merge!('command' => 'associateUcsProfileToBlade', 'profiledn' => args[0], 'ucsmanagerid' => args[1], 'bladeid' => args[2]) end request() end |
#attach_iso(*args) ⇒ Object
Attaches an ISO to a virtual machine.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/attach_iso.rb', line 9 def attach_iso(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'attachIso') else .merge!('command' => 'attachIso', 'virtualmachineid' => args[0], 'id' => args[1]) end request() end |
#attach_volume(*args) ⇒ Object
Attaches a disk volume to a virtual machine.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/attach_volume.rb', line 9 def attach_volume(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'attachVolume') else .merge!('command' => 'attachVolume', 'virtualmachineid' => args[0], 'id' => args[1]) end request() end |
#authorize_security_group_egress(*args) ⇒ Object
Authorizes a particular egress rule for this security group
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/authorize_security_group_egress.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'authorizeSecurityGroupEgress') else .merge!('command' => 'authorizeSecurityGroupEgress') end request() end |
#authorize_security_group_ingress(*args) ⇒ Object
Authorizes a particular ingress rule for this security group
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/authorize_security_group_ingress.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'authorizeSecurityGroupIngress') else .merge!('command' => 'authorizeSecurityGroupIngress') end request() end |
#cancel_host_maintenance(*args) ⇒ Object
Cancels host maintenance.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/cancel_host_maintenance.rb', line 9 def cancel_host_maintenance(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'cancelHostMaintenance') else .merge!('command' => 'cancelHostMaintenance', 'id' => args[0]) end request() end |
#cancel_storage_maintenance(*args) ⇒ Object
Cancels maintenance for primary storage
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/cancel_storage_maintenance.rb', line 9 def cancel_storage_maintenance(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'cancelStorageMaintenance') else .merge!('command' => 'cancelStorageMaintenance', 'id' => args[0]) end request() end |
#change_service_for_router(*args) ⇒ Object
Upgrades domain router to a new service offering
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/change_service_for_router.rb', line 9 def change_service_for_router(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'changeServiceForRouter') else .merge!('command' => 'changeServiceForRouter', 'serviceofferingid' => args[0], 'id' => args[1]) end request() end |
#change_service_for_system_vm(*args) ⇒ Object
Changes the service offering for a system vm (console proxy or secondary storage). The system vm must be in a “Stopped” state for this command to take effect.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/change_service_for_system_vm.rb', line 9 def change_service_for_system_vm(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'changeServiceForSystemVm') else .merge!('command' => 'changeServiceForSystemVm', 'id' => args[0], 'serviceofferingid' => args[1]) end request() end |
#change_service_for_virtual_machine(*args) ⇒ Object
Changes the service offering for a virtual machine. The virtual machine must be in a “Stopped” state for this command to take effect.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/change_service_for_virtual_machine.rb', line 9 def change_service_for_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'changeServiceForVirtualMachine') else .merge!('command' => 'changeServiceForVirtualMachine', 'serviceofferingid' => args[0], 'id' => args[1]) end request() end |
#clean_vmreservations(*args) ⇒ Object
Cleanups VM reservations in the database.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/clean_vmreservations.rb', line 9 def clean_vmreservations(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'cleanVMReservations') else .merge!('command' => 'cleanVMReservations') end request() end |
#configure_f5_load_balancer(*args) ⇒ Object
configures a F5 load balancer device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/configure_f5_load_balancer.rb', line 9 def configure_f5_load_balancer(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'configureF5LoadBalancer') else .merge!('command' => 'configureF5LoadBalancer', 'lbdeviceid' => args[0]) end request() end |
#configure_internal_load_balancer_element(*args) ⇒ Object
Configures an Internal Load Balancer element.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/configure_internal_load_balancer_element.rb', line 9 def configure_internal_load_balancer_element(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'configureInternalLoadBalancerElement') else .merge!('command' => 'configureInternalLoadBalancerElement', 'id' => args[0], 'enabled' => args[1]) end request() end |
#configure_netscaler_load_balancer(*args) ⇒ Object
configures a netscaler load balancer device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/configure_netscaler_load_balancer.rb', line 9 def configure_netscaler_load_balancer(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'configureNetscalerLoadBalancer') else .merge!('command' => 'configureNetscalerLoadBalancer', 'lbdeviceid' => args[0]) end request() end |
#configure_ovs_element(*args) ⇒ Object
Configures an ovs element.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/configure_ovs_element.rb', line 9 def configure_ovs_element(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'configureOvsElement') else .merge!('command' => 'configureOvsElement', 'id' => args[0], 'enabled' => args[1]) end request() end |
#configure_palo_alto_firewall(*args) ⇒ Object
Configures a Palo Alto firewall device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/configure_palo_alto_firewall.rb', line 9 def configure_palo_alto_firewall(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'configurePaloAltoFirewall') else .merge!('command' => 'configurePaloAltoFirewall', 'fwdeviceid' => args[0]) end request() end |
#configure_srx_firewall(*args) ⇒ Object
Configures a SRX firewall device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/configure_srx_firewall.rb', line 9 def configure_srx_firewall(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'configureSrxFirewall') else .merge!('command' => 'configureSrxFirewall', 'fwdeviceid' => args[0]) end request() end |
#configure_virtual_router_element(*args) ⇒ Object
Configures a virtual router element.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/configure_virtual_router_element.rb', line 9 def configure_virtual_router_element(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'configureVirtualRouterElement') else .merge!('command' => 'configureVirtualRouterElement', 'id' => args[0], 'enabled' => args[1]) end request() end |
#copy_iso(*args) ⇒ Object
Copies an iso from one zone to another.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/copy_iso.rb', line 9 def copy_iso(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'copyIso') else .merge!('command' => 'copyIso', 'destzoneid' => args[0], 'id' => args[1]) end request() end |
#copy_template(*args) ⇒ Object
Copies a template from one zone to another.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/copy_template.rb', line 9 def copy_template(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'copyTemplate') else .merge!('command' => 'copyTemplate', 'id' => args[0], 'destzoneid' => args[1]) end request() end |
#create_account(*args) ⇒ Object
Creates an account
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/fog/cloudstack/requests/compute/create_account.rb', line 9 def create_account(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createAccount') else .merge!('command' => 'createAccount', 'accounttype' => args[0], 'lastname' => args[1], 'email' => args[2], 'firstname' => args[3], 'username' => args[4], 'password' => args[5]) end request() end |
#create_affinity_group(*args) ⇒ Object
Creates an affinity/anti-affinity group
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/create_affinity_group.rb', line 9 def create_affinity_group(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createAffinityGroup') else .merge!('command' => 'createAffinityGroup', 'type' => args[0], 'name' => args[1]) end request() end |
#create_auto_scale_policy(*args) ⇒ Object
Creates an autoscale policy for a provision or deprovision action, the action is taken when the all the conditions evaluates to true for the specified duration. The policy is in effect once it is attached to a autscale vm group.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/create_auto_scale_policy.rb', line 9 def create_auto_scale_policy(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createAutoScalePolicy') else .merge!('command' => 'createAutoScalePolicy', 'duration' => args[0], 'conditionids' => args[1], 'action' => args[2]) end request() end |
#create_auto_scale_vm_group(*args) ⇒ Object
Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/fog/cloudstack/requests/compute/create_auto_scale_vm_group.rb', line 9 def create_auto_scale_vm_group(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createAutoScaleVmGroup') else .merge!('command' => 'createAutoScaleVmGroup', 'minmembers' => args[0], 'scaleuppolicyids' => args[1], 'scaledownpolicyids' => args[2], 'maxmembers' => args[3], 'vmprofileid' => args[4], 'lbruleid' => args[5]) end request() end |
#create_auto_scale_vm_profile(*args) ⇒ Object
Creates a profile that contains information about the virtual machine which will be provisioned automatically by autoscale feature.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/create_auto_scale_vm_profile.rb', line 9 def create_auto_scale_vm_profile(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createAutoScaleVmProfile') else .merge!('command' => 'createAutoScaleVmProfile', 'templateid' => args[0], 'zoneid' => args[1], 'serviceofferingid' => args[2]) end request() end |
#create_condition(*args) ⇒ Object
Creates a condition
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/create_condition.rb', line 9 def create_condition(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createCondition') else .merge!('command' => 'createCondition', 'threshold' => args[0], 'relationaloperator' => args[1], 'counterid' => args[2]) end request() end |
#create_counter(*args) ⇒ Object
Adds metric counter
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/create_counter.rb', line 9 def create_counter(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createCounter') else .merge!('command' => 'createCounter', 'name' => args[0], 'value' => args[1], 'source' => args[2]) end request() end |
#create_disk_offering(*args) ⇒ Object
Creates a disk offering.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/create_disk_offering.rb', line 9 def create_disk_offering(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createDiskOffering') else .merge!('command' => 'createDiskOffering', 'displaytext' => args[0], 'name' => args[1]) end request() end |
#create_domain(*args) ⇒ Object
Creates a domain
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/create_domain.rb', line 9 def create_domain(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createDomain') else .merge!('command' => 'createDomain', 'name' => args[0]) end request() end |
#create_egress_firewall_rule(*args) ⇒ Object
Creates a egress firewall rule for a given network
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/create_egress_firewall_rule.rb', line 9 def create_egress_firewall_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createEgressFirewallRule') else .merge!('command' => 'createEgressFirewallRule', 'networkid' => args[0], 'protocol' => args[1]) end request() end |
#create_firewall_rule(*args) ⇒ Object
Creates a firewall rule for a given ip address
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/create_firewall_rule.rb', line 9 def create_firewall_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createFirewallRule') else .merge!('command' => 'createFirewallRule', 'ipaddressid' => args[0], 'protocol' => args[1]) end request() end |
#create_global_load_balancer_rule(*args) ⇒ Object
Creates a global load balancer rule
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/create_global_load_balancer_rule.rb', line 9 def create_global_load_balancer_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createGlobalLoadBalancerRule') else .merge!('command' => 'createGlobalLoadBalancerRule', 'gslbdomainname' => args[0], 'gslbservicetype' => args[1], 'regionid' => args[2], 'name' => args[3]) end request() end |
#create_instance_group(*args) ⇒ Object
Creates a vm group
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/create_instance_group.rb', line 9 def create_instance_group(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createInstanceGroup') else .merge!('command' => 'createInstanceGroup', 'name' => args[0]) end request() end |
#create_internal_load_balancer_element(*args) ⇒ Object
Create an Internal Load Balancer element.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/create_internal_load_balancer_element.rb', line 9 def create_internal_load_balancer_element(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createInternalLoadBalancerElement') else .merge!('command' => 'createInternalLoadBalancerElement', 'nspid' => args[0]) end request() end |
#create_ip_forwarding_rule(*args) ⇒ Object
Creates an ip forwarding rule
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/create_ip_forwarding_rule.rb', line 9 def create_ip_forwarding_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createIpForwardingRule') else .merge!('command' => 'createIpForwardingRule', 'ipaddressid' => args[0], 'protocol' => args[1], 'startport' => args[2]) end request() end |
#create_lb_health_check_policy(*args) ⇒ Object
Creates a Load Balancer healthcheck policy
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/create_lb_health_check_policy.rb', line 9 def create_lb_health_check_policy(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createLBHealthCheckPolicy') else .merge!('command' => 'createLBHealthCheckPolicy', 'lbruleid' => args[0]) end request() end |
#create_lb_stickiness_policy(*args) ⇒ Object
Creates a Load Balancer stickiness policy
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/create_lb_stickiness_policy.rb', line 9 def create_lb_stickiness_policy(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createLBStickinessPolicy') else .merge!('command' => 'createLBStickinessPolicy', 'methodname' => args[0], 'name' => args[1], 'lbruleid' => args[2]) end request() end |
#create_load_balancer(*args) ⇒ Object
Creates a Load Balancer
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fog/cloudstack/requests/compute/create_load_balancer.rb', line 9 def create_load_balancer(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createLoadBalancer') else .merge!('command' => 'createLoadBalancer', 'sourceipaddressnetworkid' => args[0], 'algorithm' => args[1], 'networkid' => args[2], 'instanceport' => args[3], 'scheme' => args[4], 'name' => args[5], 'sourceport' => args[6]) end request() end |
#create_load_balancer_rule(*args) ⇒ Object
Creates a load balancer rule
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/create_load_balancer_rule.rb', line 9 def create_load_balancer_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createLoadBalancerRule') else .merge!('command' => 'createLoadBalancerRule', 'name' => args[0], 'privateport' => args[1], 'algorithm' => args[2], 'publicport' => args[3]) end request() end |
#create_lun_on_filer(size, name, options = {}) ⇒ Object
Create a LUN from a pool
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, ={}) .merge!( 'command' => 'createLunOnFiler', 'size' => size, 'name' => name ) request() end |
#create_network(*args) ⇒ Object
Creates a network
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/fog/cloudstack/requests/compute/create_network.rb', line 9 def create_network(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createNetwork') else .merge!('command' => 'createNetwork', 'displaytext' => args[0], 'zoneid' => args[1], 'name' => args[2], 'networkofferingid' => args[3]) end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#create_network_acl(*args) ⇒ Object
Creates a ACL rule in the given network (the network has to belong to VPC)
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/create_network_acl.rb', line 9 def create_network_acl(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createNetworkACL') else .merge!('command' => 'createNetworkACL', 'protocol' => args[0]) end request() end |
#create_network_acl_list(*args) ⇒ Object
Creates a Network ACL for the given VPC
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/create_network_acl_list.rb', line 9 def create_network_acl_list(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createNetworkACLList') else .merge!('command' => 'createNetworkACLList', 'name' => args[0], 'vpcid' => args[1]) end request() end |
#create_network_offering(*args) ⇒ Object
Creates a network offering.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/create_network_offering.rb', line 9 def create_network_offering(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createNetworkOffering') else .merge!('command' => 'createNetworkOffering', 'traffictype' => args[0], 'guestiptype' => args[1], 'name' => args[2], 'supportedservices' => args[3], 'displaytext' => args[4]) end request() end |
#create_physical_network(*args) ⇒ Object
Creates a physical network
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/create_physical_network.rb', line 9 def create_physical_network(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createPhysicalNetwork') else .merge!('command' => 'createPhysicalNetwork', 'name' => args[0], 'zoneid' => args[1]) end request() end |
#create_pod(*args) ⇒ Object
Creates a new Pod.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/create_pod.rb', line 9 def create_pod(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createPod') else .merge!('command' => 'createPod', 'netmask' => args[0], 'zoneid' => args[1], 'name' => args[2], 'gateway' => args[3], 'startip' => args[4]) end request() end |
#create_pool(algorithm, name, options = {}) ⇒ Object
Create a pool
9 10 11 12 13 14 15 16 |
# File 'lib/fog/cloudstack/requests/compute/create_pool.rb', line 9 def create_pool(algorithm, name, ={}) .merge!( 'command' => 'createPool', 'algorithm' => algorithm, 'name' => name ) request() end |
#create_port_forwarding_rule(*args) ⇒ Object
Creates a port forwarding rule
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/create_port_forwarding_rule.rb', line 9 def create_port_forwarding_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createPortForwardingRule') else .merge!('command' => 'createPortForwardingRule', 'virtualmachineid' => args[0], 'protocol' => args[1], 'privateport' => args[2], 'ipaddressid' => args[3], 'publicport' => args[4]) end request() end |
#create_portable_ip_range(*args) ⇒ Object
adds a range of portable public IP’s to a region
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/create_portable_ip_range.rb', line 9 def create_portable_ip_range(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createPortableIpRange') else .merge!('command' => 'createPortableIpRange', 'startip' => args[0], 'netmask' => args[1], 'regionid' => args[2], 'gateway' => args[3], 'endip' => args[4]) end request() end |
#create_private_gateway(*args) ⇒ Object
Creates a private gateway
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/create_private_gateway.rb', line 9 def create_private_gateway(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createPrivateGateway') else .merge!('command' => 'createPrivateGateway', 'ipaddress' => args[0], 'vlan' => args[1], 'netmask' => args[2], 'vpcid' => args[3], 'gateway' => args[4]) end request() end |
#create_project(*args) ⇒ Object
Creates a project
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/create_project.rb', line 9 def create_project(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createProject') else .merge!('command' => 'createProject', 'displaytext' => args[0], 'name' => args[1]) end request() end |
#create_remote_access_vpn(*args) ⇒ Object
Creates a l2tp/ipsec remote access vpn
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/create_remote_access_vpn.rb', line 9 def create_remote_access_vpn(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createRemoteAccessVpn') else .merge!('command' => 'createRemoteAccessVpn', 'publicipid' => args[0]) end request() end |
#create_secondary_staging_store(*args) ⇒ Object
create secondary staging store.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/create_secondary_staging_store.rb', line 9 def create_secondary_staging_store(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createSecondaryStagingStore') else .merge!('command' => 'createSecondaryStagingStore', 'url' => args[0]) end request() end |
#create_security_group(*args) ⇒ Object
Creates a security group
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/create_security_group.rb', line 9 def create_security_group(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createSecurityGroup') else .merge!('command' => 'createSecurityGroup', 'name' => args[0]) end request() end |
#create_service_instance(*args) ⇒ Object
Creates a system virtual-machine that implements network services
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/fog/cloudstack/requests/compute/create_service_instance.rb', line 9 def create_service_instance(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createServiceInstance') else .merge!('command' => 'createServiceInstance', 'name' => args[0], 'rightnetworkid' => args[1], 'serviceofferingid' => args[2], 'leftnetworkid' => args[3], 'templateid' => args[4], 'zoneid' => args[5]) end request() end |
#create_service_offering(*args) ⇒ Object
Creates a service offering.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/create_service_offering.rb', line 9 def create_service_offering(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createServiceOffering') else .merge!('command' => 'createServiceOffering', 'name' => args[0], 'displaytext' => args[1]) end request() end |
#create_snapshot(*args) ⇒ Object
Creates an instant snapshot of a volume.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/create_snapshot.rb', line 9 def create_snapshot(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createSnapshot') else .merge!('command' => 'createSnapshot', 'volumeid' => args[0]) end request() end |
#create_snapshot_policy(*args) ⇒ Object
Creates a snapshot policy for the account.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/create_snapshot_policy.rb', line 9 def create_snapshot_policy(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createSnapshotPolicy') else .merge!('command' => 'createSnapshotPolicy', 'volumeid' => args[0], 'maxsnaps' => args[1], 'timezone' => args[2], 'intervaltype' => args[3], 'schedule' => args[4]) end request() end |
#create_ssh_key_pair(*args) ⇒ Object
Create a new keypair and returns the private key
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/create_ssh_key_pair.rb', line 9 def create_ssh_key_pair(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createSSHKeyPair') else .merge!('command' => 'createSSHKeyPair', 'name' => args[0]) end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#create_static_route(*args) ⇒ Object
Creates a static route
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/create_static_route.rb', line 9 def create_static_route(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createStaticRoute') else .merge!('command' => 'createStaticRoute', 'gatewayid' => args[0], 'cidr' => args[1]) end request() end |
#create_storage_network_ip_range(*args) ⇒ Object
Creates a Storage network IP range.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/create_storage_network_ip_range.rb', line 9 def create_storage_network_ip_range(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createStorageNetworkIpRange') else .merge!('command' => 'createStorageNetworkIpRange', 'podid' => args[0], 'netmask' => args[1], 'gateway' => args[2], 'startip' => args[3]) end request() end |
#create_storage_pool(*args) ⇒ Object
Creates a storage pool.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/create_storage_pool.rb', line 9 def create_storage_pool(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createStoragePool') else .merge!('command' => 'createStoragePool', 'url' => args[0], 'name' => args[1], 'zoneid' => args[2]) end request() end |
#create_tags(*args) ⇒ Object
Creates resource tag(s)
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/create_tags.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createTags') else .merge!('command' => 'createTags', 'tags' => args[0], 'resourcetype' => args[1], 'resourceids' => args[2]) end request() end |
#create_template(*args) ⇒ Object
Creates a template of a virtual machine. The virtual machine must be in a STOPPED state. A template created from this command is automatically designated as a private template visible to the account that created it.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/create_template.rb', line 9 def create_template(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createTemplate') else .merge!('command' => 'createTemplate', 'ostypeid' => args[0], 'name' => args[1], 'displaytext' => args[2]) end request() end |
#create_user(*args) ⇒ Object
Creates a user for an account that already exists
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/fog/cloudstack/requests/compute/create_user.rb', line 9 def create_user(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createUser') else .merge!('command' => 'createUser', 'email' => args[0], 'username' => args[1], 'lastname' => args[2], 'password' => args[3], 'firstname' => args[4], 'account' => args[5]) end request() end |
#create_virtual_router_element(*args) ⇒ Object
Create a virtual router element.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/create_virtual_router_element.rb', line 9 def create_virtual_router_element(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createVirtualRouterElement') else .merge!('command' => 'createVirtualRouterElement', 'nspid' => args[0]) end request() end |
#create_vlan_ip_range(*args) ⇒ Object
Creates a VLAN IP range.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/create_vlan_ip_range.rb', line 9 def create_vlan_ip_range(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createVlanIpRange') else .merge!('command' => 'createVlanIpRange') end request() end |
#create_vm_snapshot(*args) ⇒ Object
Creates snapshot for a vm.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/create_vm_snapshot.rb', line 9 def create_vm_snapshot(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createVMSnapshot') else .merge!('command' => 'createVMSnapshot', 'virtualmachineid' => args[0]) end request() end |
#create_volume(*args) ⇒ Object
Creates a disk volume from a disk offering. This disk volume must still be attached to a virtual machine to make use of it.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/create_volume.rb', line 9 def create_volume(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createVolume') else .merge!('command' => 'createVolume', 'name' => args[0]) end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#create_volume_on_filer(password, ipaddress, size, volumename, username, poolname, aggregatename, options = {}) ⇒ Object
Create a volume
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, ={}) .merge!( 'command' => 'createVolumeOnFiler', 'password' => password, 'ipaddress' => ipaddress, 'size' => size, 'volumename' => volumename, 'username' => username, 'poolname' => poolname, 'aggregatename' => aggregatename ) request() end |
#create_vpc(*args) ⇒ Object
Creates a VPC
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/create_vpc.rb', line 9 def create_vpc(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createVPC') else .merge!('command' => 'createVPC', 'vpcofferingid' => args[0], 'zoneid' => args[1], 'name' => args[2], 'cidr' => args[3], 'displaytext' => args[4]) end request() end |
#create_vpcoffering(*args) ⇒ Object
Creates VPC offering
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/create_vpcoffering.rb', line 9 def create_vpcoffering(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createVPCOffering') else .merge!('command' => 'createVPCOffering', 'supportedservices' => args[0], 'name' => args[1], 'displaytext' => args[2]) end request() end |
#create_vpn_connection(*args) ⇒ Object
Create site to site vpn connection
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/create_vpn_connection.rb', line 9 def create_vpn_connection(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createVpnConnection') else .merge!('command' => 'createVpnConnection', 's2svpngatewayid' => args[0], 's2scustomergatewayid' => args[1]) end request() end |
#create_vpn_customer_gateway(*args) ⇒ Object
Creates site to site vpn customer gateway
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/create_vpn_customer_gateway.rb', line 9 def create_vpn_customer_gateway(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createVpnCustomerGateway') else .merge!('command' => 'createVpnCustomerGateway', 'esppolicy' => args[0], 'cidrlist' => args[1], 'ikepolicy' => args[2], 'gateway' => args[3], 'ipsecpsk' => args[4]) end request() end |
#create_vpn_gateway(*args) ⇒ Object
Creates site to site vpn local gateway
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/create_vpn_gateway.rb', line 9 def create_vpn_gateway(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createVpnGateway') else .merge!('command' => 'createVpnGateway', 'vpcid' => args[0]) end request() end |
#create_zone(*args) ⇒ Object
Creates a Zone.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/create_zone.rb', line 9 def create_zone(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'createZone') else .merge!('command' => 'createZone', 'dns1' => args[0], 'internaldns1' => args[1], 'networktype' => args[2], 'name' => args[3]) end request() end |
#dedicate_cluster(*args) ⇒ Object
Dedicate an existing cluster
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/dedicate_cluster.rb', line 9 def dedicate_cluster(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'dedicateCluster') else .merge!('command' => 'dedicateCluster', 'clusterid' => args[0], 'domainid' => args[1]) end request() end |
#dedicate_guest_vlan_range(*args) ⇒ Object
Dedicates a guest vlan range to an account
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/dedicate_guest_vlan_range.rb', line 9 def dedicate_guest_vlan_range(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'dedicateGuestVlanRange') else .merge!('command' => 'dedicateGuestVlanRange', 'account' => args[0], 'domainid' => args[1], 'vlanrange' => args[2], 'physicalnetworkid' => args[3]) end request() end |
#dedicate_host(*args) ⇒ Object
Dedicates a host.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/dedicate_host.rb', line 9 def dedicate_host(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'dedicateHost') else .merge!('command' => 'dedicateHost', 'hostid' => args[0], 'domainid' => args[1]) end request() end |
#dedicate_pod(*args) ⇒ Object
Dedicates a Pod.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/dedicate_pod.rb', line 9 def dedicate_pod(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'dedicatePod') else .merge!('command' => 'dedicatePod', 'podid' => args[0], 'domainid' => args[1]) end request() end |
#dedicate_public_ip_range(*args) ⇒ Object
Dedicates a Public IP range to an account
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/dedicate_public_ip_range.rb', line 9 def dedicate_public_ip_range(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'dedicatePublicIpRange') else .merge!('command' => 'dedicatePublicIpRange', 'domainid' => args[0], 'account' => args[1], 'id' => args[2]) end request() end |
#dedicate_zone(*args) ⇒ Object
Dedicates a zones.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/dedicate_zone.rb', line 9 def dedicate_zone(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'dedicateZone') else .merge!('command' => 'dedicateZone', 'domainid' => args[0], 'zoneid' => args[1]) end request() end |
#delete_account(*args) ⇒ Object
Deletes a account, and all users associated with this account
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_account.rb', line 9 def delete_account(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteAccount') else .merge!('command' => 'deleteAccount', 'id' => args[0]) end request() end |
#delete_account_from_project(*args) ⇒ Object
Deletes account from the project
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/delete_account_from_project.rb', line 9 def delete_account_from_project(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteAccountFromProject') else .merge!('command' => 'deleteAccountFromProject', 'projectid' => args[0], 'account' => args[1]) end request() end |
#delete_affinity_group(*args) ⇒ Object
Deletes affinity group
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/delete_affinity_group.rb', line 9 def delete_affinity_group(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteAffinityGroup') else .merge!('command' => 'deleteAffinityGroup') end request() end |
#delete_alerts(*args) ⇒ Object
Delete one or more alerts.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/delete_alerts.rb', line 9 def delete_alerts(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteAlerts') else .merge!('command' => 'deleteAlerts') end request() end |
#delete_auto_scale_policy(*args) ⇒ Object
Deletes a autoscale policy.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_auto_scale_policy.rb', line 9 def delete_auto_scale_policy(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteAutoScalePolicy') else .merge!('command' => 'deleteAutoScalePolicy', 'id' => args[0]) end request() end |
#delete_auto_scale_vm_group(*args) ⇒ Object
Deletes a autoscale vm group.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_group.rb', line 9 def delete_auto_scale_vm_group(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteAutoScaleVmGroup') else .merge!('command' => 'deleteAutoScaleVmGroup', 'id' => args[0]) end request() end |
#delete_auto_scale_vm_profile(*args) ⇒ Object
Deletes a autoscale vm profile.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_profile.rb', line 9 def delete_auto_scale_vm_profile(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteAutoScaleVmProfile') else .merge!('command' => 'deleteAutoScaleVmProfile', 'id' => args[0]) end request() end |
#delete_big_switch_vns_device(*args) ⇒ Object
delete a bigswitch vns device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_big_switch_vns_device.rb', line 9 def delete_big_switch_vns_device(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteBigSwitchVnsDevice') else .merge!('command' => 'deleteBigSwitchVnsDevice', 'vnsdeviceid' => args[0]) end request() end |
#delete_cisco_asa1000v_resource(*args) ⇒ Object
Deletes a Cisco ASA 1000v appliance
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_cisco_asa1000v_resource.rb', line 9 def delete_cisco_asa1000v_resource(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteCiscoAsa1000vResource') else .merge!('command' => 'deleteCiscoAsa1000vResource', 'resourceid' => args[0]) end request() end |
#delete_cisco_nexus_vsm(*args) ⇒ Object
delete a Cisco Nexus VSM device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_cisco_nexus_vsm.rb', line 9 def delete_cisco_nexus_vsm(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteCiscoNexusVSM') else .merge!('command' => 'deleteCiscoNexusVSM', 'id' => args[0]) end request() end |
#delete_cisco_vnmc_resource(*args) ⇒ Object
Deletes a Cisco Vnmc controller
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_cisco_vnmc_resource.rb', line 9 def delete_cisco_vnmc_resource(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteCiscoVnmcResource') else .merge!('command' => 'deleteCiscoVnmcResource', 'resourceid' => args[0]) end request() end |
#delete_cluster(*args) ⇒ Object
Deletes a cluster.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_cluster.rb', line 9 def delete_cluster(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteCluster') else .merge!('command' => 'deleteCluster', 'id' => args[0]) end request() end |
#delete_condition(*args) ⇒ Object
Removes a condition
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_condition.rb', line 9 def delete_condition(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteCondition') else .merge!('command' => 'deleteCondition', 'id' => args[0]) end request() end |
#delete_counter(*args) ⇒ Object
Deletes a counter
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_counter.rb', line 9 def delete_counter(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteCounter') else .merge!('command' => 'deleteCounter', 'id' => args[0]) end request() end |
#delete_disk_offering(*args) ⇒ Object
Updates a disk offering.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_disk_offering.rb', line 9 def delete_disk_offering(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteDiskOffering') else .merge!('command' => 'deleteDiskOffering', 'id' => args[0]) end request() end |
#delete_domain(*args) ⇒ Object
Deletes a specified domain
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_domain.rb', line 9 def delete_domain(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteDomain') else .merge!('command' => 'deleteDomain', 'id' => args[0]) end request() end |
#delete_egress_firewall_rule(*args) ⇒ Object
Deletes an ggress firewall rule
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_egress_firewall_rule.rb', line 9 def delete_egress_firewall_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteEgressFirewallRule') else .merge!('command' => 'deleteEgressFirewallRule', 'id' => args[0]) end request() end |
#delete_events(*args) ⇒ Object
Delete one or more events.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/delete_events.rb', line 9 def delete_events(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteEvents') else .merge!('command' => 'deleteEvents') end request() end |
#delete_external_firewall(*args) ⇒ Object
Deletes an external firewall appliance.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_external_firewall.rb', line 9 def delete_external_firewall(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteExternalFirewall') else .merge!('command' => 'deleteExternalFirewall', 'id' => args[0]) end request() end |
#delete_external_load_balancer(*args) ⇒ Object
Deletes a F5 external load balancer appliance added in a zone.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_external_load_balancer.rb', line 9 def delete_external_load_balancer(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteExternalLoadBalancer') else .merge!('command' => 'deleteExternalLoadBalancer', 'id' => args[0]) end request() end |
#delete_f5_load_balancer(*args) ⇒ Object
delete a F5 load balancer device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_f5_load_balancer.rb', line 9 def delete_f5_load_balancer(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteF5LoadBalancer') else .merge!('command' => 'deleteF5LoadBalancer', 'lbdeviceid' => args[0]) end request() end |
#delete_firewall_rule(*args) ⇒ Object
Deletes a firewall rule
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_firewall_rule.rb', line 9 def delete_firewall_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteFirewallRule') else .merge!('command' => 'deleteFirewallRule', 'id' => args[0]) end request() end |
#delete_global_load_balancer_rule(*args) ⇒ Object
Deletes a global load balancer rule.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_global_load_balancer_rule.rb', line 9 def delete_global_load_balancer_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteGlobalLoadBalancerRule') else .merge!('command' => 'deleteGlobalLoadBalancerRule', 'id' => args[0]) end request() end |
#delete_host(*args) ⇒ Object
Deletes a host.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_host.rb', line 9 def delete_host(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteHost') else .merge!('command' => 'deleteHost', 'id' => args[0]) end request() end |
#delete_image_store(*args) ⇒ Object
Deletes an image store .
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_image_store.rb', line 9 def delete_image_store(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteImageStore') else .merge!('command' => 'deleteImageStore', 'id' => args[0]) end request() end |
#delete_instance_group(*args) ⇒ Object
Deletes a vm group
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_instance_group.rb', line 9 def delete_instance_group(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteInstanceGroup') else .merge!('command' => 'deleteInstanceGroup', 'id' => args[0]) end request() end |
#delete_ip_forwarding_rule(*args) ⇒ Object
Deletes an ip forwarding rule
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_ip_forwarding_rule.rb', line 9 def delete_ip_forwarding_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteIpForwardingRule') else .merge!('command' => 'deleteIpForwardingRule', 'id' => args[0]) end request() end |
#delete_iso(*args) ⇒ Object
Deletes an ISO file.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_iso.rb', line 9 def delete_iso(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteIso') else .merge!('command' => 'deleteIso', 'id' => args[0]) end request() end |
#delete_lb_health_check_policy(*args) ⇒ Object
Deletes a load balancer HealthCheck policy.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_lb_health_check_policy.rb', line 9 def delete_lb_health_check_policy(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteLBHealthCheckPolicy') else .merge!('command' => 'deleteLBHealthCheckPolicy', 'id' => args[0]) end request() end |
#delete_lb_stickiness_policy(*args) ⇒ Object
Deletes a LB stickiness policy.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_lb_stickiness_policy.rb', line 9 def delete_lb_stickiness_policy(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteLBStickinessPolicy') else .merge!('command' => 'deleteLBStickinessPolicy', 'id' => args[0]) end request() end |
#delete_ldap_configuration(*args) ⇒ Object
Remove an Ldap Configuration
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_ldap_configuration.rb', line 9 def delete_ldap_configuration(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteLdapConfiguration') else .merge!('command' => 'deleteLdapConfiguration', 'hostname' => args[0]) end request() end |
#delete_load_balancer(*args) ⇒ Object
Deletes a load balancer
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_load_balancer.rb', line 9 def delete_load_balancer(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteLoadBalancer') else .merge!('command' => 'deleteLoadBalancer', 'id' => args[0]) end request() end |
#delete_load_balancer_rule(*args) ⇒ Object
Deletes a load balancer rule.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_load_balancer_rule.rb', line 9 def delete_load_balancer_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteLoadBalancerRule') else .merge!('command' => 'deleteLoadBalancerRule', 'id' => args[0]) end request() end |
#delete_netscaler_load_balancer(*args) ⇒ Object
delete a netscaler load balancer device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_netscaler_load_balancer.rb', line 9 def delete_netscaler_load_balancer(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteNetscalerLoadBalancer') else .merge!('command' => 'deleteNetscalerLoadBalancer', 'lbdeviceid' => args[0]) end request() end |
#delete_network(*args) ⇒ Object
Deletes a network
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_network.rb', line 9 def delete_network(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteNetwork') else .merge!('command' => 'deleteNetwork', 'id' => args[0]) end request() end |
#delete_network_acl(*args) ⇒ Object
Deletes a Network ACL
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_network_acl.rb', line 9 def delete_network_acl(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteNetworkACL') else .merge!('command' => 'deleteNetworkACL', 'id' => args[0]) end request() end |
#delete_network_acl_list(*args) ⇒ Object
Deletes a Network ACL
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_network_acl_list.rb', line 9 def delete_network_acl_list(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteNetworkACLList') else .merge!('command' => 'deleteNetworkACLList', 'id' => args[0]) end request() end |
#delete_network_device(*args) ⇒ Object
Deletes network device.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_network_device.rb', line 9 def delete_network_device(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteNetworkDevice') else .merge!('command' => 'deleteNetworkDevice', 'id' => args[0]) end request() end |
#delete_network_offering(*args) ⇒ Object
Deletes a network offering.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_network_offering.rb', line 9 def delete_network_offering(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteNetworkOffering') else .merge!('command' => 'deleteNetworkOffering', 'id' => args[0]) end request() end |
#delete_network_service_provider(*args) ⇒ Object
Deletes a Network Service Provider.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_network_service_provider.rb', line 9 def delete_network_service_provider(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteNetworkServiceProvider') else .merge!('command' => 'deleteNetworkServiceProvider', 'id' => args[0]) end request() end |
#delete_nicira_nvp_device(*args) ⇒ Object
delete a nicira nvp device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_nicira_nvp_device.rb', line 9 def delete_nicira_nvp_device(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteNiciraNvpDevice') else .merge!('command' => 'deleteNiciraNvpDevice', 'nvpdeviceid' => args[0]) end request() end |
#delete_open_daylight_controller(*args) ⇒ Object
Removes an OpenDyalight controler
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_open_daylight_controller.rb', line 9 def delete_open_daylight_controller(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteOpenDaylightController') else .merge!('command' => 'deleteOpenDaylightController', 'id' => args[0]) end request() end |
#delete_palo_alto_firewall(*args) ⇒ Object
delete a Palo Alto firewall device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_palo_alto_firewall.rb', line 9 def delete_palo_alto_firewall(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deletePaloAltoFirewall') else .merge!('command' => 'deletePaloAltoFirewall', 'fwdeviceid' => args[0]) end request() end |
#delete_physical_network(*args) ⇒ Object
Deletes a Physical Network.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_physical_network.rb', line 9 def delete_physical_network(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deletePhysicalNetwork') else .merge!('command' => 'deletePhysicalNetwork', 'id' => args[0]) end request() end |
#delete_pod(*args) ⇒ Object
Deletes a Pod.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_pod.rb', line 9 def delete_pod(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deletePod') else .merge!('command' => 'deletePod', 'id' => args[0]) end request() end |
#delete_pool(poolname, options = {}) ⇒ Object
Delete a pool
9 10 11 12 13 14 15 |
# File 'lib/fog/cloudstack/requests/compute/delete_pool.rb', line 9 def delete_pool(poolname, ={}) .merge!( 'command' => 'deletePool', 'poolname' => poolname ) request() end |
#delete_port_forwarding_rule(*args) ⇒ Object
Deletes a port forwarding rule
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_port_forwarding_rule.rb', line 9 def delete_port_forwarding_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deletePortForwardingRule') else .merge!('command' => 'deletePortForwardingRule', 'id' => args[0]) end request() end |
#delete_portable_ip_range(*args) ⇒ Object
deletes a range of portable public IP’s associated with a region
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_portable_ip_range.rb', line 9 def delete_portable_ip_range(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deletePortableIpRange') else .merge!('command' => 'deletePortableIpRange', 'id' => args[0]) end request() end |
#delete_private_gateway(*args) ⇒ Object
Deletes a Private gateway
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_private_gateway.rb', line 9 def delete_private_gateway(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deletePrivateGateway') else .merge!('command' => 'deletePrivateGateway', 'id' => args[0]) end request() end |
#delete_project(*args) ⇒ Object
Deletes a project
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_project.rb', line 9 def delete_project(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteProject') else .merge!('command' => 'deleteProject', 'id' => args[0]) end request() end |
#delete_project_invitation(*args) ⇒ Object
Accepts or declines project invitation
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_project_invitation.rb', line 9 def delete_project_invitation(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteProjectInvitation') else .merge!('command' => 'deleteProjectInvitation', 'id' => args[0]) end request() end |
#delete_remote_access_vpn(*args) ⇒ Object
Destroys a l2tp/ipsec remote access vpn
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_remote_access_vpn.rb', line 9 def delete_remote_access_vpn(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteRemoteAccessVpn') else .merge!('command' => 'deleteRemoteAccessVpn', 'publicipid' => args[0]) end request() end |
#delete_secondary_staging_store(*args) ⇒ Object
Deletes a secondary staging store .
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_secondary_staging_store.rb', line 9 def delete_secondary_staging_store(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteSecondaryStagingStore') else .merge!('command' => 'deleteSecondaryStagingStore', 'id' => args[0]) end request() end |
#delete_security_group(*args) ⇒ Object
Deletes security group
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/delete_security_group.rb', line 9 def delete_security_group(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteSecurityGroup') else .merge!('command' => 'deleteSecurityGroup') end request() end |
#delete_service_offering(*args) ⇒ Object
Deletes a service offering.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_service_offering.rb', line 9 def delete_service_offering(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteServiceOffering') else .merge!('command' => 'deleteServiceOffering', 'id' => args[0]) end request() end |
#delete_snapshot(*args) ⇒ Object
Deletes a snapshot of a disk volume.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_snapshot.rb', line 9 def delete_snapshot(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteSnapshot') else .merge!('command' => 'deleteSnapshot', 'id' => args[0]) end request() end |
#delete_snapshot_policies(*args) ⇒ Object
Deletes snapshot policies for the account.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/delete_snapshot_policies.rb', line 9 def delete_snapshot_policies(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteSnapshotPolicies') else .merge!('command' => 'deleteSnapshotPolicies') end request() end |
#delete_srx_firewall(*args) ⇒ Object
delete a SRX firewall device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_srx_firewall.rb', line 9 def delete_srx_firewall(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteSrxFirewall') else .merge!('command' => 'deleteSrxFirewall', 'fwdeviceid' => args[0]) end request() end |
#delete_ssh_key_pair(*args) ⇒ Object
Deletes a keypair by name
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/delete_ssh_key_pair.rb', line 9 def delete_ssh_key_pair(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteSSHKeyPair') else .merge!('command' => 'deleteSSHKeyPair', 'name' => args[0]) end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#delete_ssl_cert(*args) ⇒ Object
Delete a certificate to cloudstack
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_ssl_cert.rb', line 9 def delete_ssl_cert(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteSslCert') else .merge!('command' => 'deleteSslCert', 'id' => args[0]) end request() end |
#delete_static_route(*args) ⇒ Object
Deletes a static route
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_static_route.rb', line 9 def delete_static_route(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteStaticRoute') else .merge!('command' => 'deleteStaticRoute', 'id' => args[0]) end request() end |
#delete_storage_network_ip_range(*args) ⇒ Object
Deletes a storage network IP Range.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_storage_network_ip_range.rb', line 9 def delete_storage_network_ip_range(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteStorageNetworkIpRange') else .merge!('command' => 'deleteStorageNetworkIpRange', 'id' => args[0]) end request() end |
#delete_storage_pool(*args) ⇒ Object
Deletes a storage pool.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_storage_pool.rb', line 9 def delete_storage_pool(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteStoragePool') else .merge!('command' => 'deleteStoragePool', 'id' => args[0]) end request() end |
#delete_tags(*args) ⇒ Object
Deleting resource tag(s)
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/delete_tags.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteTags') else .merge!('command' => 'deleteTags', 'resourceids' => args[0], 'resourcetype' => args[1]) end request() end |
#delete_template(*args) ⇒ Object
Deletes a template from the system. All virtual machines using the deleted template will not be affected.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_template.rb', line 9 def delete_template(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteTemplate') else .merge!('command' => 'deleteTemplate', 'id' => args[0]) end request() end |
#delete_traffic_monitor(*args) ⇒ Object
Deletes an traffic monitor host.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_traffic_monitor.rb', line 9 def delete_traffic_monitor(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteTrafficMonitor') else .merge!('command' => 'deleteTrafficMonitor', 'id' => args[0]) end request() end |
#delete_traffic_type(*args) ⇒ Object
Deletes traffic type of a physical network
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_traffic_type.rb', line 9 def delete_traffic_type(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteTrafficType') else .merge!('command' => 'deleteTrafficType', 'id' => args[0]) end request() end |
#delete_ucs_manager(ucsmanagerid, options = {}) ⇒ Object
Delete a Ucs manager
9 10 11 12 13 14 15 |
# File 'lib/fog/cloudstack/requests/compute/delete_ucs_manager.rb', line 9 def delete_ucs_manager(ucsmanagerid, ={}) .merge!( 'command' => 'deleteUcsManager', 'ucsmanagerid' => ucsmanagerid ) request() end |
#delete_user(*args) ⇒ Object
Deletes a user for an account
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_user.rb', line 9 def delete_user(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteUser') else .merge!('command' => 'deleteUser', 'id' => args[0]) end request() end |
#delete_vlan_ip_range(*args) ⇒ Object
Creates a VLAN IP range.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_vlan_ip_range.rb', line 9 def delete_vlan_ip_range(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteVlanIpRange') else .merge!('command' => 'deleteVlanIpRange', 'id' => args[0]) end request() end |
#delete_vm_snapshot(*args) ⇒ Object
Deletes a vmsnapshot.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_vm_snapshot.rb', line 9 def delete_vm_snapshot(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteVMSnapshot') else .merge!('command' => 'deleteVMSnapshot', 'vmsnapshotid' => args[0]) end request() end |
#delete_volume(*args) ⇒ Object
Deletes a detached disk volume.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_volume.rb', line 9 def delete_volume(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteVolume') else .merge!('command' => 'deleteVolume', 'id' => args[0]) end request() end |
#delete_vpc(*args) ⇒ Object
Deletes a VPC
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_vpc.rb', line 9 def delete_vpc(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteVPC') else .merge!('command' => 'deleteVPC', 'id' => args[0]) end request() end |
#delete_vpcoffering(*args) ⇒ Object
Deletes VPC offering
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_vpcoffering.rb', line 9 def delete_vpcoffering(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteVPCOffering') else .merge!('command' => 'deleteVPCOffering', 'id' => args[0]) end request() end |
#delete_vpn_connection(*args) ⇒ Object
Delete site to site vpn connection
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_vpn_connection.rb', line 9 def delete_vpn_connection(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteVpnConnection') else .merge!('command' => 'deleteVpnConnection', 'id' => args[0]) end request() end |
#delete_vpn_customer_gateway(*args) ⇒ Object
Delete site to site vpn customer gateway
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_vpn_customer_gateway.rb', line 9 def delete_vpn_customer_gateway(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteVpnCustomerGateway') else .merge!('command' => 'deleteVpnCustomerGateway', 'id' => args[0]) end request() end |
#delete_vpn_gateway(*args) ⇒ Object
Delete site to site vpn gateway
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_vpn_gateway.rb', line 9 def delete_vpn_gateway(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteVpnGateway') else .merge!('command' => 'deleteVpnGateway', 'id' => args[0]) end request() end |
#delete_zone(*args) ⇒ Object
Deletes a Zone.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/delete_zone.rb', line 9 def delete_zone(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deleteZone') else .merge!('command' => 'deleteZone', 'id' => args[0]) end request() end |
#deploy_virtual_machine(*args) ⇒ Object
Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb', line 9 def deploy_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'deployVirtualMachine') else .merge!('command' => 'deployVirtualMachine', 'templateid' => args[0], 'zoneid' => args[1], 'serviceofferingid' => args[2]) end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#destroy_lun_on_filer(path, options = {}) ⇒ Object
Destroy a LUN
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, ={}) .merge!( 'command' => 'destroyLunOnFiler', 'path' => path ) request() end |
#destroy_router(*args) ⇒ Object
Destroys a router.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/destroy_router.rb', line 9 def destroy_router(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'destroyRouter') else .merge!('command' => 'destroyRouter', 'id' => args[0]) end request() end |
#destroy_system_vm(*args) ⇒ Object
Destroyes a system virtual machine.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/destroy_system_vm.rb', line 9 def destroy_system_vm(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'destroySystemVm') else .merge!('command' => 'destroySystemVm', 'id' => args[0]) end request() end |
#destroy_virtual_machine(*args) ⇒ Object
Destroys a virtual machine. Once destroyed, only the administrator can recover it.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/destroy_virtual_machine.rb', line 9 def destroy_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'destroyVirtualMachine') else .merge!('command' => 'destroyVirtualMachine', 'id' => args[0]) end request() end |
#destroy_volume_on_filer(ipaddress, aggregatename, volumename, options = {}) ⇒ Object
Destroy a Volume
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, ={}) .merge!( 'command' => 'destroyVolumeOnFiler', 'ipaddress' => ipaddress, 'aggregatename' => aggregatename, 'volumename' => volumename ) request() end |
#detach_iso(*args) ⇒ Object
Detaches any ISO file (if any) currently attached to a virtual machine.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/detach_iso.rb', line 9 def detach_iso(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'detachIso') else .merge!('command' => 'detachIso', 'virtualmachineid' => args[0]) end request() end |
#detach_volume(*args) ⇒ Object
Detaches a disk volume from a virtual machine.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/detach_volume.rb', line 9 def detach_volume(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'detachVolume') else .merge!('command' => 'detachVolume') end request() end |
#disable_account(*args) ⇒ Object
Disables an account
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/disable_account.rb', line 9 def disable_account(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'disableAccount') else .merge!('command' => 'disableAccount', 'lock' => args[0]) end request() end |
#disable_auto_scale_vm_group(*args) ⇒ Object
Disables an AutoScale Vm Group
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/disable_auto_scale_vm_group.rb', line 9 def disable_auto_scale_vm_group(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'disableAutoScaleVmGroup') else .merge!('command' => 'disableAutoScaleVmGroup', 'id' => args[0]) end request() end |
#disable_cisco_nexus_vsm(*args) ⇒ Object
disable a Cisco Nexus VSM device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/disable_cisco_nexus_vsm.rb', line 9 def disable_cisco_nexus_vsm(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'disableCiscoNexusVSM') else .merge!('command' => 'disableCiscoNexusVSM', 'id' => args[0]) end request() end |
#disable_static_nat(*args) ⇒ Object
Disables static rule for given ip address
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/disable_static_nat.rb', line 9 def disable_static_nat(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'disableStaticNat') else .merge!('command' => 'disableStaticNat', 'ipaddressid' => args[0]) end request() end |
#disable_user(*args) ⇒ Object
Disables a user account
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/disable_user.rb', line 9 def disable_user(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'disableUser') else .merge!('command' => 'disableUser', 'id' => args[0]) end request() end |
#disassociate_ip_address(*args) ⇒ Object
Disassociates an ip address from the account.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/disassociate_ip_address.rb', line 9 def disassociate_ip_address(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'disassociateIpAddress') else .merge!('command' => 'disassociateIpAddress', 'id' => args[0]) end request() end |
#disassociate_ucs_profile_from_blade(bladeid, options = {}) ⇒ Object
disassociate a profile from a blade
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, ={}) .merge!( 'command' => 'disassociateUcsProfileFromBlade', 'bladeid' => bladeid ) request() end |
#dissociate_lun(iqn, path, options = {}) ⇒ Object
Dissociate a LUN
9 10 11 12 13 14 15 16 |
# File 'lib/fog/cloudstack/requests/compute/dissociate_lun.rb', line 9 def dissociate_lun(iqn, path, ={}) .merge!( 'command' => 'dissociateLun', 'iqn' => iqn, 'path' => path ) request() end |
#enable_account(*args) ⇒ Object
Enables an account
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/enable_account.rb', line 9 def enable_account(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'enableAccount') else .merge!('command' => 'enableAccount') end request() end |
#enable_auto_scale_vm_group(*args) ⇒ Object
Enables an AutoScale Vm Group
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/enable_auto_scale_vm_group.rb', line 9 def enable_auto_scale_vm_group(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'enableAutoScaleVmGroup') else .merge!('command' => 'enableAutoScaleVmGroup', 'id' => args[0]) end request() end |
#enable_cisco_nexus_vsm(*args) ⇒ Object
Enable a Cisco Nexus VSM device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/enable_cisco_nexus_vsm.rb', line 9 def enable_cisco_nexus_vsm(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'enableCiscoNexusVSM') else .merge!('command' => 'enableCiscoNexusVSM', 'id' => args[0]) end request() end |
#enable_static_nat(*args) ⇒ Object
Enables static nat for given ip address
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/enable_static_nat.rb', line 9 def enable_static_nat(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'enableStaticNat') else .merge!('command' => 'enableStaticNat', 'ipaddressid' => args[0], 'virtualmachineid' => args[1]) end request() end |
#enable_storage_maintenance(*args) ⇒ Object
Puts storage pool into maintenance state
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/enable_storage_maintenance.rb', line 9 def enable_storage_maintenance(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'enableStorageMaintenance') else .merge!('command' => 'enableStorageMaintenance', 'id' => args[0]) end request() end |
#enable_user(*args) ⇒ Object
Enables a user account
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/enable_user.rb', line 9 def enable_user(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'enableUser') else .merge!('command' => 'enableUser', 'id' => args[0]) end request() end |
#expunge_virtual_machine(*args) ⇒ Object
Expunge a virtual machine. Once expunged, it cannot be recoverd.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/expunge_virtual_machine.rb', line 9 def expunge_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'expungeVirtualMachine') else .merge!('command' => 'expungeVirtualMachine', 'id' => args[0]) end request() end |
#extract_iso(*args) ⇒ Object
Extracts an ISO
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/extract_iso.rb', line 9 def extract_iso(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'extractIso') else .merge!('command' => 'extractIso', 'id' => args[0], 'mode' => args[1]) end request() end |
#extract_template(*args) ⇒ Object
Extracts a template
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/extract_template.rb', line 9 def extract_template(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'extractTemplate') else .merge!('command' => 'extractTemplate', 'mode' => args[0], 'id' => args[1]) end request() end |
#extract_volume(*args) ⇒ Object
Extracts volume
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/extract_volume.rb', line 9 def extract_volume(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'extractVolume') else .merge!('command' => 'extractVolume', 'mode' => args[0], 'id' => args[1], 'zoneid' => args[2]) end request() end |
#find_hosts_for_migration(*args) ⇒ Object
Find hosts suitable for migrating a virtual machine.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/find_hosts_for_migration.rb', line 9 def find_hosts_for_migration(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'findHostsForMigration') else .merge!('command' => 'findHostsForMigration', 'virtualmachineid' => args[0]) end request() end |
#find_storage_pools_for_migration(*args) ⇒ Object
Lists storage pools available for migration of a volume.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/find_storage_pools_for_migration.rb', line 9 def find_storage_pools_for_migration(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'findStoragePoolsForMigration') else .merge!('command' => 'findStoragePoolsForMigration', 'id' => args[0]) end request() end |
#generate_alert(*args) ⇒ Object
Generates an alert
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/generate_alert.rb', line 9 def generate_alert(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'generateAlert') else .merge!('command' => 'generateAlert', 'description' => args[0], 'name' => args[1], 'type' => args[2]) end request() end |
#generate_usage_records(*args) ⇒ Object
Generates usage records. This will generate records only if there any records to be generated, i.e if the scheduled usage job was not run or failed
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/generate_usage_records.rb', line 9 def generate_usage_records(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'generateUsageRecords') else .merge!('command' => 'generateUsageRecords', 'enddate' => args[0], 'startdate' => args[1]) end request() end |
#get_api_limit(*args) ⇒ Object
Get API limit count for the caller
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/get_api_limit.rb', line 9 def get_api_limit(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'getApiLimit') else .merge!('command' => 'getApiLimit') end request() end |
#get_cloud_identifier(*args) ⇒ Object
Retrieves a cloud identifier.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/get_cloud_identifier.rb', line 9 def get_cloud_identifier(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'getCloudIdentifier') else .merge!('command' => 'getCloudIdentifier', 'userid' => args[0]) end request() end |
#get_user(*args) ⇒ Object
Find user account by API key
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/get_user.rb', line 9 def get_user(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'getUser') else .merge!('command' => 'getUser', 'apikey' => args[0]) end request() end |
#get_virtual_machine_user_data(*args) ⇒ Object
Returns user data associated with the VM
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/get_virtual_machine_user_data.rb', line 9 def get_virtual_machine_user_data(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'getVirtualMachineUserData') else .merge!('command' => 'getVirtualMachineUserData', 'virtualmachineid' => args[0]) end request() end |
#get_vm_password(*args) ⇒ Object
Returns an encrypted password for the VM
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/get_vm_password.rb', line 9 def get_vm_password(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'getVMPassword') else .merge!('command' => 'getVMPassword', 'id' => args[0]) end request() end |
#import_ldap_users(*args) ⇒ Object
Import LDAP users
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/import_ldap_users.rb', line 9 def import_ldap_users(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'importLdapUsers') else .merge!('command' => 'importLdapUsers', 'accounttype' => args[0]) end request() end |
#instantiate_ucs_template_and_assocaciate_to_blade(bladeid, templatedn, ucsmanagerid, options = {}) ⇒ Object
create a profile of template and associate to a blade
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, ={}) .merge!( 'command' => 'instantiateUcsTemplateAndAssocaciateToBlade', 'bladeid' => bladeid, 'templatedn' => templatedn, 'ucsmanagerid' => ucsmanagerid ) request() end |
#ldap_config(options = {}) ⇒ Object
Configure the LDAP context for this site.
9 10 11 12 13 14 |
# File 'lib/fog/cloudstack/requests/compute/ldap_config.rb', line 9 def ldap_config(={}) .merge!( 'command' => 'ldapConfig' ) request() end |
#ldap_create_account(*args) ⇒ Object
Creates an account from an LDAP user
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/ldap_create_account.rb', line 9 def ldap_create_account(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'ldapCreateAccount') else .merge!('command' => 'ldapCreateAccount', 'username' => args[0], 'accounttype' => args[1]) end request() end |
#ldap_remove(options = {}) ⇒ Object
Remove the LDAP context for this site.
9 10 11 12 13 14 |
# File 'lib/fog/cloudstack/requests/compute/ldap_remove.rb', line 9 def ldap_remove(={}) .merge!( 'command' => 'ldapRemove' ) request() end |
#list_accounts(*args) ⇒ Object
Lists accounts and provides detailed account information for listed accounts
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_accounts.rb', line 9 def list_accounts(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listAccounts') else .merge!('command' => 'listAccounts') end request() end |
#list_affinity_group_types(*args) ⇒ Object
Lists affinity group types available
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_affinity_group_types.rb', line 9 def list_affinity_group_types(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listAffinityGroupTypes') else .merge!('command' => 'listAffinityGroupTypes') end request() end |
#list_affinity_groups(*args) ⇒ Object
Lists affinity groups
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_affinity_groups.rb', line 9 def list_affinity_groups(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listAffinityGroups') else .merge!('command' => 'listAffinityGroups') end request() end |
#list_alerts(*args) ⇒ Object
Lists all alerts.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_alerts.rb', line 9 def list_alerts(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listAlerts') else .merge!('command' => 'listAlerts') end request() end |
#list_apis(*args) ⇒ Object
lists all available apis on the server, provided by the Api Discovery plugin
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_apis.rb', line 9 def list_apis(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listApis') else .merge!('command' => 'listApis') end request() end |
#list_async_jobs(*args) ⇒ Object
Lists all pending asynchronous jobs for the account.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_async_jobs.rb', line 9 def list_async_jobs(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listAsyncJobs') else .merge!('command' => 'listAsyncJobs') end request() end |
#list_auto_scale_policies(*args) ⇒ Object
Lists autoscale policies.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_auto_scale_policies.rb', line 9 def list_auto_scale_policies(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listAutoScalePolicies') else .merge!('command' => 'listAutoScalePolicies') end request() end |
#list_auto_scale_vm_groups(*args) ⇒ Object
Lists autoscale vm groups.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_auto_scale_vm_groups.rb', line 9 def list_auto_scale_vm_groups(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listAutoScaleVmGroups') else .merge!('command' => 'listAutoScaleVmGroups') end request() end |
#list_auto_scale_vm_profiles(*args) ⇒ Object
Lists autoscale vm profiles.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_auto_scale_vm_profiles.rb', line 9 def list_auto_scale_vm_profiles(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listAutoScaleVmProfiles') else .merge!('command' => 'listAutoScaleVmProfiles') end request() end |
#list_baremetal_dhcp(*args) ⇒ Object
list baremetal dhcp servers
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_baremetal_dhcp.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listBaremetalDhcp') else .merge!('command' => 'listBaremetalDhcp') end request() end |
#list_baremetal_pxe_servers(*args) ⇒ Object
list baremetal pxe server
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_baremetal_pxe_servers.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listBaremetalPxeServers') else .merge!('command' => 'listBaremetalPxeServers') end request() end |
#list_big_switch_vns_devices(*args) ⇒ Object
Lists BigSwitch Vns devices
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_big_switch_vns_devices.rb', line 9 def list_big_switch_vns_devices(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listBigSwitchVnsDevices') else .merge!('command' => 'listBigSwitchVnsDevices') end request() end |
#list_capabilities(*args) ⇒ Object
Lists capabilities
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_capabilities.rb', line 9 def list_capabilities(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listCapabilities') else .merge!('command' => 'listCapabilities') end request() end |
#list_capacity(*args) ⇒ Object
Lists all the system wide capacities.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_capacity.rb', line 9 def list_capacity(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listCapacity') else .merge!('command' => 'listCapacity') end request() end |
#list_cisco_asa1000v_resources(*args) ⇒ Object
Lists Cisco ASA 1000v appliances
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_cisco_asa1000v_resources.rb', line 9 def list_cisco_asa1000v_resources(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listCiscoAsa1000vResources') else .merge!('command' => 'listCiscoAsa1000vResources') end request() end |
#list_cisco_nexus_vsms(*args) ⇒ Object
Retrieves a Cisco Nexus 1000v Virtual Switch Manager device associated with a Cluster
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_cisco_nexus_vsms.rb', line 9 def list_cisco_nexus_vsms(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listCiscoNexusVSMs') else .merge!('command' => 'listCiscoNexusVSMs') end request() end |
#list_cisco_vnmc_resources(*args) ⇒ Object
Lists Cisco VNMC controllers
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_cisco_vnmc_resources.rb', line 9 def list_cisco_vnmc_resources(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listCiscoVnmcResources') else .merge!('command' => 'listCiscoVnmcResources') end request() end |
#list_clusters(*args) ⇒ Object
Lists clusters.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_clusters.rb', line 9 def list_clusters(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listClusters') else .merge!('command' => 'listClusters') end request() end |
#list_conditions(*args) ⇒ Object
List Conditions for the specific user
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_conditions.rb', line 9 def list_conditions(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listConditions') else .merge!('command' => 'listConditions') end request() end |
#list_configurations(*args) ⇒ Object
Lists all configurations.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_configurations.rb', line 9 def list_configurations(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listConfigurations') else .merge!('command' => 'listConfigurations') end request() end |
#list_counters(*args) ⇒ Object
List the counters
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_counters.rb', line 9 def list_counters(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listCounters') else .merge!('command' => 'listCounters') end request() end |
#list_dedicated_clusters(*args) ⇒ Object
Lists dedicated clusters.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_dedicated_clusters.rb', line 9 def list_dedicated_clusters(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listDedicatedClusters') else .merge!('command' => 'listDedicatedClusters') end request() end |
#list_dedicated_guest_vlan_ranges(*args) ⇒ Object
Lists dedicated guest vlan ranges
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_dedicated_guest_vlan_ranges.rb', line 9 def list_dedicated_guest_vlan_ranges(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listDedicatedGuestVlanRanges') else .merge!('command' => 'listDedicatedGuestVlanRanges') end request() end |
#list_dedicated_hosts(*args) ⇒ Object
Lists dedicated hosts.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_dedicated_hosts.rb', line 9 def list_dedicated_hosts(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listDedicatedHosts') else .merge!('command' => 'listDedicatedHosts') end request() end |
#list_dedicated_pods(*args) ⇒ Object
Lists dedicated pods.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_dedicated_pods.rb', line 9 def list_dedicated_pods(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listDedicatedPods') else .merge!('command' => 'listDedicatedPods') end request() end |
#list_dedicated_zones(*args) ⇒ Object
List dedicated zones.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_dedicated_zones.rb', line 9 def list_dedicated_zones(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listDedicatedZones') else .merge!('command' => 'listDedicatedZones') end request() end |
#list_deployment_planners(*args) ⇒ Object
Lists all DeploymentPlanners available.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_deployment_planners.rb', line 9 def list_deployment_planners(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listDeploymentPlanners') else .merge!('command' => 'listDeploymentPlanners') end request() end |
#list_disk_offerings(*args) ⇒ Object
Lists all available disk offerings.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_disk_offerings.rb', line 9 def list_disk_offerings(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listDiskOfferings') else .merge!('command' => 'listDiskOfferings') end request() end |
#list_domain_children(*args) ⇒ Object
Lists all children domains belonging to a specified domain
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_domain_children.rb', line 9 def list_domain_children(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listDomainChildren') else .merge!('command' => 'listDomainChildren') end request() end |
#list_domains(*args) ⇒ Object
Lists domains and provides detailed information for listed domains
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_domains.rb', line 9 def list_domains(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listDomains') else .merge!('command' => 'listDomains') end request() end |
#list_egress_firewall_rules(*args) ⇒ Object
Lists all egress firewall rules for network id.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/list_egress_firewall_rules.rb', line 9 def list_egress_firewall_rules(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listEgressFirewallRules') else .merge!('command' => 'listEgressFirewallRules') end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#list_event_types(*args) ⇒ Object
List Event Types
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_event_types.rb', line 9 def list_event_types(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listEventTypes') else .merge!('command' => 'listEventTypes') end request() end |
#list_events(*args) ⇒ Object
A command to list events.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_events.rb', line 9 def list_events(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listEvents') else .merge!('command' => 'listEvents') end request() end |
#list_external_firewalls(*args) ⇒ Object
List external firewall appliances.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_external_firewalls.rb', line 9 def list_external_firewalls(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listExternalFirewalls') else .merge!('command' => 'listExternalFirewalls', 'zoneid' => args[0]) end request() end |
#list_external_load_balancers(*args) ⇒ Object
Lists F5 external load balancer appliances added in a zone.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_external_load_balancers.rb', line 9 def list_external_load_balancers(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listExternalLoadBalancers') else .merge!('command' => 'listExternalLoadBalancers') end request() end |
#list_f5_load_balancer_networks(*args) ⇒ Object
lists network that are using a F5 load balancer device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_f5_load_balancer_networks.rb', line 9 def list_f5_load_balancer_networks(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listF5LoadBalancerNetworks') else .merge!('command' => 'listF5LoadBalancerNetworks', 'lbdeviceid' => args[0]) end request() end |
#list_f5_load_balancers(*args) ⇒ Object
lists F5 load balancer devices
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_f5_load_balancers.rb', line 9 def list_f5_load_balancers(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listF5LoadBalancers') else .merge!('command' => 'listF5LoadBalancers') end request() end |
#list_firewall_rules(*args) ⇒ Object
Lists all firewall rules for an IP address.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/list_firewall_rules.rb', line 9 def list_firewall_rules(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listFirewallRules') else .merge!('command' => 'listFirewallRules') end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#list_global_load_balancer_rules(*args) ⇒ Object
Lists load balancer rules.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_global_load_balancer_rules.rb', line 9 def list_global_load_balancer_rules(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listGlobalLoadBalancerRules') else .merge!('command' => 'listGlobalLoadBalancerRules') end request() end |
#list_guest_os_mapping(*args) ⇒ Object
Lists all available OS mappings for given hypervisor
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_guest_os_mapping.rb', line 9 def list_guest_os_mapping(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listGuestOsMapping') else .merge!('command' => 'listGuestOsMapping') end request() end |
#list_hosts(*args) ⇒ Object
Lists hosts.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_hosts.rb', line 9 def list_hosts(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listHosts') else .merge!('command' => 'listHosts') end request() end |
#list_hypervisor_capabilities(*args) ⇒ Object
Lists all hypervisor capabilities.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_hypervisor_capabilities.rb', line 9 def list_hypervisor_capabilities(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listHypervisorCapabilities') else .merge!('command' => 'listHypervisorCapabilities') end request() end |
#list_hypervisors(*args) ⇒ Object
List hypervisors
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_hypervisors.rb', line 9 def list_hypervisors(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listHypervisors') else .merge!('command' => 'listHypervisors') end request() end |
#list_image_stores(*args) ⇒ Object
Lists image stores.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_image_stores.rb', line 9 def list_image_stores(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listImageStores') else .merge!('command' => 'listImageStores') end request() end |
#list_instance_groups(*args) ⇒ Object
Lists vm groups
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_instance_groups.rb', line 9 def list_instance_groups(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listInstanceGroups') else .merge!('command' => 'listInstanceGroups') end request() end |
#list_internal_load_balancer_elements(*args) ⇒ Object
Lists all available Internal Load Balancer elements.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_internal_load_balancer_elements.rb', line 9 def list_internal_load_balancer_elements(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listInternalLoadBalancerElements') else .merge!('command' => 'listInternalLoadBalancerElements') end request() end |
#list_internal_load_balancer_vms(*args) ⇒ Object
List internal LB VMs.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_internal_load_balancer_vms.rb', line 9 def list_internal_load_balancer_vms(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listInternalLoadBalancerVMs') else .merge!('command' => 'listInternalLoadBalancerVMs') end request() end |
#list_ip_forwarding_rules(*args) ⇒ Object
List the ip forwarding rules
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_ip_forwarding_rules.rb', line 9 def list_ip_forwarding_rules(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listIpForwardingRules') else .merge!('command' => 'listIpForwardingRules') end request() end |
#list_iso_permissions(*args) ⇒ Object
List iso visibility and all accounts that have permissions to view this iso.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_iso_permissions.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listIsoPermissions') else .merge!('command' => 'listIsoPermissions', 'id' => args[0]) end request() end |
#list_isos(*args) ⇒ Object
Lists all available ISO files.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_isos.rb', line 9 def list_isos(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listIsos') else .merge!('command' => 'listIsos') end request() end |
#list_lb_health_check_policies(*args) ⇒ Object
Lists load balancer HealthCheck policies.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_lb_health_check_policies.rb', line 9 def list_lb_health_check_policies(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listLBHealthCheckPolicies') else .merge!('command' => 'listLBHealthCheckPolicies') end request() end |
#list_lb_stickiness_policies(*args) ⇒ Object
Lists LBStickiness policies.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_lb_stickiness_policies.rb', line 9 def list_lb_stickiness_policies(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listLBStickinessPolicies') else .merge!('command' => 'listLBStickinessPolicies') end request() end |
#list_ldap_configurations(*args) ⇒ Object
Lists all LDAP configurations
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_ldap_configurations.rb', line 9 def list_ldap_configurations(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listLdapConfigurations') else .merge!('command' => 'listLdapConfigurations') end request() end |
#list_ldap_users(*args) ⇒ Object
Lists all LDAP Users
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_ldap_users.rb', line 9 def list_ldap_users(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listLdapUsers') else .merge!('command' => 'listLdapUsers') end request() end |
#list_load_balancer_rule_instances(*args) ⇒ Object
List all virtual machine instances that are assigned to a load balancer rule.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_load_balancer_rule_instances.rb', line 9 def list_load_balancer_rule_instances(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listLoadBalancerRuleInstances') else .merge!('command' => 'listLoadBalancerRuleInstances', 'id' => args[0]) end request() end |
#list_load_balancer_rules(*args) ⇒ Object
Lists load balancer rules.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_load_balancer_rules.rb', line 9 def list_load_balancer_rules(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listLoadBalancerRules') else .merge!('command' => 'listLoadBalancerRules') end request() end |
#list_load_balancers(*args) ⇒ Object
Lists Load Balancers
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_load_balancers.rb', line 9 def list_load_balancers(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listLoadBalancers') else .merge!('command' => 'listLoadBalancers') end request() end |
#list_luns_on_filer(poolname, options = {}) ⇒ Object
List LUN
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, ={}) .merge!( 'command' => 'listLunsOnFiler', 'poolname' => poolname ) request() end |
#list_netscaler_load_balancer_networks(*args) ⇒ Object
lists network that are using a netscaler load balancer device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_netscaler_load_balancer_networks.rb', line 9 def list_netscaler_load_balancer_networks(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listNetscalerLoadBalancerNetworks') else .merge!('command' => 'listNetscalerLoadBalancerNetworks', 'lbdeviceid' => args[0]) end request() end |
#list_netscaler_load_balancers(*args) ⇒ Object
lists netscaler load balancer devices
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_netscaler_load_balancers.rb', line 9 def list_netscaler_load_balancers(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listNetscalerLoadBalancers') else .merge!('command' => 'listNetscalerLoadBalancers') end request() end |
#list_network_acl_lists(*args) ⇒ Object
Lists all network ACLs
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_network_acl_lists.rb', line 9 def list_network_acl_lists(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listNetworkACLLists') else .merge!('command' => 'listNetworkACLLists') end request() end |
#list_network_acls(*args) ⇒ Object
Lists all network ACL items
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_network_acls.rb', line 9 def list_network_acls(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listNetworkACLs') else .merge!('command' => 'listNetworkACLs') end request() end |
#list_network_device(*args) ⇒ Object
List network devices
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_network_device.rb', line 9 def list_network_device(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listNetworkDevice') else .merge!('command' => 'listNetworkDevice') end request() end |
#list_network_isolation_methods(*args) ⇒ Object
Lists supported methods of network isolation
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_network_isolation_methods.rb', line 9 def list_network_isolation_methods(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listNetworkIsolationMethods') else .merge!('command' => 'listNetworkIsolationMethods') end request() end |
#list_network_offerings(*args) ⇒ Object
Lists all available network offerings.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_network_offerings.rb', line 9 def list_network_offerings(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listNetworkOfferings') else .merge!('command' => 'listNetworkOfferings') end request() end |
#list_network_service_providers(*args) ⇒ Object
Lists network serviceproviders for a given physical network.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_network_service_providers.rb', line 9 def list_network_service_providers(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listNetworkServiceProviders') else .merge!('command' => 'listNetworkServiceProviders') end request() end |
#list_networks(*args) ⇒ Object
Lists all available networks.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/list_networks.rb', line 9 def list_networks(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listNetworks') else .merge!('command' => 'listNetworks') end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#list_nicira_nvp_device_networks(*args) ⇒ Object
lists network that are using a nicira nvp device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_nicira_nvp_device_networks.rb', line 9 def list_nicira_nvp_device_networks(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listNiciraNvpDeviceNetworks') else .merge!('command' => 'listNiciraNvpDeviceNetworks', 'nvpdeviceid' => args[0]) end request() end |
#list_nicira_nvp_devices(*args) ⇒ Object
Lists Nicira NVP devices
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_nicira_nvp_devices.rb', line 9 def list_nicira_nvp_devices(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listNiciraNvpDevices') else .merge!('command' => 'listNiciraNvpDevices') end request() end |
#list_nics(*args) ⇒ Object
list the vm nics IP to NIC
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_nics.rb', line 9 def list_nics(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listNics') else .merge!('command' => 'listNics', 'virtualmachineid' => args[0]) end request() end |
#list_open_daylight_controllers(*args) ⇒ Object
Lists OpenDyalight controllers
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_open_daylight_controllers.rb', line 9 def list_open_daylight_controllers(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listOpenDaylightControllers') else .merge!('command' => 'listOpenDaylightControllers') end request() end |
#list_os_categories(*args) ⇒ Object
Lists all supported OS categories for this cloud.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_os_categories.rb', line 9 def list_os_categories(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listOsCategories') else .merge!('command' => 'listOsCategories') end request() end |
#list_os_types(*args) ⇒ Object
Lists all supported OS types for this cloud.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_os_types.rb', line 9 def list_os_types(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listOsTypes') else .merge!('command' => 'listOsTypes') end request() end |
#list_ovs_elements(*args) ⇒ Object
Lists all available ovs elements.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_ovs_elements.rb', line 9 def list_ovs_elements(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listOvsElements') else .merge!('command' => 'listOvsElements') end request() end |
#list_palo_alto_firewall_networks(*args) ⇒ Object
lists network that are using Palo Alto firewall device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_palo_alto_firewall_networks.rb', line 9 def list_palo_alto_firewall_networks(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listPaloAltoFirewallNetworks') else .merge!('command' => 'listPaloAltoFirewallNetworks', 'lbdeviceid' => args[0]) end request() end |
#list_palo_alto_firewalls(*args) ⇒ Object
lists Palo Alto firewall devices in a physical network
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_palo_alto_firewalls.rb', line 9 def list_palo_alto_firewalls(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listPaloAltoFirewalls') else .merge!('command' => 'listPaloAltoFirewalls') end request() end |
#list_physical_networks(*args) ⇒ Object
Lists physical networks
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_physical_networks.rb', line 9 def list_physical_networks(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listPhysicalNetworks') else .merge!('command' => 'listPhysicalNetworks') end request() end |
#list_pods(*args) ⇒ Object
Lists all Pods.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_pods.rb', line 9 def list_pods(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listPods') else .merge!('command' => 'listPods') end request() end |
#list_pools(options = {}) ⇒ Object
List Pool
9 10 11 12 13 14 |
# File 'lib/fog/cloudstack/requests/compute/list_pools.rb', line 9 def list_pools(={}) .merge!( 'command' => 'listPools' ) request() end |
#list_port_forwarding_rules(*args) ⇒ Object
Lists all port forwarding rules for an IP address.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/list_port_forwarding_rules.rb', line 9 def list_port_forwarding_rules(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listPortForwardingRules') else .merge!('command' => 'listPortForwardingRules') end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#list_portable_ip_ranges(*args) ⇒ Object
list portable IP ranges
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_portable_ip_ranges.rb', line 9 def list_portable_ip_ranges(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listPortableIpRanges') else .merge!('command' => 'listPortableIpRanges') end request() end |
#list_private_gateways(*args) ⇒ Object
List private gateways
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_private_gateways.rb', line 9 def list_private_gateways(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listPrivateGateways') else .merge!('command' => 'listPrivateGateways') end request() end |
#list_project_accounts(*args) ⇒ Object
Lists project’s accounts
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_project_accounts.rb', line 9 def list_project_accounts(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listProjectAccounts') else .merge!('command' => 'listProjectAccounts', 'projectid' => args[0]) end request() end |
#list_project_invitations(*args) ⇒ Object
Lists projects and provides detailed information for listed projects
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_project_invitations.rb', line 9 def list_project_invitations(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listProjectInvitations') else .merge!('command' => 'listProjectInvitations') end request() end |
#list_projects(*args) ⇒ Object
Lists projects and provides detailed information for listed projects
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_projects.rb', line 9 def list_projects(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listProjects') else .merge!('command' => 'listProjects') end request() end |
#list_public_ip_addresses(*args) ⇒ Object
Lists all public ip addresses
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/list_public_ip_addresses.rb', line 9 def list_public_ip_addresses(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listPublicIpAddresses') else .merge!('command' => 'listPublicIpAddresses') end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#list_regions(*args) ⇒ Object
Lists Regions
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_regions.rb', line 9 def list_regions(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listRegions') else .merge!('command' => 'listRegions') end request() end |
#list_remote_access_vpns(*args) ⇒ Object
Lists remote access vpns
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_remote_access_vpns.rb', line 9 def list_remote_access_vpns(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listRemoteAccessVpns') else .merge!('command' => 'listRemoteAccessVpns') end request() end |
#list_resource_details(*args) ⇒ Object
List resource detail(s)
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_resource_details.rb', line 9 def list_resource_details(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listResourceDetails') else .merge!('command' => 'listResourceDetails', 'resourcetype' => args[0]) end request() end |
#list_resource_limits(*args) ⇒ Object
Lists resource limits.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_resource_limits.rb', line 9 def list_resource_limits(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listResourceLimits') else .merge!('command' => 'listResourceLimits') end request() end |
#list_routers(*args) ⇒ Object
List routers.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_routers.rb', line 9 def list_routers(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listRouters') else .merge!('command' => 'listRouters') end request() end |
#list_s3s(*args) ⇒ Object
Lists S3s
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_s3s.rb', line 9 def list_s3s(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listS3s') else .merge!('command' => 'listS3s') end request() end |
#list_secondary_staging_stores(*args) ⇒ Object
Lists secondary staging stores.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_secondary_staging_stores.rb', line 9 def list_secondary_staging_stores(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listSecondaryStagingStores') else .merge!('command' => 'listSecondaryStagingStores') end request() end |
#list_security_groups(*args) ⇒ Object
Lists security groups
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_security_groups.rb', line 9 def list_security_groups(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listSecurityGroups') else .merge!('command' => 'listSecurityGroups') end request() end |
#list_service_offerings(*args) ⇒ Object
Lists all available service offerings.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_service_offerings.rb', line 9 def list_service_offerings(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listServiceOfferings') else .merge!('command' => 'listServiceOfferings') end request() end |
#list_snapshot_policies(*args) ⇒ Object
Lists snapshot policies.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_snapshot_policies.rb', line 9 def list_snapshot_policies(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listSnapshotPolicies') else .merge!('command' => 'listSnapshotPolicies', 'volumeid' => args[0]) end request() end |
#list_snapshots(*args) ⇒ Object
Lists all available snapshots for the account.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/list_snapshots.rb', line 9 def list_snapshots(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listSnapshots') else .merge!('command' => 'listSnapshots') end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#list_srx_firewall_networks(*args) ⇒ Object
lists network that are using SRX firewall device
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_srx_firewall_networks.rb', line 9 def list_srx_firewall_networks(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listSrxFirewallNetworks') else .merge!('command' => 'listSrxFirewallNetworks', 'lbdeviceid' => args[0]) end request() end |
#list_srx_firewalls(*args) ⇒ Object
lists SRX firewall devices in a physical network
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_srx_firewalls.rb', line 9 def list_srx_firewalls(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listSrxFirewalls') else .merge!('command' => 'listSrxFirewalls') end request() end |
#list_ssh_key_pairs(*args) ⇒ Object
List registered keypairs
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/list_ssh_key_pairs.rb', line 9 def list_ssh_key_pairs(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listSSHKeyPairs') else .merge!('command' => 'listSSHKeyPairs') end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#list_ssl_certs(*args) ⇒ Object
Lists SSL certificates
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_ssl_certs.rb', line 9 def list_ssl_certs(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listSslCerts') else .merge!('command' => 'listSslCerts') end request() end |
#list_static_routes(*args) ⇒ Object
Lists all static routes
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_static_routes.rb', line 9 def list_static_routes(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listStaticRoutes') else .merge!('command' => 'listStaticRoutes') end request() end |
#list_storage_network_ip_range(*args) ⇒ Object
List a storage network IP range.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_storage_network_ip_range.rb', line 9 def list_storage_network_ip_range(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listStorageNetworkIpRange') else .merge!('command' => 'listStorageNetworkIpRange') end request() end |
#list_storage_pools(*args) ⇒ Object
Lists storage pools.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_storage_pools.rb', line 9 def list_storage_pools(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listStoragePools') else .merge!('command' => 'listStoragePools') end request() end |
#list_storage_providers(*args) ⇒ Object
Lists storage providers.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_storage_providers.rb', line 9 def list_storage_providers(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listStorageProviders') else .merge!('command' => 'listStorageProviders', 'type' => args[0]) end request() end |
#list_supported_network_services(*args) ⇒ Object
Lists all network services provided by CloudStack or for the given Provider.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_supported_network_services.rb', line 9 def list_supported_network_services(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listSupportedNetworkServices') else .merge!('command' => 'listSupportedNetworkServices') end request() end |
#list_swifts(*args) ⇒ Object
List Swift.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_swifts.rb', line 9 def list_swifts(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listSwifts') else .merge!('command' => 'listSwifts') end request() end |
#list_system_vms(*args) ⇒ Object
List system virtual machines.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_system_vms.rb', line 9 def list_system_vms(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listSystemVms') else .merge!('command' => 'listSystemVms') end request() end |
#list_tags(*args) ⇒ Object
List resource tag(s)
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_tags.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listTags') else .merge!('command' => 'listTags') end request() end |
#list_template_permissions(*args) ⇒ Object
List template visibility and all accounts that have permissions to view this template.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_template_permissions.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listTemplatePermissions') else .merge!('command' => 'listTemplatePermissions', 'id' => args[0]) end request() end |
#list_templates(*args) ⇒ Object
List all public, private, and privileged templates.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/cloudstack/requests/compute/list_templates.rb', line 9 def list_templates(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listTemplates') else .merge!('command' => 'listTemplates', 'templatefilter' => args[0]) end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#list_traffic_monitors(*args) ⇒ Object
List traffic monitor Hosts.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_traffic_monitors.rb', line 9 def list_traffic_monitors(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listTrafficMonitors') else .merge!('command' => 'listTrafficMonitors', 'zoneid' => args[0]) end request() end |
#list_traffic_type_implementors(*args) ⇒ Object
Lists implementors of implementor of a network traffic type or implementors of all network traffic types
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_traffic_type_implementors.rb', line 9 def list_traffic_type_implementors(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listTrafficTypeImplementors') else .merge!('command' => 'listTrafficTypeImplementors') end request() end |
#list_traffic_types(*args) ⇒ Object
Lists traffic types of a given physical network.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_traffic_types.rb', line 9 def list_traffic_types(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listTrafficTypes') else .merge!('command' => 'listTrafficTypes', 'physicalnetworkid' => args[0]) end request() end |
#list_ucs_blades(*args) ⇒ Object
List ucs blades
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_ucs_blades.rb', line 9 def list_ucs_blades(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listUcsBlades') else .merge!('command' => 'listUcsBlades', 'ucsmanagerid' => args[0]) end request() end |
#list_ucs_managers(*args) ⇒ Object
List ucs manager
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_ucs_managers.rb', line 9 def list_ucs_managers(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listUcsManagers') else .merge!('command' => 'listUcsManagers') end request() end |
#list_ucs_profiles(*args) ⇒ Object
List profile in ucs manager
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_ucs_profiles.rb', line 9 def list_ucs_profiles(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listUcsProfiles') else .merge!('command' => 'listUcsProfiles', 'ucsmanagerid' => args[0]) end request() end |
#list_ucs_templates(ucsmanagerid, options = {}) ⇒ Object
List templates in ucs manager
9 10 11 12 13 14 15 |
# File 'lib/fog/cloudstack/requests/compute/list_ucs_templates.rb', line 9 def list_ucs_templates(ucsmanagerid, ={}) .merge!( 'command' => 'listUcsTemplates', 'ucsmanagerid' => ucsmanagerid ) request() end |
#list_usage_records(*args) ⇒ Object
Lists usage records for accounts
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/list_usage_records.rb', line 9 def list_usage_records(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listUsageRecords') else .merge!('command' => 'listUsageRecords', 'enddate' => args[0], 'startdate' => args[1]) end request() end |
#list_usage_types(*args) ⇒ Object
List Usage Types
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_usage_types.rb', line 9 def list_usage_types(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listUsageTypes') else .merge!('command' => 'listUsageTypes') end request() end |
#list_users(*args) ⇒ Object
Lists user accounts
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_users.rb', line 9 def list_users(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listUsers') else .merge!('command' => 'listUsers') end request() end |
#list_virtual_machines(*args) ⇒ Object
List the virtual machines owned by the account.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/list_virtual_machines.rb', line 9 def list_virtual_machines(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listVirtualMachines') else .merge!('command' => 'listVirtualMachines') end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#list_virtual_router_elements(*args) ⇒ Object
Lists all available virtual router elements.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_virtual_router_elements.rb', line 9 def list_virtual_router_elements(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listVirtualRouterElements') else .merge!('command' => 'listVirtualRouterElements') end request() end |
#list_vlan_ip_ranges(*args) ⇒ Object
Lists all VLAN IP ranges.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_vlan_ip_ranges.rb', line 9 def list_vlan_ip_ranges(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listVlanIpRanges') else .merge!('command' => 'listVlanIpRanges') end request() end |
#list_vm_snapshot(*args) ⇒ Object
List virtual machine snapshot by conditions
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/list_vm_snapshot.rb', line 9 def list_vm_snapshot(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listVMSnapshot') else .merge!('command' => 'listVMSnapshot') end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#list_vmware_dcs(*args) ⇒ Object
Retrieves VMware DC(s) associated with a zone.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/list_vmware_dcs.rb', line 9 def list_vmware_dcs(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listVmwareDcs') else .merge!('command' => 'listVmwareDcs', 'zoneid' => args[0]) end request() end |
#list_volumes(*args) ⇒ Object
Lists all volumes.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/list_volumes.rb', line 9 def list_volumes(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listVolumes') else .merge!('command' => 'listVolumes') end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#list_volumes_on_filer(poolname, options = {}) ⇒ Object
List Volumes
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, ={}) .merge!( 'command' => 'listVolumesOnFiler', 'poolname' => poolname ) request() end |
#list_vpc_offerings(*args) ⇒ Object
Lists VPC offerings
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_vpc_offerings.rb', line 9 def list_vpc_offerings(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listVPCOfferings') else .merge!('command' => 'listVPCOfferings') end request() end |
#list_vpcs(*args) ⇒ Object
Lists VPCs
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_vpcs.rb', line 9 def list_vpcs(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listVPCs') else .merge!('command' => 'listVPCs') end request() end |
#list_vpn_connections(*args) ⇒ Object
Lists site to site vpn connection gateways
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_vpn_connections.rb', line 9 def list_vpn_connections(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listVpnConnections') else .merge!('command' => 'listVpnConnections') end request() end |
#list_vpn_customer_gateways(*args) ⇒ Object
Lists site to site vpn customer gateways
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_vpn_customer_gateways.rb', line 9 def list_vpn_customer_gateways(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listVpnCustomerGateways') else .merge!('command' => 'listVpnCustomerGateways') end request() end |
#list_vpn_gateways(*args) ⇒ Object
Lists site 2 site vpn gateways
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_vpn_gateways.rb', line 9 def list_vpn_gateways(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listVpnGateways') else .merge!('command' => 'listVpnGateways') end request() end |
#list_vpn_users(*args) ⇒ Object
Lists vpn users
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_vpn_users.rb', line 9 def list_vpn_users(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listVpnUsers') else .merge!('command' => 'listVpnUsers') end request() end |
#list_zones(*args) ⇒ Object
Lists zones
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/list_zones.rb', line 9 def list_zones(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'listZones') else .merge!('command' => 'listZones') end request() end |
#lock_account(*args) ⇒ Object
Locks an account
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/lock_account.rb', line 9 def lock_account(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'lockAccount') else .merge!('command' => 'lockAccount', 'account' => args[0], 'domainid' => args[1]) end request() end |
#lock_user(*args) ⇒ Object
Locks a user account
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/lock_user.rb', line 9 def lock_user(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'lockUser') else .merge!('command' => 'lockUser', 'id' => args[0]) end request() end |
#login(username, password, domain) ⇒ Object
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 |
# File 'lib/fog/cloudstack/compute.rb', line 561 def login(username,password,domain) response = issue_request({ 'response' => 'json', 'command' => 'login', 'username' => username, 'password' => Digest::MD5.hexdigest(password), 'domain' => domain }) # Parse response cookies to retrive JSESSIONID token = CGI::Cookie.parse(response.headers['Set-Cookie']) sessionid = ['JSESSIONID'].first # Decode the login response response = Fog::JSON.decode(response.body) user = response['loginresponse'] user.merge!('sessionid' => sessionid) @cloudstack_session_id = user['sessionid'] @cloudstack_session_key = user['sessionkey'] user end |
#mark_default_zone_for_account(*args) ⇒ Object
Marks a default zone for this account
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/requests/compute/mark_default_zone_for_account.rb', line 9 def mark_default_zone_for_account(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'markDefaultZoneForAccount') else .merge!('command' => 'markDefaultZoneForAccount', 'zoneid' => args[0], 'account' => args[1], 'domainid' => args[2]) end request() end |
#migrate_system_vm(*args) ⇒ Object
Attempts Migration of a system virtual machine to the host specified.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/migrate_system_vm.rb', line 9 def migrate_system_vm(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'migrateSystemVm') else .merge!('command' => 'migrateSystemVm', 'virtualmachineid' => args[0], 'hostid' => args[1]) end request() end |
#migrate_virtual_machine(*args) ⇒ Object
Attempts Migration of a VM to a different host or Root volume of the vm to a different storage pool
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/migrate_virtual_machine.rb', line 9 def migrate_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'migrateVirtualMachine') else .merge!('command' => 'migrateVirtualMachine', 'virtualmachineid' => args[0]) end request() end |
#migrate_virtual_machine_with_volume(*args) ⇒ Object
Attempts Migration of a VM with its volumes to a different host
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/migrate_virtual_machine_with_volume.rb', line 9 def migrate_virtual_machine_with_volume(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'migrateVirtualMachineWithVolume') else .merge!('command' => 'migrateVirtualMachineWithVolume', 'hostid' => args[0], 'virtualmachineid' => args[1]) end request() end |
#migrate_volume(*args) ⇒ Object
Migrate volume
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/migrate_volume.rb', line 9 def migrate_volume(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'migrateVolume') else .merge!('command' => 'migrateVolume', 'storageid' => args[0], 'volumeid' => args[1]) end request() end |
#modify_pool(algorithm, poolname, options = {}) ⇒ Object
Modify pool
9 10 11 12 13 14 15 16 |
# File 'lib/fog/cloudstack/requests/compute/modify_pool.rb', line 9 def modify_pool(algorithm, poolname, ={}) .merge!( 'command' => 'modifyPool', 'algorithm' => algorithm, 'poolname' => poolname ) request() end |
#prepare_host_for_maintenance(*args) ⇒ Object
Prepares a host for maintenance.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/prepare_host_for_maintenance.rb', line 9 def prepare_host_for_maintenance(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'prepareHostForMaintenance') else .merge!('command' => 'prepareHostForMaintenance', 'id' => args[0]) end request() end |
#prepare_template(*args) ⇒ Object
load template into primary storage
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/prepare_template.rb', line 9 def prepare_template(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'prepareTemplate') else .merge!('command' => 'prepareTemplate', 'templateid' => args[0], 'zoneid' => args[1]) end request() end |
#query_async_job_result(*args) ⇒ Object
Retrieves the current status of asynchronous job.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/query_async_job_result.rb', line 9 def query_async_job_result(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'queryAsyncJobResult') else .merge!('command' => 'queryAsyncJobResult', 'jobid' => args[0]) end request() end |
#reboot_router(*args) ⇒ Object
Starts a router.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/reboot_router.rb', line 9 def reboot_router(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'rebootRouter') else .merge!('command' => 'rebootRouter', 'id' => args[0]) end request() end |
#reboot_system_vm(*args) ⇒ Object
Reboots a system VM.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/reboot_system_vm.rb', line 9 def reboot_system_vm(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'rebootSystemVm') else .merge!('command' => 'rebootSystemVm', 'id' => args[0]) end request() end |
#reboot_virtual_machine(*args) ⇒ Object
Reboots a virtual machine.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/reboot_virtual_machine.rb', line 9 def reboot_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'rebootVirtualMachine') else .merge!('command' => 'rebootVirtualMachine', 'id' => args[0]) end request() end |
#reconnect_host(*args) ⇒ Object
Reconnects a host.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/reconnect_host.rb', line 9 def reconnect_host(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'reconnectHost') else .merge!('command' => 'reconnectHost', 'id' => args[0]) end request() end |
#recover_virtual_machine(*args) ⇒ Object
Recovers a virtual machine.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/recover_virtual_machine.rb', line 9 def recover_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'recoverVirtualMachine') else .merge!('command' => 'recoverVirtualMachine', 'id' => args[0]) end request() end |
#refresh_ucs_blades(ucsmanagerid, options = {}) ⇒ Object
refresh ucs blades to sync with UCS manager
9 10 11 12 13 14 15 |
# File 'lib/fog/cloudstack/requests/compute/refresh_ucs_blades.rb', line 9 def refresh_ucs_blades(ucsmanagerid, ={}) .merge!( 'command' => 'refreshUcsBlades', 'ucsmanagerid' => ucsmanagerid ) request() end |
#register_iso(*args) ⇒ Object
Registers an existing ISO into the CloudStack Cloud.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/register_iso.rb', line 9 def register_iso(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'registerIso') else .merge!('command' => 'registerIso', 'name' => args[0], 'displaytext' => args[1], 'url' => args[2], 'zoneid' => args[3]) end request() end |
#register_ssh_key_pair(*args) ⇒ Object
Register a public key in a keypair under a certain name
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/register_ssh_key_pair.rb', line 9 def register_ssh_key_pair(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'registerSSHKeyPair') else .merge!('command' => 'registerSSHKeyPair', 'name' => args[0], 'publickey' => args[1]) end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#register_template(*args) ⇒ Object
Registers an existing template into the CloudStack cloud.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fog/cloudstack/requests/compute/register_template.rb', line 9 def register_template(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'registerTemplate') else .merge!('command' => 'registerTemplate', 'zoneid' => args[0], 'format' => args[1], 'hypervisor' => args[2], 'url' => args[3], 'name' => args[4], 'ostypeid' => args[5], 'displaytext' => args[6]) end request() end |
#register_user_keys(*args) ⇒ Object
This command allows a user to register for the developer API, returning a secret key and an API key. This request is made through the integration API port, so it is a privileged command and must be made on behalf of a user. It is up to the implementer just how the username and password are entered, and then how that translates to an integration API request. Both secret key and API key should be returned to the user
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/register_user_keys.rb', line 9 def register_user_keys(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'registerUserKeys') else .merge!('command' => 'registerUserKeys', 'id' => args[0]) end request() end |
#release_dedicated_cluster(*args) ⇒ Object
Release the dedication for cluster
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/release_dedicated_cluster.rb', line 9 def release_dedicated_cluster(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'releaseDedicatedCluster') else .merge!('command' => 'releaseDedicatedCluster', 'clusterid' => args[0]) end request() end |
#release_dedicated_guest_vlan_range(*args) ⇒ Object
Releases a dedicated guest vlan range to the system
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/release_dedicated_guest_vlan_range.rb', line 9 def release_dedicated_guest_vlan_range(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'releaseDedicatedGuestVlanRange') else .merge!('command' => 'releaseDedicatedGuestVlanRange', 'id' => args[0]) end request() end |
#release_dedicated_host(*args) ⇒ Object
Release the dedication for host
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/release_dedicated_host.rb', line 9 def release_dedicated_host(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'releaseDedicatedHost') else .merge!('command' => 'releaseDedicatedHost', 'hostid' => args[0]) end request() end |
#release_dedicated_pod(*args) ⇒ Object
Release the dedication for the pod
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/release_dedicated_pod.rb', line 9 def release_dedicated_pod(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'releaseDedicatedPod') else .merge!('command' => 'releaseDedicatedPod', 'podid' => args[0]) end request() end |
#release_dedicated_zone(*args) ⇒ Object
Release dedication of zone
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/release_dedicated_zone.rb', line 9 def release_dedicated_zone(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'releaseDedicatedZone') else .merge!('command' => 'releaseDedicatedZone', 'zoneid' => args[0]) end request() end |
#release_host_reservation(*args) ⇒ Object
Releases host reservation.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/release_host_reservation.rb', line 9 def release_host_reservation(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'releaseHostReservation') else .merge!('command' => 'releaseHostReservation', 'id' => args[0]) end request() end |
#release_public_ip_range(*args) ⇒ Object
Releases a Public IP range back to the system pool
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/release_public_ip_range.rb', line 9 def release_public_ip_range(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'releasePublicIpRange') else .merge!('command' => 'releasePublicIpRange', 'id' => args[0]) end request() end |
#reload ⇒ Object
557 558 559 |
# File 'lib/fog/cloudstack/compute.rb', line 557 def reload @connection.reset end |
#remove_cert_from_load_balancer(*args) ⇒ Object
Removes a certificate from a Load Balancer Rule
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/remove_cert_from_load_balancer.rb', line 9 def remove_cert_from_load_balancer(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'removeCertFromLoadBalancer') else .merge!('command' => 'removeCertFromLoadBalancer', 'lbruleid' => args[0]) end request() end |
#remove_from_global_load_balancer_rule(*args) ⇒ Object
Removes a load balancer rule association with global load balancer rule
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/remove_from_global_load_balancer_rule.rb', line 9 def remove_from_global_load_balancer_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'removeFromGlobalLoadBalancerRule') else .merge!('command' => 'removeFromGlobalLoadBalancerRule', 'id' => args[0], 'loadbalancerrulelist' => args[1]) end request() end |
#remove_from_load_balancer_rule(*args) ⇒ Object
Removes a virtual machine or a list of virtual machines from a load balancer rule.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/remove_from_load_balancer_rule.rb', line 9 def remove_from_load_balancer_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'removeFromLoadBalancerRule') else .merge!('command' => 'removeFromLoadBalancerRule', 'id' => args[0]) end request() end |
#remove_guest_os(*args) ⇒ Object
Removes a Guest OS from listing.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/remove_guest_os.rb', line 9 def remove_guest_os(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'removeGuestOs') else .merge!('command' => 'removeGuestOs', 'id' => args[0]) end request() end |
#remove_guest_os_mapping(*args) ⇒ Object
Removes a Guest OS Mapping.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/remove_guest_os_mapping.rb', line 9 def remove_guest_os_mapping(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'removeGuestOsMapping') else .merge!('command' => 'removeGuestOsMapping', 'id' => args[0]) end request() end |
#remove_ip_from_nic(*args) ⇒ Object
Removes secondary IP from the NIC.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/remove_ip_from_nic.rb', line 9 def remove_ip_from_nic(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'removeIpFromNic') else .merge!('command' => 'removeIpFromNic', 'id' => args[0]) end request() end |
#remove_nic_from_virtual_machine(*args) ⇒ Object
Removes VM from specified network by deleting a NIC
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/remove_nic_from_virtual_machine.rb', line 9 def remove_nic_from_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'removeNicFromVirtualMachine') else .merge!('command' => 'removeNicFromVirtualMachine', 'virtualmachineid' => args[0], 'nicid' => args[1]) end request() end |
#remove_region(*args) ⇒ Object
Removes specified region
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/remove_region.rb', line 9 def remove_region(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'removeRegion') else .merge!('command' => 'removeRegion', 'id' => args[0]) end request() end |
#remove_resource_detail(*args) ⇒ Object
Removes detail for the Resource.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/remove_resource_detail.rb', line 9 def remove_resource_detail(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'removeResourceDetail') else .merge!('command' => 'removeResourceDetail', 'resourcetype' => args[0], 'resourceid' => args[1]) end request() end |
#remove_vmware_dc(*args) ⇒ Object
Remove a VMware datacenter from a zone.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/remove_vmware_dc.rb', line 9 def remove_vmware_dc(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'removeVmwareDc') else .merge!('command' => 'removeVmwareDc', 'zoneid' => args[0]) end request() end |
#remove_vpn_user(*args) ⇒ Object
Removes vpn user
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/remove_vpn_user.rb', line 9 def remove_vpn_user(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'removeVpnUser') else .merge!('command' => 'removeVpnUser', 'username' => args[0]) end request() end |
#replace_network_acl_list(*args) ⇒ Object
Replaces ACL associated with a Network or private gateway
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/replace_network_acl_list.rb', line 9 def replace_network_acl_list(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'replaceNetworkACLList') else .merge!('command' => 'replaceNetworkACLList', 'aclid' => args[0]) end request() end |
#request(params) ⇒ Object
586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 |
# File 'lib/fog/cloudstack/compute.rb', line 586 def request(params) params.reject!{|k,v| v.nil?} params.merge!('response' => 'json') if has_session? params, headers = (params) elsif has_keys? params, headers = (params) end response = issue_request(params,headers) response = Fog::JSON.decode(response.body) unless response.body.empty? response end |
#reset_api_limit(*args) ⇒ Object
Reset api count
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/reset_api_limit.rb', line 9 def reset_api_limit(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'resetApiLimit') else .merge!('command' => 'resetApiLimit') end request() end |
#reset_password_for_virtual_machine(*args) ⇒ Object
Resets the password for virtual machine. The virtual machine must be in a “Stopped” state and the template must already support this feature for this command to take effect. [async]
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/reset_password_for_virtual_machine.rb', line 9 def reset_password_for_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'resetPasswordForVirtualMachine') else .merge!('command' => 'resetPasswordForVirtualMachine', 'id' => args[0]) end request() end |
#reset_ssh_key_for_virtual_machine(*args) ⇒ Object
Resets the SSH Key for virtual machine. The virtual machine must be in a “Stopped” state. [async]
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/cloudstack/requests/compute/reset_ssh_key_for_virtual_machine.rb', line 9 def reset_ssh_key_for_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'resetSSHKeyForVirtualMachine') else .merge!('command' => 'resetSSHKeyForVirtualMachine', 'id' => args[0], 'keypair' => args[1]) end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |
#reset_vpn_connection(*args) ⇒ Object
Reset site to site vpn connection
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/reset_vpn_connection.rb', line 9 def reset_vpn_connection(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'resetVpnConnection') else .merge!('command' => 'resetVpnConnection', 'id' => args[0]) end request() end |
#resize_volume(*args) ⇒ Object
Resizes a volume
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/resize_volume.rb', line 9 def resize_volume(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'resizeVolume') else .merge!('command' => 'resizeVolume', 'id' => args[0]) end request() end |
#restart_network(*args) ⇒ Object
Restarts the network; includes 1) restarting network elements - virtual routers, dhcp servers 2) reapplying all public ips 3) reapplying loadBalancing/portForwarding rules
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/restart_network.rb', line 9 def restart_network(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'restartNetwork') else .merge!('command' => 'restartNetwork', 'id' => args[0]) end request() end |
#restart_vpc(*args) ⇒ Object
Restarts a VPC
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/restart_vpc.rb', line 9 def restart_vpc(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'restartVPC') else .merge!('command' => 'restartVPC', 'id' => args[0]) end request() end |
#restore_virtual_machine(*args) ⇒ Object
Restore a VM to original template/ISO or new template/ISO
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/restore_virtual_machine.rb', line 9 def restore_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'restoreVirtualMachine') else .merge!('command' => 'restoreVirtualMachine', 'virtualmachineid' => args[0]) end request() end |
#revert_snapshot(*args) ⇒ Object
revert a volume snapshot.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/revert_snapshot.rb', line 9 def revert_snapshot(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'revertSnapshot') else .merge!('command' => 'revertSnapshot', 'id' => args[0]) end request() end |
#revert_to_vm_snapshot(*args) ⇒ Object
Revert VM from a vmsnapshot.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/revert_to_vm_snapshot.rb', line 9 def revert_to_vm_snapshot(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'revertToVMSnapshot') else .merge!('command' => 'revertToVMSnapshot', 'vmsnapshotid' => args[0]) end request() end |
#revoke_security_group_egress(*args) ⇒ Object
Deletes a particular egress rule from this security group
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/revoke_security_group_egress.rb', line 9 def revoke_security_group_egress(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'revokeSecurityGroupEgress') else .merge!('command' => 'revokeSecurityGroupEgress', 'id' => args[0]) end request() end |
#revoke_security_group_ingress(*args) ⇒ Object
Deletes a particular ingress rule from this security group
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/revoke_security_group_ingress.rb', line 9 def revoke_security_group_ingress(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'revokeSecurityGroupIngress') else .merge!('command' => 'revokeSecurityGroupIngress', 'id' => args[0]) end request() end |
#scale_system_vm(*args) ⇒ Object
Scale the service offering for a system vm (console proxy or secondary storage). The system vm must be in a “Stopped” state for this command to take effect.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/scale_system_vm.rb', line 9 def scale_system_vm(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'scaleSystemVm') else .merge!('command' => 'scaleSystemVm', 'serviceofferingid' => args[0], 'id' => args[1]) end request() end |
#scale_virtual_machine(*args) ⇒ Object
Scales the virtual machine to a new service offering.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/scale_virtual_machine.rb', line 9 def scale_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'scaleVirtualMachine') else .merge!('command' => 'scaleVirtualMachine', 'serviceofferingid' => args[0], 'id' => args[1]) end request() end |
#start_internal_load_balancer_vm(*args) ⇒ Object
Starts an existing internal lb vm.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/start_internal_load_balancer_vm.rb', line 9 def start_internal_load_balancer_vm(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'startInternalLoadBalancerVM') else .merge!('command' => 'startInternalLoadBalancerVM', 'id' => args[0]) end request() end |
#start_router(*args) ⇒ Object
Starts a router.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/start_router.rb', line 9 def start_router(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'startRouter') else .merge!('command' => 'startRouter', 'id' => args[0]) end request() end |
#start_system_vm(*args) ⇒ Object
Starts a system virtual machine.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/start_system_vm.rb', line 9 def start_system_vm(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'startSystemVm') else .merge!('command' => 'startSystemVm', 'id' => args[0]) end request() end |
#start_virtual_machine(*args) ⇒ Object
Starts a virtual machine.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/start_virtual_machine.rb', line 9 def start_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'startVirtualMachine') else .merge!('command' => 'startVirtualMachine', 'id' => args[0]) end request() end |
#stop_internal_load_balancer_vm(*args) ⇒ Object
Stops an Internal LB vm.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/stop_internal_load_balancer_vm.rb', line 9 def stop_internal_load_balancer_vm(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'stopInternalLoadBalancerVM') else .merge!('command' => 'stopInternalLoadBalancerVM', 'id' => args[0]) end request() end |
#stop_router(*args) ⇒ Object
Stops a router.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/stop_router.rb', line 9 def stop_router(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'stopRouter') else .merge!('command' => 'stopRouter', 'id' => args[0]) end request() end |
#stop_system_vm(*args) ⇒ Object
Stops a system VM.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/stop_system_vm.rb', line 9 def stop_system_vm(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'stopSystemVm') else .merge!('command' => 'stopSystemVm', 'id' => args[0]) end request() end |
#stop_virtual_machine(*args) ⇒ Object
Stops a virtual machine.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/stop_virtual_machine.rb', line 9 def stop_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'stopVirtualMachine') else .merge!('command' => 'stopVirtualMachine', 'id' => args[0]) end request() end |
#suspend_project(*args) ⇒ Object
Suspends a project
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/suspend_project.rb', line 9 def suspend_project(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'suspendProject') else .merge!('command' => 'suspendProject', 'id' => args[0]) end request() end |
#update_account(*args) ⇒ Object
Updates account information for the authenticated user
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_account.rb', line 9 def update_account(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateAccount') else .merge!('command' => 'updateAccount', 'newname' => args[0]) end request() end |
#update_auto_scale_policy(*args) ⇒ Object
Updates an existing autoscale policy.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_auto_scale_policy.rb', line 9 def update_auto_scale_policy(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateAutoScalePolicy') else .merge!('command' => 'updateAutoScalePolicy', 'id' => args[0]) end request() end |
#update_auto_scale_vm_group(*args) ⇒ Object
Updates an existing autoscale vm group.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_auto_scale_vm_group.rb', line 9 def update_auto_scale_vm_group(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateAutoScaleVmGroup') else .merge!('command' => 'updateAutoScaleVmGroup', 'id' => args[0]) end request() end |
#update_auto_scale_vm_profile(*args) ⇒ Object
Updates an existing autoscale vm profile.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_auto_scale_vm_profile.rb', line 9 def update_auto_scale_vm_profile(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateAutoScaleVmProfile') else .merge!('command' => 'updateAutoScaleVmProfile', 'id' => args[0]) end request() end |
#update_cloud_to_use_object_store(*args) ⇒ Object
Migrate current NFS secondary storages to use object store.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_cloud_to_use_object_store.rb', line 9 def update_cloud_to_use_object_store(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateCloudToUseObjectStore') else .merge!('command' => 'updateCloudToUseObjectStore', 'provider' => args[0]) end request() end |
#update_cluster(*args) ⇒ Object
Updates an existing cluster
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_cluster.rb', line 9 def update_cluster(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateCluster') else .merge!('command' => 'updateCluster', 'id' => args[0]) end request() end |
#update_configuration(*args) ⇒ Object
Updates a configuration.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_configuration.rb', line 9 def update_configuration(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateConfiguration') else .merge!('command' => 'updateConfiguration', 'name' => args[0]) end request() end |
#update_default_nic_for_virtual_machine(*args) ⇒ Object
Changes the default NIC on a VM
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/update_default_nic_for_virtual_machine.rb', line 9 def update_default_nic_for_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateDefaultNicForVirtualMachine') else .merge!('command' => 'updateDefaultNicForVirtualMachine', 'nicid' => args[0], 'virtualmachineid' => args[1]) end request() end |
#update_disk_offering(*args) ⇒ Object
Updates a disk offering.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_disk_offering.rb', line 9 def update_disk_offering(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateDiskOffering') else .merge!('command' => 'updateDiskOffering', 'id' => args[0]) end request() end |
#update_domain(*args) ⇒ Object
Updates a domain with a new name
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_domain.rb', line 9 def update_domain(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateDomain') else .merge!('command' => 'updateDomain', 'id' => args[0]) end request() end |
#update_egress_firewall_rule(*args) ⇒ Object
Updates egress firewall rule
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_egress_firewall_rule.rb', line 9 def update_egress_firewall_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateEgressFirewallRule') else .merge!('command' => 'updateEgressFirewallRule', 'id' => args[0]) end request() end |
#update_firewall_rule(*args) ⇒ Object
Updates firewall rule
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_firewall_rule.rb', line 9 def update_firewall_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateFirewallRule') else .merge!('command' => 'updateFirewallRule', 'id' => args[0]) end request() end |
#update_global_load_balancer_rule(*args) ⇒ Object
update global load balancer rules.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_global_load_balancer_rule.rb', line 9 def update_global_load_balancer_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateGlobalLoadBalancerRule') else .merge!('command' => 'updateGlobalLoadBalancerRule', 'id' => args[0]) end request() end |
#update_guest_os(*args) ⇒ Object
Updates the information about Guest OS
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/update_guest_os.rb', line 9 def update_guest_os(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateGuestOs') else .merge!('command' => 'updateGuestOs', 'id' => args[0], 'osdisplayname' => args[1]) end request() end |
#update_guest_os_mapping(*args) ⇒ Object
Updates the information about Guest OS to Hypervisor specific name mapping
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/update_guest_os_mapping.rb', line 9 def update_guest_os_mapping(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateGuestOsMapping') else .merge!('command' => 'updateGuestOsMapping', 'osnameforhypervisor' => args[0], 'id' => args[1]) end request() end |
#update_host(*args) ⇒ Object
Updates a host.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_host.rb', line 9 def update_host(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateHost') else .merge!('command' => 'updateHost', 'id' => args[0]) end request() end |
#update_host_password(*args) ⇒ Object
Update password of a host/pool on management server.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/update_host_password.rb', line 9 def update_host_password(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateHostPassword') else .merge!('command' => 'updateHostPassword', 'username' => args[0], 'password' => args[1]) end request() end |
#update_hypervisor_capabilities(*args) ⇒ Object
Updates a hypervisor capabilities.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/update_hypervisor_capabilities.rb', line 9 def update_hypervisor_capabilities(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateHypervisorCapabilities') else .merge!('command' => 'updateHypervisorCapabilities') end request() end |
#update_instance_group(*args) ⇒ Object
Updates a vm group
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_instance_group.rb', line 9 def update_instance_group(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateInstanceGroup') else .merge!('command' => 'updateInstanceGroup', 'id' => args[0]) end request() end |
#update_ip_address(*args) ⇒ Object
Updates an ip address
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_ip_address.rb', line 9 def update_ip_address(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateIpAddress') else .merge!('command' => 'updateIpAddress', 'id' => args[0]) end request() end |
#update_iso(*args) ⇒ Object
Updates an ISO file.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_iso.rb', line 9 def update_iso(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateIso') else .merge!('command' => 'updateIso', 'id' => args[0]) end request() end |
#update_iso_permissions(*args) ⇒ Object
Updates iso permissions
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_iso_permissions.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateIsoPermissions') else .merge!('command' => 'updateIsoPermissions', 'id' => args[0]) end request() end |
#update_lb_health_check_policy(*args) ⇒ Object
Updates LB HealthCheck policy
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_lb_health_check_policy.rb', line 9 def update_lb_health_check_policy(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateLBHealthCheckPolicy') else .merge!('command' => 'updateLBHealthCheckPolicy', 'id' => args[0]) end request() end |
#update_lb_stickiness_policy(*args) ⇒ Object
Updates LB Stickiness policy
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_lb_stickiness_policy.rb', line 9 def update_lb_stickiness_policy(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateLBStickinessPolicy') else .merge!('command' => 'updateLBStickinessPolicy', 'id' => args[0]) end request() end |
#update_load_balancer(*args) ⇒ Object
Updates a Load Balancer
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_load_balancer.rb', line 9 def update_load_balancer(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateLoadBalancer') else .merge!('command' => 'updateLoadBalancer', 'id' => args[0]) end request() end |
#update_load_balancer_rule(*args) ⇒ Object
Updates load balancer
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_load_balancer_rule.rb', line 9 def update_load_balancer_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateLoadBalancerRule') else .merge!('command' => 'updateLoadBalancerRule', 'id' => args[0]) end request() end |
#update_network(*args) ⇒ Object
Updates a network
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_network.rb', line 9 def update_network(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateNetwork') else .merge!('command' => 'updateNetwork', 'id' => args[0]) end request() end |
#update_network_acl_item(*args) ⇒ Object
Updates ACL Item with specified Id
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_network_acl_item.rb', line 9 def update_network_acl_item(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateNetworkACLItem') else .merge!('command' => 'updateNetworkACLItem', 'id' => args[0]) end request() end |
#update_network_acl_list(*args) ⇒ Object
Updates Network ACL list
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_network_acl_list.rb', line 9 def update_network_acl_list(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateNetworkACLList') else .merge!('command' => 'updateNetworkACLList', 'id' => args[0]) end request() end |
#update_network_offering(*args) ⇒ Object
Updates a network offering.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/update_network_offering.rb', line 9 def update_network_offering(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateNetworkOffering') else .merge!('command' => 'updateNetworkOffering') end request() end |
#update_network_service_provider(*args) ⇒ Object
Updates a network serviceProvider of a physical network
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_network_service_provider.rb', line 9 def update_network_service_provider(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateNetworkServiceProvider') else .merge!('command' => 'updateNetworkServiceProvider', 'id' => args[0]) end request() end |
#update_physical_network(*args) ⇒ Object
Updates a physical network
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_physical_network.rb', line 9 def update_physical_network(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updatePhysicalNetwork') else .merge!('command' => 'updatePhysicalNetwork', 'id' => args[0]) end request() end |
#update_pod(*args) ⇒ Object
Updates a Pod.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_pod.rb', line 9 def update_pod(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updatePod') else .merge!('command' => 'updatePod', 'id' => args[0]) end request() end |
#update_port_forwarding_rule(*args) ⇒ Object
Updates a port forwarding rule. Only the private port and the virtual machine can be updated.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_port_forwarding_rule.rb', line 9 def update_port_forwarding_rule(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updatePortForwardingRule') else .merge!('command' => 'updatePortForwardingRule', 'id' => args[0]) end request() end |
#update_project(*args) ⇒ Object
Updates a project
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_project.rb', line 9 def update_project(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateProject') else .merge!('command' => 'updateProject', 'id' => args[0]) end request() end |
#update_project_invitation(*args) ⇒ Object
Accepts or declines project invitation
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_project_invitation.rb', line 9 def update_project_invitation(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateProjectInvitation') else .merge!('command' => 'updateProjectInvitation', 'projectid' => args[0]) end request() end |
#update_region(*args) ⇒ Object
Updates a region
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_region.rb', line 9 def update_region(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateRegion') else .merge!('command' => 'updateRegion', 'id' => args[0]) end request() end |
#update_remote_access_vpn(*args) ⇒ Object
Updates remote access vpn
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_remote_access_vpn.rb', line 9 def update_remote_access_vpn(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateRemoteAccessVpn') else .merge!('command' => 'updateRemoteAccessVpn', 'id' => args[0]) end request() end |
#update_resource_count(*args) ⇒ Object
Recalculate and update resource count for an account or domain.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_resource_count.rb', line 9 def update_resource_count(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateResourceCount') else .merge!('command' => 'updateResourceCount', 'domainid' => args[0]) end request() end |
#update_resource_limit(*args) ⇒ Object
Updates resource limits for an account or domain.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_resource_limit.rb', line 9 def update_resource_limit(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateResourceLimit') else .merge!('command' => 'updateResourceLimit', 'resourcetype' => args[0]) end request() end |
#update_service_offering(*args) ⇒ Object
Updates a service offering.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_service_offering.rb', line 9 def update_service_offering(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateServiceOffering') else .merge!('command' => 'updateServiceOffering', 'id' => args[0]) end request() end |
#update_storage_network_ip_range(*args) ⇒ Object
Update a Storage network IP range, only allowed when no IPs in this range have been allocated.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_storage_network_ip_range.rb', line 9 def update_storage_network_ip_range(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateStorageNetworkIpRange') else .merge!('command' => 'updateStorageNetworkIpRange', 'id' => args[0]) end request() end |
#update_storage_pool(*args) ⇒ Object
Updates a storage pool.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_storage_pool.rb', line 9 def update_storage_pool(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateStoragePool') else .merge!('command' => 'updateStoragePool', 'id' => args[0]) end request() end |
#update_template(*args) ⇒ Object
Updates attributes of a template.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_template.rb', line 9 def update_template(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateTemplate') else .merge!('command' => 'updateTemplate', 'id' => args[0]) end request() end |
#update_template_permissions(*args) ⇒ Object
Updates a template visibility permissions. A public template is visible to all accounts within the same domain. A private template is visible only to the owner of the template. A priviledged template is a private template with account permissions added. Only accounts specified under the template permissions are visible to them.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_template_permissions.rb', line 9 def (*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateTemplatePermissions') else .merge!('command' => 'updateTemplatePermissions', 'id' => args[0]) end request() end |
#update_traffic_type(*args) ⇒ Object
Updates traffic type of a physical network
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_traffic_type.rb', line 9 def update_traffic_type(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateTrafficType') else .merge!('command' => 'updateTrafficType', 'id' => args[0]) end request() end |
#update_user(*args) ⇒ Object
Updates a user account
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_user.rb', line 9 def update_user(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateUser') else .merge!('command' => 'updateUser', 'id' => args[0]) end request() end |
#update_virtual_machine(*args) ⇒ Object
Updates properties of a virtual machine. The VM has to be stopped and restarted for the new properties to take effect. UpdateVirtualMachine does not first check whether the VM is stopped. Therefore, stop the VM manually before issuing this call.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_virtual_machine.rb', line 9 def update_virtual_machine(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateVirtualMachine') else .merge!('command' => 'updateVirtualMachine', 'id' => args[0]) end request() end |
#update_vm_affinity_group(*args) ⇒ Object
Updates the affinity/anti-affinity group associations of a virtual machine. The VM has to be stopped and restarted for the new properties to take effect.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_vm_affinity_group.rb', line 9 def update_vm_affinity_group(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateVMAffinityGroup') else .merge!('command' => 'updateVMAffinityGroup', 'id' => args[0]) end request() end |
#update_volume(*args) ⇒ Object
Updates the volume.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/update_volume.rb', line 9 def update_volume(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateVolume') else .merge!('command' => 'updateVolume') end request() end |
#update_vpc(*args) ⇒ Object
Updates a VPC
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_vpc.rb', line 9 def update_vpc(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateVPC') else .merge!('command' => 'updateVPC', 'id' => args[0]) end request() end |
#update_vpcoffering(*args) ⇒ Object
Updates VPC offering
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_vpcoffering.rb', line 9 def update_vpcoffering(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateVPCOffering') else .merge!('command' => 'updateVPCOffering', 'id' => args[0]) end request() end |
#update_vpn_connection(*args) ⇒ Object
Updates site to site vpn connection
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_vpn_connection.rb', line 9 def update_vpn_connection(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateVpnConnection') else .merge!('command' => 'updateVpnConnection', 'id' => args[0]) end request() end |
#update_vpn_customer_gateway(*args) ⇒ Object
Update site to site vpn customer gateway
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/fog/cloudstack/requests/compute/update_vpn_customer_gateway.rb', line 9 def update_vpn_customer_gateway(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateVpnCustomerGateway') else .merge!('command' => 'updateVpnCustomerGateway', 'id' => args[0], 'gateway' => args[1], 'cidrlist' => args[2], 'ipsecpsk' => args[3], 'esppolicy' => args[4], 'ikepolicy' => args[5]) end request() end |
#update_vpn_gateway(*args) ⇒ Object
Updates site to site vpn local gateway
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_vpn_gateway.rb', line 9 def update_vpn_gateway(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateVpnGateway') else .merge!('command' => 'updateVpnGateway', 'id' => args[0]) end request() end |
#update_zone(*args) ⇒ Object
Updates a Zone.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/cloudstack/requests/compute/update_zone.rb', line 9 def update_zone(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'updateZone') else .merge!('command' => 'updateZone', 'id' => args[0]) end request() end |
#upgrade_router_template(*args) ⇒ Object
Upgrades router to use newer template
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/cloudstack/requests/compute/upgrade_router_template.rb', line 9 def upgrade_router_template(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'upgradeRouterTemplate') else .merge!('command' => 'upgradeRouterTemplate') end request() end |
#upload_custom_certificate(*args) ⇒ Object
Uploads a custom certificate for the console proxy VMs to use for SSL. Can be used to upload a single certificate signed by a known CA. Can also be used, through multiple calls, to upload a chain of certificates from CA to the custom certificate itself.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/upload_custom_certificate.rb', line 9 def upload_custom_certificate(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'uploadCustomCertificate') else .merge!('command' => 'uploadCustomCertificate', 'domainsuffix' => args[0], 'certificate' => args[1]) end request() end |
#upload_ssl_cert(*args) ⇒ Object
Upload a certificate to cloudstack
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/cloudstack/requests/compute/upload_ssl_cert.rb', line 9 def upload_ssl_cert(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'uploadSslCert') else .merge!('command' => 'uploadSslCert', 'certificate' => args[0], 'privatekey' => args[1]) end request() end |
#upload_volume(*args) ⇒ Object
Uploads a data disk.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/fog/cloudstack/requests/compute/upload_volume.rb', line 9 def upload_volume(*args) = {} if args[0].is_a? Hash = args[0] .merge!('command' => 'uploadVolume') else .merge!('command' => 'uploadVolume', 'url' => args[0], 'format' => args[1], 'zoneid' => args[2], 'name' => args[3]) end # add project id if we have one @cloudstack_project_id ? .merge!('projectid' => @cloudstack_project_id) : nil request() end |