class Fog::Proxmox::Compute::Real
Real
class
class Real
action_server
request
class Real
clone_server
request
class Real
create_backup
request
class Real
create_server
request
class Real
create_snapshot
request
class Real
create_spice
request
class Real
create_term
request
class Real
create_vnc
request
class Real
delete_server
request
class Real
delete_snapshot
request
class Real
delete_volume
request
class Real
get_node_statistics
request
class Real
get_server_config
request
class Real
get_server_status
request
class Real
get_snapshot_config
request
class Real
get_task
collection
class Real
get_volume
request
class Real
list_nodes
request
class Real
list_servers
request
class Real
list_snapshots
request
class Real
list_storages
request
class Real
list_tasks
request
class Real
list_volumes
request
class Real
migrate_server
request
class Real
move_volume
request
class Real
next_vmid
collection
class Real
resize_container
request
class Real
resize_server
request
class Real
rollback_snapshot
request
class Real
status_task
class Real
stop_task
collection
class Real
template_server
request
class Real
update_server
request
class Real
update_snapshot
request
Public Class Methods
# File lib/fog/proxmox/compute.rb, line 119 def self.not_found_class Fog::Proxmox::Compute::NotFound end
Public Instance Methods
# File lib/fog/proxmox/compute/requests/action_server.rb, line 25 def action_server(path_params, body_params) node = path_params[:node] type = path_params[:type] action = path_params[:action] vmid = path_params[:vmid] request( expects: [200], method: 'POST', path: "nodes/#{node}/#{type}/#{vmid}/status/#{action}", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/clone_server.rb, line 25 def clone_server(path_params, body_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] request( expects: [200], method: 'POST', path: "nodes/#{node}/#{type}/#{vmid}/clone", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute.rb, line 123 def config self end
# File lib/fog/proxmox/compute.rb, line 127 def config_service? true end
# File lib/fog/proxmox/compute/requests/create_backup.rb, line 25 def create_backup(path_params, body_params) node = path_params[:node] request( expects: [200], method: 'POST', path: "nodes/#{node}/vzdump", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/create_server.rb, line 25 def create_server(path_params, body_params) node = path_params[:node] type = path_params[:type] request( expects: [200], method: 'POST', path: "nodes/#{node}/#{type}", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/create_snapshot.rb, line 25 def create_snapshot(path_params, body_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] request( expects: [200], method: 'POST', path: "nodes/#{node}/#{type}/#{vmid}/snapshot", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/create_spice.rb, line 25 def create_spice(path_params, body_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] request( expects: [200], method: 'POST', path: "nodes/#{node}/#{type}/#{vmid}/spiceproxy", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/create_term.rb, line 25 def create_term(path_params, body_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] request( expects: [200], method: 'POST', path: "nodes/#{node}/#{type}/#{vmid}/termproxy", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/create_vnc.rb, line 25 def create_vnc(path_params, body_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] request( expects: [200], method: 'POST', path: "nodes/#{node}/#{type}/#{vmid}/vncproxy", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/delete_server.rb, line 26 def delete_server(path_params, body_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] request( expects: [200], method: 'DELETE', path: "nodes/#{node}/#{type}/#{vmid}", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/delete_snapshot.rb, line 25 def delete_snapshot(path_params, query_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] snapname = path_params[:snapname] request( expects: [200], method: 'DELETE', path: "nodes/#{node}/#{type}/#{vmid}/snapshot/#{snapname}", query: URI.encode_www_form(query_params) ) end
# File lib/fog/proxmox/compute/requests/delete_volume.rb, line 25 def delete_volume(node, storage, volume) request( expects: [200], method: 'DELETE', path: "nodes/#{node}/storage/#{storage}/content/#{volume}" ) end
# File lib/fog/proxmox/compute/requests/get_node_statistics.rb, line 26 def get_node_statistics(path_params, query_params) node = path_params[:node] output = path_params[:output] request( expects: [200], method: 'GET', path: "nodes/#{node}/#{output}", query: URI.encode_www_form(query_params) ) end
# File lib/fog/proxmox/compute/requests/get_server_config.rb, line 25 def get_server_config(path_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] request( expects: [200], method: 'GET', path: "nodes/#{node}/#{type}/#{vmid}/config" ) end
# File lib/fog/proxmox/compute/requests/get_server_status.rb, line 25 def get_server_status(path_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] request( expects: [200], method: 'GET', path: "nodes/#{node}/#{type}/#{vmid}/status/current" ) end
# File lib/fog/proxmox/compute/requests/get_snapshot_config.rb, line 25 def get_snapshot_config(path_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] snapname = path_params[:snapname] request( expects: [200], method: 'GET', path: "nodes/#{node}/#{type}/#{vmid}/snapshot/#{snapname}/config" ) end
# File lib/fog/proxmox/compute/requests/get_task.rb, line 26 def get_task(node, upid) request( expects: [200], method: 'GET', path: "nodes/#{node}/tasks/#{upid}" ) end
# File lib/fog/proxmox/compute/requests/get_vnc.rb, line 25 def get_vnc(path_params, query_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] request( expects: [101, 200], method: 'GET', path: "nodes/#{node}/#{type}/#{vmid}/vncwebsocket", query: URI.encode_www_form(query_params) ) end
# File lib/fog/proxmox/compute/requests/get_volume.rb, line 27 def get_volume(node, storage, volume) request( expects: [200], method: 'GET', path: "nodes/#{node}/storage/#{storage}/content/#{volume}" ) end
# File lib/fog/proxmox/compute/requests/list_nodes.rb, line 26 def list_nodes request( expects: [200], method: 'GET', path: 'nodes' ) end
# File lib/fog/proxmox/compute/requests/list_servers.rb, line 25 def list_servers(options) node = options[:node] type = options[:type] request( expects: [200], method: 'GET', path: "nodes/#{node}/#{type}" ) end
# File lib/fog/proxmox/compute/requests/list_snapshots.rb, line 25 def list_snapshots(path_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] request( expects: [200], method: 'GET', path: "nodes/#{node}/#{type}/#{vmid}/snapshot" ) end
# File lib/fog/proxmox/compute/requests/list_storages.rb, line 28 def list_storages(node, options = {}) request( expects: [200], method: 'GET', path: "nodes/#{node}/storage", query: URI.encode_www_form(options) ) end
# File lib/fog/proxmox/compute/requests/list_tasks.rb, line 26 def list_tasks(node, options) request( expects: [200], method: 'GET', path: "nodes/#{node}/tasks", query: URI.encode_www_form(options) ) end
# File lib/fog/proxmox/compute/requests/list_volumes.rb, line 26 def list_volumes(node, storage, options) request( expects: [200], method: 'GET', path: "/nodes/#{node}/storage/#{storage}/content", query: URI.encode_www_form(options) ) end
# File lib/fog/proxmox/compute/requests/log_task.rb, line 26 def log_task(node, upid, options) request( expects: [200], method: 'GET', path: "nodes/#{node}/tasks/#{upid}/log", query: URI.encode_www_form(options) ) end
# File lib/fog/proxmox/compute/requests/migrate_server.rb, line 25 def migrate_server(path_params, body_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] request( expects: [200], method: 'POST', path: "nodes/#{node}/#{type}/#{vmid}/migrate", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/move_disk.rb, line 25 def move_disk(path_params, body_params) node = path_params[:node] vmid = path_params[:vmid] request( expects: [200], method: 'POST', path: "nodes/#{node}/qemu/#{vmid}/move_disk", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/move_volume.rb, line 25 def move_volume(path_params, body_params) node = path_params[:node] vmid = path_params[:vmid] request( expects: [200], method: 'POST', path: "nodes/#{node}/lxc/#{vmid}/move_volume", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/next_vmid.rb, line 26 def next_vmid(options = {}) request( expects: [200], method: 'GET', path: 'cluster/nextid', query: URI.encode_www_form(options) ) end
# File lib/fog/proxmox/compute/requests/resize_container.rb, line 25 def resize_container(path_params, body_params) node = path_params[:node] vmid = path_params[:vmid] request( expects: [200], method: 'PUT', path: "nodes/#{node}/lxc/#{vmid}/resize", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/resize_server.rb, line 25 def resize_server(path_params, body_params) node = path_params[:node] vmid = path_params[:vmid] request( expects: [200], method: 'PUT', path: "nodes/#{node}/qemu/#{vmid}/resize", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/rollback_snapshot.rb, line 27 def rollback_snapshot(path_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] snapname = path_params[:snapname] request( expects: [200], method: 'POST', path: "nodes/#{node}/#{type}/#{vmid}/snapshot/#{snapname}/rollback" ) end
# File lib/fog/proxmox/compute/requests/status_task.rb, line 26 def status_task(node, upid) request( expects: [200], method: 'GET', path: "nodes/#{node}/tasks/#{upid}/status" ) end
# File lib/fog/proxmox/compute/requests/stop_task.rb, line 26 def stop_task(node, upid) request( expects: [200], method: 'DELETE', path: "nodes/#{node}/tasks/#{upid}" ) end
# File lib/fog/proxmox/compute/requests/template_server.rb, line 25 def template_server(path_params, body_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] request( expects: [200], method: 'POST', path: "nodes/#{node}/#{type}/#{vmid}/template", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/update_server.rb, line 25 def update_server(path_params, body_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] request( expects: [200], method: type == 'qemu' ? 'POST' : 'PUT', path: "nodes/#{node}/#{type}/#{vmid}/config", body: URI.encode_www_form(body_params) ) end
# File lib/fog/proxmox/compute/requests/update_snapshot.rb, line 25 def update_snapshot(path_params, body_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] snapname = path_params[:snapname] request( expects: [200], method: 'PUT', path: "nodes/#{node}/#{type}/#{vmid}/snapshot/#{snapname}/config", body: URI.encode_www_form(body_params) ) end
Private Instance Methods
# File lib/fog/proxmox/compute.rb, line 133 def configure(source) source.instance_variables.each do |v| instance_variable_set(v, source.instance_variable_get(v)) end end