solusvm 1.4.0 → 2.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/LICENSE +1 -1
- data/README.markdown +159 -116
- data/Rakefile +3 -33
- data/bin/solusvm +3 -4
- data/lib/solusvm.rb +1 -3
- data/lib/solusvm/base.rb +101 -46
- data/lib/solusvm/cli.rb +8 -8
- data/lib/solusvm/cli/base_cli.rb +3 -3
- data/lib/solusvm/cli/client_cli.rb +3 -5
- data/lib/solusvm/cli/general_cli.rb +3 -5
- data/lib/solusvm/cli/node_cli.rb +3 -5
- data/lib/solusvm/cli/reseller_cli.rb +3 -5
- data/lib/solusvm/cli/server_cli.rb +4 -6
- data/lib/solusvm/client.rb +45 -27
- data/lib/solusvm/errors.rb +3 -0
- data/lib/solusvm/general.rb +11 -12
- data/lib/solusvm/hash.rb +1 -11
- data/lib/solusvm/node.rb +33 -21
- data/lib/solusvm/reseller.rb +53 -49
- data/lib/solusvm/server.rb +188 -52
- data/lib/solusvm/version.rb +2 -2
- data/test/cli/test_base_cli.rb +14 -4
- data/test/cli/test_client_cli.rb +13 -13
- data/test/cli/test_general_cli.rb +7 -7
- data/test/cli/test_node_cli.rb +13 -13
- data/test/cli/test_reseller_cli.rb +11 -11
- data/test/cli/test_server_cli.rb +61 -61
- data/test/sham_rack_stubs/base/parse-response.json +4 -0
- data/test/sham_rack_stubs/client/authenticate.json +4 -0
- data/test/sham_rack_stubs/client/change-password.json +6 -0
- data/test/sham_rack_stubs/client/create.json +9 -0
- data/test/sham_rack_stubs/client/delete.json +4 -0
- data/test/sham_rack_stubs/client/exists.json +4 -0
- data/test/sham_rack_stubs/client/list-empty.json +5 -0
- data/test/sham_rack_stubs/client/list.json +30 -0
- data/test/sham_rack_stubs/general/isos-empty.json +5 -0
- data/test/sham_rack_stubs/general/isos.json +5 -0
- data/test/sham_rack_stubs/general/plans-empty.json +5 -0
- data/test/sham_rack_stubs/general/plans.json +5 -0
- data/test/sham_rack_stubs/general/templates-empty.json +7 -0
- data/test/sham_rack_stubs/general/templates.json +7 -0
- data/test/sham_rack_stubs/generic/error.json +4 -0
- data/test/sham_rack_stubs/node/available-ips-empty.json +6 -0
- data/test/sham_rack_stubs/node/available-ips.json +6 -0
- data/test/sham_rack_stubs/node/ids.json +5 -0
- data/test/sham_rack_stubs/node/list-empty.json +5 -0
- data/test/sham_rack_stubs/node/list-groups.json +5 -0
- data/test/sham_rack_stubs/node/list.json +5 -0
- data/test/sham_rack_stubs/node/statistics.json +21 -0
- data/test/sham_rack_stubs/node/virtualservers-empty.json +5 -0
- data/test/sham_rack_stubs/node/virtualservers.json +19 -0
- data/test/sham_rack_stubs/node/xenresources.json +6 -0
- data/test/sham_rack_stubs/reseller/change-resources.json +18 -0
- data/test/sham_rack_stubs/reseller/create.json +25 -0
- data/test/sham_rack_stubs/reseller/delete.json +4 -0
- data/test/sham_rack_stubs/reseller/info.json +24 -0
- data/test/sham_rack_stubs/reseller/list-empty.json +5 -0
- data/test/sham_rack_stubs/reseller/list.json +5 -0
- data/test/sham_rack_stubs/server/add-ip.json +5 -0
- data/test/sham_rack_stubs/server/boot.json +4 -0
- data/test/sham_rack_stubs/server/change-bootorder.json +4 -0
- data/test/sham_rack_stubs/server/change-hostname.json +5 -0
- data/test/sham_rack_stubs/server/change-owner.json +4 -0
- data/test/sham_rack_stubs/server/change-plan.json +4 -0
- data/test/sham_rack_stubs/server/change-rootpassword.json +5 -0
- data/test/sham_rack_stubs/server/change-vncpass.json +5 -0
- data/test/sham_rack_stubs/server/console.json +13 -0
- data/test/sham_rack_stubs/server/create.json +13 -0
- data/test/sham_rack_stubs/server/del-ip.json +4 -0
- data/test/sham_rack_stubs/server/exists.json +4 -0
- data/test/sham_rack_stubs/server/info-all.json +16 -0
- data/test/sham_rack_stubs/server/info.json +15 -0
- data/test/sham_rack_stubs/server/mountiso.json +4 -0
- data/test/sham_rack_stubs/server/network-disable.json +4 -0
- data/test/sham_rack_stubs/server/network-enable.json +4 -0
- data/test/sham_rack_stubs/server/pae-disable.json +4 -0
- data/test/sham_rack_stubs/server/pae-enable.json +4 -0
- data/test/sham_rack_stubs/server/reboot.json +4 -0
- data/test/sham_rack_stubs/server/rebuild.json +4 -0
- data/test/sham_rack_stubs/server/resume.json +4 -0
- data/test/sham_rack_stubs/server/shutdown.json +4 -0
- data/test/sham_rack_stubs/server/status.json +4 -0
- data/test/sham_rack_stubs/server/suspend.json +4 -0
- data/test/sham_rack_stubs/server/terminate.json +4 -0
- data/test/sham_rack_stubs/server/tun-disable.json +4 -0
- data/test/sham_rack_stubs/server/tun-enable.json +4 -0
- data/test/sham_rack_stubs/server/unmountiso.json +4 -0
- data/test/sham_rack_stubs/server/vnc.json +8 -0
- data/test/solusvm/test_base.rb +34 -56
- data/test/solusvm/test_cli.rb +3 -3
- data/test/solusvm/test_client.rb +56 -66
- data/test/solusvm/test_general.rb +34 -19
- data/test/solusvm/test_hash.rb +0 -9
- data/test/solusvm/test_node.rb +66 -72
- data/test/solusvm/test_reseller.rb +47 -58
- data/test/solusvm/test_server.rb +149 -164
- data/test/test_helper.rb +43 -31
- metadata +173 -189
- data/.document +0 -5
- data/.gitignore +0 -25
- data/.travis.yml +0 -12
- data/solusvm.gemspec +0 -33
- data/test/vcr_cassettes/base/invalid_key.yml +0 -19
- data/test/vcr_cassettes/base/invalid_status.yml +0 -19
- data/test/vcr_cassettes/base/nonexistent_node.yml +0 -19
- data/test/vcr_cassettes/base/parse_response.yml +0 -28
- data/test/vcr_cassettes/base/statusmsg.yml +0 -28
- data/test/vcr_cassettes/base/successful.yml +0 -68
- data/test/vcr_cassettes/base/successful_instance_config.yml +0 -28
- data/test/vcr_cassettes/base/unauthorized_ip.yml +0 -19
- data/test/vcr_cassettes/client/authenticate.yml +0 -37
- data/test/vcr_cassettes/client/change_password.yml +0 -39
- data/test/vcr_cassettes/client/create.yml +0 -42
- data/test/vcr_cassettes/client/delete.yml +0 -37
- data/test/vcr_cassettes/client/exists.yml +0 -20
- data/test/vcr_cassettes/client/list.yml +0 -66
- data/test/vcr_cassettes/general/isos.yml +0 -38
- data/test/vcr_cassettes/general/plans.yml +0 -38
- data/test/vcr_cassettes/general/templates.yml +0 -38
- data/test/vcr_cassettes/node/available_ips.yml +0 -41
- data/test/vcr_cassettes/node/ids.yml +0 -21
- data/test/vcr_cassettes/node/list.yml +0 -38
- data/test/vcr_cassettes/node/list_groups.yml +0 -20
- data/test/vcr_cassettes/node/statistics.yml +0 -32
- data/test/vcr_cassettes/node/virtualservers.yml +0 -67
- data/test/vcr_cassettes/node/xenresources.yml +0 -22
- data/test/vcr_cassettes/reseller/change_resources.yml +0 -27
- data/test/vcr_cassettes/reseller/create.yml +0 -27
- data/test/vcr_cassettes/reseller/delete.yml +0 -15
- data/test/vcr_cassettes/reseller/info.yml +0 -27
- data/test/vcr_cassettes/reseller/list.yml +0 -27
- data/test/vcr_cassettes/server/.yml +0 -1017
- data/test/vcr_cassettes/server/add_ip.yml +0 -15
- data/test/vcr_cassettes/server/boot.yml +0 -15
- data/test/vcr_cassettes/server/change_bootorder.yml +0 -15
- data/test/vcr_cassettes/server/change_consolepass.yml +0 -16
- data/test/vcr_cassettes/server/change_hostname.yml +0 -15
- data/test/vcr_cassettes/server/change_owner.yml +0 -15
- data/test/vcr_cassettes/server/change_plan.yml +0 -15
- data/test/vcr_cassettes/server/change_rootpassword.yml +0 -15
- data/test/vcr_cassettes/server/change_vncpass.yml +0 -15
- data/test/vcr_cassettes/server/console.yml +0 -28
- data/test/vcr_cassettes/server/create.yml +0 -27
- data/test/vcr_cassettes/server/del_ip.yml +0 -15
- data/test/vcr_cassettes/server/exists.yml +0 -15
- data/test/vcr_cassettes/server/info.yml +0 -27
- data/test/vcr_cassettes/server/info_all.yml +0 -15
- data/test/vcr_cassettes/server/mountiso.yml +0 -15
- data/test/vcr_cassettes/server/network_disable.yml +0 -15
- data/test/vcr_cassettes/server/network_enable.yml +0 -15
- data/test/vcr_cassettes/server/pae_disable.yml +0 -15
- data/test/vcr_cassettes/server/pae_enable.yml +0 -15
- data/test/vcr_cassettes/server/reboot.yml +0 -15
- data/test/vcr_cassettes/server/rebuild.yml +0 -15
- data/test/vcr_cassettes/server/resume.yml +0 -15
- data/test/vcr_cassettes/server/shutdown.yml +0 -15
- data/test/vcr_cassettes/server/status.yml +0 -15
- data/test/vcr_cassettes/server/suspend.yml +0 -15
- data/test/vcr_cassettes/server/terminate.yml +0 -27
- data/test/vcr_cassettes/server/tun_disable.yml +0 -15
- data/test/vcr_cassettes/server/tun_enable.yml +0 -15
- data/test/vcr_cassettes/server/unmountiso.yml +0 -15
- data/test/vcr_cassettes/server/vnc.yml +0 -15
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-addip&vserverid=1&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Ip address added</statusmsg><ipaddress>123.123.123.123</ipaddress>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-boot&vserverid=1&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Virtual server booted</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-bootorder&vserverid=1&bootorder=c&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Boot order changed</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,16 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-consolepass&vserverid=1&consolepassword=thepassword&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: ! '<status>success</status><statusmsg>Virtual server console password changed</statusmsg>
|
13
|
-
<consolepassword></consolepassword> '
|
14
|
-
http_version: '1.1'
|
15
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
16
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-hostname&vserverid=1&hostname=thehostname&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Virtual server hostname changed</statusmsg><hostname>hostname</hostname>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-changeowner&vserverid=1&clientid=2&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Successfully changed owner</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-change&vserverid=1&plan=newplan&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Virtual server updated</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-rootpassword&vserverid=1&rootpassword=thepassword&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Virtual server root password changed</statusmsg><rootpassword>rootpassword</rootpassword>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-vncpass&vserverid=1&vncpassword=thepassword&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Virtual server vnc password changed</statusmsg><vncpassword></vncpassword>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,28 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-console&vserverid=1&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg></statusmsg> <type>thetype</type><consoleip>theconsoleip</consoleip><consoleport>theconsoleport</consoleport><consolepassword>theconsolepassword</consolepassword><consoleusername>theconsoleusername</consoleusername>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
- request:
|
16
|
-
method: get
|
17
|
-
uri: http://www.example.com/api?action=vserver-console&vserverid=1&access=admin&time=1&id=api_id&key=api_key
|
18
|
-
body: ''
|
19
|
-
headers: {}
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
body: <status>success</status><statusmsg></statusmsg> <type>thetype</type><consoleip>theconsoleip</consoleip><consoleport>theconsoleport</consoleport><consolepassword>theconsolepassword</consolepassword><consoleusername>theconsoleusername</consoleusername>
|
25
|
-
http_version: '1.1'
|
26
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
27
|
-
|
28
|
-
recorded_with: VCR 2.0.0
|
@@ -1,27 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?type=xen&username=bob&ips=1&node=node1&plan=plan1&template=mytpl&password=123456&hostname=server.hostname.com&action=vserver-create&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Virtual server created</statusmsg><mainipaddress>123.123.123.123</mainipaddress><extraipaddress>122.122.122.122,111.111.111.111</extraipaddress><rootpassword>123456</rootpassword><vserverid>100</vserverid><consoleuser>console-123</consoleuser><consolepassword>123456</consolepassword><hostname>server.hostname.com</hostname><virtid>vm101|101</virtid>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
- request:
|
16
|
-
method: get
|
17
|
-
uri: http://www.example.com/api?type=xen&ips=1&password=&hostname=&action=vserver-create&id=api_id&key=api_key
|
18
|
-
body: ''
|
19
|
-
headers: {}
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
body: <status>error</status><statusmsg>error message</statusmsg>
|
25
|
-
http_version: "1.1"
|
26
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
27
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-delip&vserverid=1&ipaddr=123.123.123.123&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Ip address deleted</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-checkexists&vserverid=1&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Virtual server exists</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,27 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-info&vserverid=1&reboot=true&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <vserverid>1</vserverid><ctid-xid>1</ctid-xid><clientid>1</clientid><ipaddress>123.123.123.123</ipaddress><hostname>host.example.com</hostname><template>vps1</template><hdd>123456</hdd><memory>123456</memory><swap-burst>swp</swap-burst><type>xenhvm</type>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
- request:
|
16
|
-
method: get
|
17
|
-
uri: http://www.example.com/api?action=vserver-info&vserverid=1&reboot=false&id=api_id&key=api_key
|
18
|
-
body: ''
|
19
|
-
headers: {}
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
body: <vserverid>1</vserverid><ctid-xid>1</ctid-xid><clientid>1</clientid><ipaddress>123.123.123.123</ipaddress><hostname>host.example.com</hostname><template>vps1</template><hdd>123456</hdd><memory>123456</memory><swap-burst>swp</swap-burst><type>xenhvm</type>
|
25
|
-
http_version: '1.1'
|
26
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
27
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-infoall&vserverid=1&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg></statusmsg><node>tydeus</node><state>online</state><mainipaddress>123.123.123.123</mainipaddress><ipaddresses>123.123.123.123</ipaddresses><type>openvz</type><bandwidth>16106127360000,5370261749139,10735865610861,33</bandwidth>.<memory>1073741824,187097088,886644736,17</memory>.<hdd>236223201280,103640707072,132582494208,44</hdd>.<trafficgraph>/graphs/9/214/214-8f7daef90bc75037489af4217af674a67df545ba05c8a6bcd5341d5894f2f905bf23976f52c0104415c1694135d51f204ddfd7b11bbe87c195a5de4a-86400.png</trafficgraph>.<loadgraph>/graphs/9/214/214-load-8f7daef90bc75037489af4217af674a67df545ba05c8a6bcd5341d5894f2f905bf23976f52c0104415c1694135d51f204ddfd7b11bbe87c195a5de4a-86400.png</loadgraph>.<memorygraph>/graphs/9/214/214-mem-8f7daef90bc75037489af4217af674a67df545ba05c8a6bcd5341d5894f2f905bf23976f52c0104415c1694135d51f204ddfd7b11bbe87c195a5de4a-86400.png</memorygraph>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-mountiso&vserverid=1&iso=theiso&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>ISO mounted</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-network-disable&vserverid=1&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Virtual server network disabled</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-network-enable&vserverid=1&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: ! '<status>success</status><statusmsg>Virtual server network enabled</statusmsg> '
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-pae&vserverid=1&pae=off&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Enabled|Disabled</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-pae&vserverid=1&pae=on&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Enabled|Disabled</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-reboot&vserverid=1&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Virtual server rebooted</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-rebuild&vserverid=1&template=mytpl&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Virtual server is being rebuilt</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-unsuspend&vserverid=1&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Virtual server unsuspended</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-shutdown&vserverid=1&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>Virtual server shutdown</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=vserver-status&vserverid=1&id=api_id&key=api_key
|
6
|
-
body: ''
|
7
|
-
headers: {}
|
8
|
-
response:
|
9
|
-
status:
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
body: <status>success</status><statusmsg>online</statusmsg>
|
13
|
-
http_version: '1.1'
|
14
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
15
|
-
recorded_with: VCR 2.0.0
|