Class: Ilkbyte::Server
Instance Method Summary collapse
- #active ⇒ Object
- #all ⇒ Object
- #backup(server_name) ⇒ Object
- #backupRestore(server_name, query) ⇒ Object
- #config(query) ⇒ Object
- #create ⇒ Object
- #ip(server_name) ⇒ Object
- #ipLogs(server_name) ⇒ Object
- #ipRdns(server_name, ip, rdns) ⇒ Object
- #monitor(server_name) ⇒ Object
- #power(server_name, power) ⇒ Object
- #show(server_name) ⇒ Object
- #snapshot(server_name) ⇒ Object
- #snapshotCreate(server_name, query) ⇒ Object
- #snapshotCronAdd(server_name, query) ⇒ Object
- #snapshotCronDelete(server_name, query) ⇒ Object
- #snapshotDelete(server_name, query) ⇒ Object
- #snapshotRevert(server_name, query) ⇒ Object
- #snapshotUpdate(server_name, query) ⇒ Object
Methods inherited from Base
Instance Method Details
#active ⇒ Object
15 16 17 |
# File 'lib/ilkbyte/server.rb', line 15 def active() request("/server/list") end |
#all ⇒ Object
11 12 13 |
# File 'lib/ilkbyte/server.rb', line 11 def all() request("/server/list/all") end |
#backup(server_name) ⇒ Object
48 49 50 |
# File 'lib/ilkbyte/server.rb', line 48 def backup(server_name) request("/server/manage/#{server_name}/backup") end |
#backupRestore(server_name, query) ⇒ Object
52 53 54 |
# File 'lib/ilkbyte/server.rb', line 52 def backupRestore(server_name,query) request("/server/manage/#{server_name}/backup/restore",query) end |
#config(query) ⇒ Object
7 8 9 |
# File 'lib/ilkbyte/server.rb', line 7 def config(query) request("/server/create/config",query) end |
#create ⇒ Object
3 4 5 |
# File 'lib/ilkbyte/server.rb', line 3 def create() request("/server/create") end |
#ip(server_name) ⇒ Object
40 41 42 |
# File 'lib/ilkbyte/server.rb', line 40 def ip(server_name) request("/server/manage/#{server_name}/ip/list") end |
#ipLogs(server_name) ⇒ Object
44 45 46 |
# File 'lib/ilkbyte/server.rb', line 44 def ipLogs(server_name) request("/server/manage/#{server_name}/ip/logs") end |
#ipRdns(server_name, ip, rdns) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/ilkbyte/server.rb', line 32 def ipRdns(server_name,ip,rdns) query = [ "ip" => ip, "rdns" => rdns ] request("/server/manage/#{server_name}/ip/rdns",query) end |
#monitor(server_name) ⇒ Object
28 29 30 |
# File 'lib/ilkbyte/server.rb', line 28 def monitor(server_name) request("/server/manage/#{server_name}/monitor") end |
#power(server_name, power) ⇒ Object
23 24 25 26 |
# File 'lib/ilkbyte/server.rb', line 23 def power(server_name,power) query = {"set" => power} request("/server/manage/#{server_name}/power",query) end |
#show(server_name) ⇒ Object
19 20 21 |
# File 'lib/ilkbyte/server.rb', line 19 def show(server_name) request("/server/manage/#{server_name}/show") end |
#snapshot(server_name) ⇒ Object
56 57 58 |
# File 'lib/ilkbyte/server.rb', line 56 def snapshot(server_name) request("/server/manage/#{server_name}/snapshot") end |
#snapshotCreate(server_name, query) ⇒ Object
60 61 62 |
# File 'lib/ilkbyte/server.rb', line 60 def snapshotCreate(server_name,query) request("/server/manage/#{server_name}/snapshot/create",query) end |
#snapshotCronAdd(server_name, query) ⇒ Object
76 77 78 |
# File 'lib/ilkbyte/server.rb', line 76 def snapshotCronAdd(server_name,query) request("/server/manage/#{server_name}/snapshot/cron/add",query) end |
#snapshotCronDelete(server_name, query) ⇒ Object
80 81 82 |
# File 'lib/ilkbyte/server.rb', line 80 def snapshotCronDelete(server_name,query) request("/server/manage/#{server_name}/snapshot/cron/delete",query) end |
#snapshotDelete(server_name, query) ⇒ Object
72 73 74 |
# File 'lib/ilkbyte/server.rb', line 72 def snapshotDelete(server_name,query) request("/server/manage/#{server_name}/snapshot/delete",query) end |
#snapshotRevert(server_name, query) ⇒ Object
64 65 66 |
# File 'lib/ilkbyte/server.rb', line 64 def snapshotRevert(server_name,query) request("/server/manage/#{server_name}/snapshot/revert",query) end |
#snapshotUpdate(server_name, query) ⇒ Object
68 69 70 |
# File 'lib/ilkbyte/server.rb', line 68 def snapshotUpdate(server_name,query) request("/server/manage/#{server_name}/snapshot/update",query) end |