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,20 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=client-checkexists&username=vps123&id=api_id&key=api_key
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ""
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
body:
|
15
|
-
encoding: UTF-8
|
16
|
-
string: <status>success</status>
|
17
|
-
<statusmsg>Client exists</statusmsg>
|
18
|
-
http_version: "1.1"
|
19
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
20
|
-
recorded_with: VCR 2.0.0
|
@@ -1,66 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=client-list&id=api_id1&key=api_key
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ""
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
body:
|
15
|
-
encoding: UTF-8
|
16
|
-
string: <clients>
|
17
|
-
<client>
|
18
|
-
<id>1</id>
|
19
|
-
<username>vps123</username>
|
20
|
-
<email>vps123@email.com</email>
|
21
|
-
<firstname>phill</firstname>
|
22
|
-
<lastname>smith</lastname>
|
23
|
-
<company>VPS Co</company>
|
24
|
-
<level>Client</level>
|
25
|
-
<status>Active</status>
|
26
|
-
<created>2009-01-01</created>
|
27
|
-
<lastlogin>2010-04-23</lastlogin>
|
28
|
-
</client>
|
29
|
-
</clients>
|
30
|
-
http_version: "1.1"
|
31
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
32
|
-
- request:
|
33
|
-
method: get
|
34
|
-
uri: http://www.example.com/api?action=client-list&id=api_id2&key=api_key
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: ""
|
38
|
-
headers: {}
|
39
|
-
response:
|
40
|
-
status:
|
41
|
-
code: 200
|
42
|
-
message: OK
|
43
|
-
body:
|
44
|
-
encoding: UTF-8
|
45
|
-
string: <clients>
|
46
|
-
</clients>
|
47
|
-
http_version: "1.1"
|
48
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
49
|
-
- request:
|
50
|
-
method: get
|
51
|
-
uri: http://www.example.com/api?action=client-list&id=api_id3&key=api_key
|
52
|
-
body:
|
53
|
-
encoding: UTF-8
|
54
|
-
string: ""
|
55
|
-
headers: {}
|
56
|
-
response:
|
57
|
-
status:
|
58
|
-
code: 200
|
59
|
-
message: OK
|
60
|
-
body:
|
61
|
-
encoding: UTF-8
|
62
|
-
string: <status>error</status>
|
63
|
-
<statusmsg>error message</statusmsg>
|
64
|
-
http_version: "1.1"
|
65
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
66
|
-
recorded_with: VCR 2.0.0
|
@@ -1,38 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=listiso&type=xen&id=api_id&key=api_key
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ""
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
body:
|
15
|
-
encoding: UTF-8
|
16
|
-
string: <status>success</status>
|
17
|
-
<statusmsg></statusmsg>
|
18
|
-
<iso>iso1,iso2,iso3</iso>
|
19
|
-
http_version: "1.1"
|
20
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
21
|
-
- request:
|
22
|
-
method: get
|
23
|
-
uri: http://www.example.com/api?action=listiso&type=openvz&id=api_id&key=api_key
|
24
|
-
body:
|
25
|
-
encoding: UTF-8
|
26
|
-
string: ""
|
27
|
-
headers: {}
|
28
|
-
response:
|
29
|
-
status:
|
30
|
-
code: 200
|
31
|
-
message: OK
|
32
|
-
body:
|
33
|
-
encoding: UTF-8
|
34
|
-
string: <status>error</status>
|
35
|
-
<statusmsg>error message</statusmsg>
|
36
|
-
http_version: "1.1"
|
37
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
38
|
-
recorded_with: VCR 2.0.0
|
@@ -1,38 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=listplans&type=xen&id=api_id&key=api_key
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ""
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
body:
|
15
|
-
encoding: UTF-8
|
16
|
-
string: <status>success</status>
|
17
|
-
<statusmsg></statusmsg>
|
18
|
-
<plans>plan1,plan2,plan3,plan4</plans>
|
19
|
-
http_version: "1.1"
|
20
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
21
|
-
- request:
|
22
|
-
method: get
|
23
|
-
uri: http://www.example.com/api?action=listplans&type=openvz&id=api_id&key=api_key
|
24
|
-
body:
|
25
|
-
encoding: UTF-8
|
26
|
-
string: ""
|
27
|
-
headers: {}
|
28
|
-
response:
|
29
|
-
status:
|
30
|
-
code: 200
|
31
|
-
message: OK
|
32
|
-
body:
|
33
|
-
encoding: UTF-8
|
34
|
-
string: <status>error</status>
|
35
|
-
<statusmsg>error message</statusmsg>
|
36
|
-
http_version: "1.1"
|
37
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
38
|
-
recorded_with: VCR 2.0.0
|
@@ -1,38 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=listtemplates&type=xen&id=api_id&key=api_key
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ""
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
body:
|
15
|
-
encoding: UTF-8
|
16
|
-
string: <status>success</status>
|
17
|
-
<statusmsg></statusmsg>
|
18
|
-
<templates>template1,template2,template3</templates>
|
19
|
-
http_version: "1.1"
|
20
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
21
|
-
- request:
|
22
|
-
method: get
|
23
|
-
uri: http://www.example.com/api?action=listtemplates&type=openvz&id=api_id&key=api_key
|
24
|
-
body:
|
25
|
-
encoding: UTF-8
|
26
|
-
string: ""
|
27
|
-
headers: {}
|
28
|
-
response:
|
29
|
-
status:
|
30
|
-
code: 200
|
31
|
-
message: OK
|
32
|
-
body:
|
33
|
-
encoding: UTF-8
|
34
|
-
string: <status>error</status>
|
35
|
-
<statusmsg>error message</statusmsg>
|
36
|
-
http_version: "1.1"
|
37
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
38
|
-
recorded_with: VCR 2.0.0
|
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=node-iplist&nodeid=1&id=api_id1&key=api_key
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ""
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
body:
|
15
|
-
encoding: UTF-8
|
16
|
-
string: <status>success</status>
|
17
|
-
<statusmsg>Available ip addresses</statusmsg>
|
18
|
-
<ipcount>3</ipcount>
|
19
|
-
<ips>123.123.123.123,124.124.124.124,125.125.125.125</ips>
|
20
|
-
http_version: "1.1"
|
21
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
22
|
-
- request:
|
23
|
-
method: get
|
24
|
-
uri: http://www.example.com/api?action=node-iplist&nodeid=1&id=api_id2&key=api_key
|
25
|
-
body:
|
26
|
-
encoding: UTF-8
|
27
|
-
string: ""
|
28
|
-
headers: {}
|
29
|
-
response:
|
30
|
-
status:
|
31
|
-
code: 200
|
32
|
-
message: OK
|
33
|
-
body:
|
34
|
-
encoding: UTF-8
|
35
|
-
string: <status>success</status>
|
36
|
-
<statusmsg>No available ip addresses</statusmsg>
|
37
|
-
<ipcount>3</ipcount>
|
38
|
-
<ips></ips>
|
39
|
-
http_version: "1.1"
|
40
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
41
|
-
recorded_with: VCR 2.0.0
|
@@ -1,21 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=node-idlist&type=xen&id=api_id&key=api_key
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ""
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
body:
|
15
|
-
encoding: UTF-8
|
16
|
-
string: <status>success</status>
|
17
|
-
<statusmsg></statusmsg>
|
18
|
-
<nodes>nodeid1,nodeid2,nodeid3,nodeid4</nodes>
|
19
|
-
http_version: "1.1"
|
20
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
21
|
-
recorded_with: VCR 2.0.0
|
@@ -1,38 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=listnodes&type=xen&id=api_id&key=api_key
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ""
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
body:
|
15
|
-
encoding: UTF-8
|
16
|
-
string: <status>success</status>
|
17
|
-
<statusmsg></statusmsg>
|
18
|
-
<nodes>node1,node2,node3,node4</nodes>
|
19
|
-
http_version: "1.1"
|
20
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
21
|
-
- request:
|
22
|
-
method: get
|
23
|
-
uri: http://www.example.com/api?action=listnodes&type=openvz&id=api_id&key=api_key
|
24
|
-
body:
|
25
|
-
encoding: UTF-8
|
26
|
-
string: ""
|
27
|
-
headers: {}
|
28
|
-
response:
|
29
|
-
status:
|
30
|
-
code: 200
|
31
|
-
message: OK
|
32
|
-
body:
|
33
|
-
encoding: UTF-8
|
34
|
-
string: <status>error</status>
|
35
|
-
<statusmsg>error message</statusmsg>
|
36
|
-
http_version: "1.1"
|
37
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
38
|
-
recorded_with: VCR 2.0.0
|
@@ -1,20 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=listnodegroups&id=api_id&key=api_key
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ""
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
body:
|
15
|
-
encoding: UTF-8
|
16
|
-
string: <status>success</status>
|
17
|
-
<statusmsg></statusmsg>
|
18
|
-
<nodegroups>0|--none--,1|nodegroup1,2|nodegroup2,3|nodegroup3</nodegroups>
|
19
|
-
http_version: "1.1"
|
20
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
@@ -1,32 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=node-statistics&nodeid=1&id=api_id&key=api_key
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ""
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
body:
|
15
|
-
encoding: UTF-8
|
16
|
-
string: <status>success</status>
|
17
|
-
<statusmsg></statusmsg>
|
18
|
-
<id>1</id>
|
19
|
-
<name>name</name>
|
20
|
-
<ip>127.0.0.1</ip>
|
21
|
-
<hostname>hostname.com</hostname>
|
22
|
-
<country>country</country>
|
23
|
-
<city>city</city>
|
24
|
-
<sshport>22</sshport>
|
25
|
-
<arch>x86_64</arch>
|
26
|
-
<freememory>10</freememory>
|
27
|
-
<freedisk>1000</freedisk>
|
28
|
-
<virtualservers>2</virtualservers>
|
29
|
-
<freeips>0</freeips>
|
30
|
-
http_version: "1.1"
|
31
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
32
|
-
recorded_with: VCR 2.0.0
|
@@ -1,67 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=node-virtualservers&nodeid=1&id=api_id1&key=api_key
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ""
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
body:
|
15
|
-
encoding: UTF-8
|
16
|
-
string: <virtualservers>
|
17
|
-
<virtualserver>
|
18
|
-
<vserverid>theid</vserverid>
|
19
|
-
<ctid-xid>thexid</ctid-xid>
|
20
|
-
<clientid>theclientid</clientid>
|
21
|
-
<ipaddress>theip</ipaddress>
|
22
|
-
<hostname>thehostname</hostname>
|
23
|
-
<template>thetemplate</template>
|
24
|
-
<hdd>thediskspace</hdd>
|
25
|
-
<memory>thememory</memory>
|
26
|
-
<swap-burst>theswap</swap-burst>
|
27
|
-
<type>thetype</type>
|
28
|
-
<mac>themac</mac>
|
29
|
-
</virtualserver>
|
30
|
-
</virtualservers>
|
31
|
-
http_version: "1.1"
|
32
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
33
|
-
- request:
|
34
|
-
method: get
|
35
|
-
uri: http://www.example.com/api?action=node-virtualservers&nodeid=1&id=api_id2&key=api_key
|
36
|
-
body:
|
37
|
-
encoding: UTF-8
|
38
|
-
string: ""
|
39
|
-
headers: {}
|
40
|
-
response:
|
41
|
-
status:
|
42
|
-
code: 200
|
43
|
-
message: OK
|
44
|
-
body:
|
45
|
-
encoding: UTF-8
|
46
|
-
string: <virtualservers>
|
47
|
-
</virtualservers>
|
48
|
-
http_version: "1.1"
|
49
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
50
|
-
- request:
|
51
|
-
method: get
|
52
|
-
uri: http://www.example.com/api?action=node-virtualservers&nodeid=1&id=api_id3&key=api_key
|
53
|
-
body:
|
54
|
-
encoding: UTF-8
|
55
|
-
string: ""
|
56
|
-
headers: {}
|
57
|
-
response:
|
58
|
-
status:
|
59
|
-
code: 200
|
60
|
-
message: OK
|
61
|
-
body:
|
62
|
-
encoding: UTF-8
|
63
|
-
string: <status>error</status>
|
64
|
-
<statusmsg>error message</statusmsg>
|
65
|
-
http_version: "1.1"
|
66
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
67
|
-
recorded_with: VCR 2.0.0
|
@@ -1,22 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.example.com/api?action=node-xenresources&nodeid=1&id=api_id&key=api_key
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ""
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
body:
|
15
|
-
encoding: UTF-8
|
16
|
-
string: <status>success</status>
|
17
|
-
<statusmsg></statusmsg>
|
18
|
-
<freememory>thefreememory</freememory>
|
19
|
-
<freehdd>thefreehdd</freehdd>
|
20
|
-
http_version: "1.1"
|
21
|
-
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
22
|
-
recorded_with: VCR 2.0.0
|