lumberg 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +98 -0
- data/LICENSE +20 -0
- data/README.md +178 -0
- data/Rakefile +49 -0
- data/lib/cacert.pem +3910 -0
- data/lib/lumberg.rb +23 -0
- data/lib/lumberg/exceptions.rb +6 -0
- data/lib/lumberg/version.rb +3 -0
- data/lib/lumberg/whm.rb +70 -0
- data/lib/lumberg/whm/account.rb +329 -0
- data/lib/lumberg/whm/args.rb +113 -0
- data/lib/lumberg/whm/base.rb +28 -0
- data/lib/lumberg/whm/dns.rb +205 -0
- data/lib/lumberg/whm/reseller.rb +268 -0
- data/lib/lumberg/whm/server.rb +290 -0
- data/lib/net_http_hacked.rb +42 -0
- data/lumberg.gemspec +28 -0
- data/spec/lumberg_spec.rb +9 -0
- data/spec/spec_helper.rb +33 -0
- data/spec/vcr_cassettes/whm/account/accountsummary.yml +43 -0
- data/spec/vcr_cassettes/whm/account/changepackage.yml +64 -0
- data/spec/vcr_cassettes/whm/account/createacct.yml +43 -0
- data/spec/vcr_cassettes/whm/account/domainuserdata.yml +43 -0
- data/spec/vcr_cassettes/whm/account/editquota.yml +85 -0
- data/spec/vcr_cassettes/whm/account/limitbw.yml +85 -0
- data/spec/vcr_cassettes/whm/account/listaccts.yml +147 -0
- data/spec/vcr_cassettes/whm/account/listsuspended.yml +43 -0
- data/spec/vcr_cassettes/whm/account/modifyacct.yml +63 -0
- data/spec/vcr_cassettes/whm/account/myprivs.yml +43 -0
- data/spec/vcr_cassettes/whm/account/passwd.yml +43 -0
- data/spec/vcr_cassettes/whm/account/removeacct.yml +85 -0
- data/spec/vcr_cassettes/whm/account/restoreaccount.yml +198 -0
- data/spec/vcr_cassettes/whm/account/setsiteip.yml +190 -0
- data/spec/vcr_cassettes/whm/account/suspend.yml +64 -0
- data/spec/vcr_cassettes/whm/account/unsuspend.yml +43 -0
- data/spec/vcr_cassettes/whm/dns/adddns.yml +64 -0
- data/spec/vcr_cassettes/whm/dns/addzonerecord.yml +43 -0
- data/spec/vcr_cassettes/whm/dns/dumpzone.yml +43 -0
- data/spec/vcr_cassettes/whm/dns/editzonerecord.yml +64 -0
- data/spec/vcr_cassettes/whm/dns/getzonerecord.yml +64 -0
- data/spec/vcr_cassettes/whm/dns/killdns.yml +43 -0
- data/spec/vcr_cassettes/whm/dns/listmxs.yml +22 -0
- data/spec/vcr_cassettes/whm/dns/listzones.yml +22 -0
- data/spec/vcr_cassettes/whm/dns/lookupnsip.yml +43 -0
- data/spec/vcr_cassettes/whm/dns/removezonerecord.yml +64 -0
- data/spec/vcr_cassettes/whm/dns/resetzone.yml +43 -0
- data/spec/vcr_cassettes/whm/dns/resolvedomainname.yml +43 -0
- data/spec/vcr_cassettes/whm/dns/savemxs.yml +22 -0
- data/spec/vcr_cassettes/whm/reseller/acctcounts.yml +43 -0
- data/spec/vcr_cassettes/whm/reseller/listacls.yml +22 -0
- data/spec/vcr_cassettes/whm/reseller/listresellers.yml +22 -0
- data/spec/vcr_cassettes/whm/reseller/resellerstats.yml +43 -0
- data/spec/vcr_cassettes/whm/reseller/saveacllist.yml +85 -0
- data/spec/vcr_cassettes/whm/reseller/setacls.yml +43 -0
- data/spec/vcr_cassettes/whm/reseller/setresellerips.yml +42 -0
- data/spec/vcr_cassettes/whm/reseller/setresellerlimits.yml +43 -0
- data/spec/vcr_cassettes/whm/reseller/setresellermainip.yml +64 -0
- data/spec/vcr_cassettes/whm/reseller/setresellernameservers.yml +64 -0
- data/spec/vcr_cassettes/whm/reseller/setresellerpackagelimit.yml +64 -0
- data/spec/vcr_cassettes/whm/reseller/setupreseller.yml +43 -0
- data/spec/vcr_cassettes/whm/reseller/suspendreseller.yml +64 -0
- data/spec/vcr_cassettes/whm/reseller/terminatereseller.yml +64 -0
- data/spec/vcr_cassettes/whm/reseller/unsetupreseller.yml +43 -0
- data/spec/vcr_cassettes/whm/reseller/unsuspendreseller.yml +43 -0
- data/spec/vcr_cassettes/whm/server/applist.yml +22 -0
- data/spec/vcr_cassettes/whm/server/gethostname.yml +22 -0
- data/spec/vcr_cassettes/whm/server/getlanglist.yml +22 -0
- data/spec/vcr_cassettes/whm/server/loadavg.yml +28 -0
- data/spec/vcr_cassettes/whm/server/my_function.yml +64 -0
- data/spec/vcr_cassettes/whm/server/response_type.yml +85 -0
- data/spec/vcr_cassettes/whm/server/systemloadavg.yml +43 -0
- data/spec/vcr_cassettes/whm/server/version.yml +22 -0
- data/spec/whm/account_spec.rb +577 -0
- data/spec/whm/args_spec.rb +179 -0
- data/spec/whm/base_spec.rb +28 -0
- data/spec/whm/dns_spec.rb +352 -0
- data/spec/whm/reseller_spec.rb +359 -0
- data/spec/whm/server_spec.rb +288 -0
- data/spec/whm/whm_spec.rb +41 -0
- metadata +265 -0
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://myhost.com:2087/json-api/changepackage?pkg=default&user=notexists
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
authorization:
|
9
|
+
- WHM root:iscool
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
content-type:
|
16
|
+
- text/plain
|
17
|
+
server:
|
18
|
+
- cpsrvd/11.28.64
|
19
|
+
transfer-encoding:
|
20
|
+
- chunked
|
21
|
+
body: "{\"result\":[{\"status\":0,\"statusmsg\":\"Sorry the user notexists does not exist\",\"rawout\":null}]}"
|
22
|
+
http_version: "1.1"
|
23
|
+
- !ruby/struct:VCR::HTTPInteraction
|
24
|
+
request: !ruby/struct:VCR::Request
|
25
|
+
method: :get
|
26
|
+
uri: https://myhost.com:2087/json-api/changepackage?pkg=fakepackage&user=changeme
|
27
|
+
body:
|
28
|
+
headers:
|
29
|
+
authorization:
|
30
|
+
- WHM root:iscool
|
31
|
+
response: !ruby/struct:VCR::Response
|
32
|
+
status: !ruby/struct:VCR::ResponseStatus
|
33
|
+
code: 200
|
34
|
+
message: OK
|
35
|
+
headers:
|
36
|
+
content-type:
|
37
|
+
- text/plain
|
38
|
+
server:
|
39
|
+
- cpsrvd/11.28.64
|
40
|
+
transfer-encoding:
|
41
|
+
- chunked
|
42
|
+
body: "{\"result\":[{\"status\":0,\"statusmsg\":\"Specified package does not exist.\",\"rawout\":null}]}"
|
43
|
+
http_version: "1.1"
|
44
|
+
- !ruby/struct:VCR::HTTPInteraction
|
45
|
+
request: !ruby/struct:VCR::Request
|
46
|
+
method: :get
|
47
|
+
uri: https://myhost.com:2087/json-api/changepackage?pkg=gold&user=changeme
|
48
|
+
body:
|
49
|
+
headers:
|
50
|
+
authorization:
|
51
|
+
- WHM root:iscool
|
52
|
+
response: !ruby/struct:VCR::Response
|
53
|
+
status: !ruby/struct:VCR::ResponseStatus
|
54
|
+
code: 200
|
55
|
+
message: OK
|
56
|
+
headers:
|
57
|
+
content-type:
|
58
|
+
- text/plain
|
59
|
+
server:
|
60
|
+
- cpsrvd/11.28.64
|
61
|
+
transfer-encoding:
|
62
|
+
- chunked
|
63
|
+
body: "{\"result\":[{\"status\":1,\"statusmsg\":\"Account Upgrade/Downgrade Complete for changeme\",\"rawout\":\"<pre>\\nChanging bwlimit to unlimited Meg\\nChanging Feature List to default\\nChanging max pop accounts from unlimited to unlimited\\nChanging max sql accounts from unlimited to unlimited\\nChanging max ftp accounts from unlimited to unlimited\\nChanging max lists from unlimited to unlimited\\nChanging max sub domains from unlimited to unlimited\\nChanging language from en to en\\nChanging max parked domains from 0 to 0\\nChanging max addon domains from 0 to 0\\nShell Access Set Correctly (noshell)\\nChanging cPanel theme from to \\nChanging plan from gold to gold\\nResetting QUOTA....\\nUsing Universal Quota Support (quota=0)\\nBandwidth limit (0) is lower than (unlimited) (all limits removed)<br /><blockquote><div style='float:left;'>Enabling...</div><div style='float:left;'>...example.com...</div><div style='float:left;'>Done</div></blockquote><br /><div class='clearit' style='clear:both; width:80%;'> </div><span class=\\\"b2\\\">Warning, this will not change shared IP accounts to dedicated IP accounts, or the reverse.</span>\\n\"}]}"
|
64
|
+
http_version: "1.1"
|
@@ -0,0 +1,43 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://myhost.com:2087/json-api/createacct?domain=valid-thing.com&password=hummingbird123&username=valid
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
authorization:
|
9
|
+
- WHM root:iscool
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
server:
|
16
|
+
- cpsrvd/11.28.64
|
17
|
+
transfer-encoding:
|
18
|
+
- chunked
|
19
|
+
content-type:
|
20
|
+
- text/plain
|
21
|
+
body: "{\"result\":[{\"status\":1,\"statusmsg\":\"Account Creation Ok\",\"rawout\":\"<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Checking input data...System has 237 free ips.\\n...Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>WWWAcct 12.5.0 (c) 2010 cPanel, Inc....\\n\\nDns Zone check is enabled.\\n+===================================+\\n| New Account Info |\\n+===================================+\\n| Domain: valid-thing.com\\n| Ip: 192.1.2.3 (n)\\n| HasCgi: y\\n| UserName: valid\\n| PassWord: hummingbird123\\n| CpanelMod: x3\\n| HomeRoot: /home\\n| Quota: 0 Meg\\n| NameServer1: dns.example.com\\n| NameServer2: dns2.example.com\\n| NameServer3: \\n| NameServer4: \\n| Contact Email: \\n| Package: default\\n| Feature List: default\\n| Language: en\\n+===================================+\\n...Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Running pre creation script (/scripts/prewwwacct)......Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Adding User...Removing Shell Access (n)\\n...Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Copying skel files from /root/cpanel3-skel/ to /home/valid/......Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Adding Entries to httpd.conf......Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Setting up Mail & Local Domains...localdomains...valiases ...vdomainaliases...vfilters......Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Configuring DNS...\\nError: There is a problem communicating with the name server.\\nWe may be doing maintenance to this feature or the DNS server.\\nPlease try again and if this problem continues please report it to the server administrator.\\n\\n...Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Restarting apache......Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\nChanging password for valid\\nPassword for valid has been changed\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Updating Authentication Databases...Updating ftp passwords for valid\\nFtp password files updated.\\nFtp vhost passwords synced\\n...Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Verifying MX Records and Setting up Databases...Reconfiguring Mail Routing:\\n<ul><li>LOCAL MAIL EXCHANGER: This server will serve as a primary mail exchanger for valid-thing.com's mail.:<br /> This configuration has been manually selected.<br /><br /></li></ul>...Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Sending Account Information......Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\nSystem has 237 free ips.\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Running post creation scripts (/scripts/legacypostwwwacct, /scripts/postwwwacct, /scripts/postwwwacctuser)......Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\nwwwacct creation finished\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Setting up Domain Pointers......Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Setting Reseller Privs......Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\n<table style=\\\"border-bottom: 1px #ccc dotted;\\\"><tr><td width=\\\"100%\\\"><pre>Account Creation Complete!!!...Account Creation Ok...Done</pre></td><td width=\\\"30\\\"><img align=absmiddle src=\\\"/cPanel_magic_revision_1266536260/cjt/images/icons/success.png\\\"></td></tr></table>\\n\",\"options\":{\"nameserver4\":null,\"nameserver\":\"dns.example.com\",\"nameserverentry2\":null,\"nameserverentry3\":null,\"nameserverentry4\":null,\"nameserverentry\":null,\"ip\":\"192.1.2.3\",\"nameservera2\":null,\"nameservera3\":null,\"package\":\"default\",\"nameservera4\":null,\"nameserver2\":\"dns2.example.com\",\"nameservera\":null,\"nameserver3\":null}}]}"
|
22
|
+
http_version: "1.1"
|
23
|
+
- !ruby/struct:VCR::HTTPInteraction
|
24
|
+
request: !ruby/struct:VCR::Request
|
25
|
+
method: :get
|
26
|
+
uri: https://myhost.com:2087/json-api/createacct?domain=invalid-thing.com&password=hummingbird123&username=invalid
|
27
|
+
body:
|
28
|
+
headers:
|
29
|
+
authorization:
|
30
|
+
- WHM root:iscool
|
31
|
+
response: !ruby/struct:VCR::Response
|
32
|
+
status: !ruby/struct:VCR::ResponseStatus
|
33
|
+
code: 200
|
34
|
+
message: OK
|
35
|
+
headers:
|
36
|
+
server:
|
37
|
+
- cpsrvd/11.28.64
|
38
|
+
transfer-encoding:
|
39
|
+
- chunked
|
40
|
+
content-type:
|
41
|
+
- text/plain
|
42
|
+
body: "{\"result\":[{\"status\":0,\"statusmsg\":\"Sorry, a group for that username already exists.\",\"rawout\":null,\"options\":null}]}"
|
43
|
+
http_version: "1.1"
|
@@ -0,0 +1,43 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://myhost.com:2087/json-api/domainuserdata?domain=notexists.com
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
authorization:
|
9
|
+
- WHM root:iscool
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
content-type:
|
16
|
+
- text/plain
|
17
|
+
server:
|
18
|
+
- cpsrvd/11.28.64
|
19
|
+
transfer-encoding:
|
20
|
+
- chunked
|
21
|
+
body: "{\"result\":[{\"status\":0,\"statusmsg\":\"Unable to determine account owner for domain.\"}]}"
|
22
|
+
http_version: "1.1"
|
23
|
+
- !ruby/struct:VCR::HTTPInteraction
|
24
|
+
request: !ruby/struct:VCR::Request
|
25
|
+
method: :get
|
26
|
+
uri: https://myhost.com:2087/json-api/domainuserdata?domain=example.com
|
27
|
+
body:
|
28
|
+
headers:
|
29
|
+
authorization:
|
30
|
+
- WHM root:iscool
|
31
|
+
response: !ruby/struct:VCR::Response
|
32
|
+
status: !ruby/struct:VCR::ResponseStatus
|
33
|
+
code: 200
|
34
|
+
message: OK
|
35
|
+
headers:
|
36
|
+
content-type:
|
37
|
+
- text/plain
|
38
|
+
server:
|
39
|
+
- cpsrvd/11.28.64
|
40
|
+
transfer-encoding:
|
41
|
+
- chunked
|
42
|
+
body: "{\"result\":[{\"status\":1,\"statusmsg\":\"Obtained userdata.\"}],\"userdata\":{\"usecanonicalname\":\"Off\",\"port\":\"80\",\"phpopenbasedirprotect\":\"1\",\"group\":\"changeme\",\"documentroot\":\"/home/changeme/public_html\",\"hascgi\":\"0\",\"serveradmin\":\"webmaster@example.com\",\"options\":\"-ExecCGI -Includes\",\"user\":\"changeme\",\"customlog\":[{\"format\":\"combined\",\"target\":\"/usr/local/apache/domlogs/example.com\"},{\"format\":\"\\\"%{%s}t %I .\\\\n%{%s}t %O .\\\"\",\"target\":\"/usr/local/apache/domlogs/example.com-bytes_log\"}],\"servername\":\"example.com\",\"ip\":\"192.1.2.3\",\"scriptalias\":[{\"path\":\"/home/changeme/public_html/cgi-bin\",\"url\":\"/cgi-bin/\"}],\"serveralias\":\"www.example.com\",\"homedir\":\"/home/changeme\",\"owner\":\"root\"}}"
|
43
|
+
http_version: "1.1"
|
@@ -0,0 +1,85 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://myhost.com:2087/json-api/editquota?quota=500&user=notexists
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
authorization:
|
9
|
+
- WHM root:iscool
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
content-type:
|
16
|
+
- text/plain
|
17
|
+
server:
|
18
|
+
- cpsrvd/11.28.64
|
19
|
+
transfer-encoding:
|
20
|
+
- chunked
|
21
|
+
body: "{\"result\":[{\"status\":0,\"statusmsg\":\"Invalid user. Cannot set quota.\"}],\"output\":null}"
|
22
|
+
http_version: "1.1"
|
23
|
+
- !ruby/struct:VCR::HTTPInteraction
|
24
|
+
request: !ruby/struct:VCR::Request
|
25
|
+
method: :get
|
26
|
+
uri: https://myhost.com:2087/json-api/editquota?quota=500&user=changeme
|
27
|
+
body:
|
28
|
+
headers:
|
29
|
+
authorization:
|
30
|
+
- WHM root:iscool
|
31
|
+
response: !ruby/struct:VCR::Response
|
32
|
+
status: !ruby/struct:VCR::ResponseStatus
|
33
|
+
code: 200
|
34
|
+
message: OK
|
35
|
+
headers:
|
36
|
+
content-type:
|
37
|
+
- text/plain
|
38
|
+
server:
|
39
|
+
- cpsrvd/11.28.64
|
40
|
+
transfer-encoding:
|
41
|
+
- chunked
|
42
|
+
body: "{\"result\":[{\"status\":1,\"statusmsg\":\"Set quota for user.\"}],\"output\":\"Using Universal Quota Support (quota=512000)\\n\"}"
|
43
|
+
http_version: "1.1"
|
44
|
+
- !ruby/struct:VCR::HTTPInteraction
|
45
|
+
request: !ruby/struct:VCR::Request
|
46
|
+
method: :get
|
47
|
+
uri: https://myhost.com:2087/json-api/editquota?quota=-1&user=changeme
|
48
|
+
body:
|
49
|
+
headers:
|
50
|
+
authorization:
|
51
|
+
- WHM root:iscool
|
52
|
+
response: !ruby/struct:VCR::Response
|
53
|
+
status: !ruby/struct:VCR::ResponseStatus
|
54
|
+
code: 200
|
55
|
+
message: OK
|
56
|
+
headers:
|
57
|
+
content-type:
|
58
|
+
- text/plain
|
59
|
+
server:
|
60
|
+
- cpsrvd/11.28.64
|
61
|
+
transfer-encoding:
|
62
|
+
- chunked
|
63
|
+
body: "{\"result\":[{\"status\":0,\"statusmsg\":\"Failed to set quota for user.\"}],\"output\":\"Invalid quota\\nUsage: editquota <user> <?M>\\n\"}"
|
64
|
+
http_version: "1.1"
|
65
|
+
- !ruby/struct:VCR::HTTPInteraction
|
66
|
+
request: !ruby/struct:VCR::Request
|
67
|
+
method: :get
|
68
|
+
uri: https://myhost.com:2087/json-api/editquota?quota=-1&user=notexists
|
69
|
+
body:
|
70
|
+
headers:
|
71
|
+
authorization:
|
72
|
+
- WHM root:iscool
|
73
|
+
response: !ruby/struct:VCR::Response
|
74
|
+
status: !ruby/struct:VCR::ResponseStatus
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
content-type:
|
79
|
+
- text/plain
|
80
|
+
server:
|
81
|
+
- cpsrvd/11.28.64
|
82
|
+
transfer-encoding:
|
83
|
+
- chunked
|
84
|
+
body: "{\"result\":[{\"status\":0,\"statusmsg\":\"Invalid user. Cannot set quota.\"}],\"output\":null}"
|
85
|
+
http_version: "1.1"
|
@@ -0,0 +1,85 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://myhost.com:2087/json-api/limitbw?bwlimit=99999&user=changeme
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
authorization:
|
9
|
+
- WHM root:iscool
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
server:
|
16
|
+
- cpsrvd/11.28.64
|
17
|
+
transfer-encoding:
|
18
|
+
- chunked
|
19
|
+
content-type:
|
20
|
+
- text/plain
|
21
|
+
body: "{\"result\":[{\"status\":1,\"statusmsg\":\"Bandwidth Limit for changeme set to 99999\",\"bwlimit\":{\"bwlimitenable\":0,\"human_bwlimit\":\"97.66 GB\",\"domains\":[\"change.com\"],\"unlimited\":1,\"bwlimit\":\"104856551424\",\"human_bwused\":\"none\"}}]}"
|
22
|
+
http_version: "1.1"
|
23
|
+
- !ruby/struct:VCR::HTTPInteraction
|
24
|
+
request: !ruby/struct:VCR::Request
|
25
|
+
method: :get
|
26
|
+
uri: https://myhost.com:2087/json-api/limitbw?bwlimit=99999&user=dontchangeme
|
27
|
+
body:
|
28
|
+
headers:
|
29
|
+
authorization:
|
30
|
+
- WHM root:iscool
|
31
|
+
response: !ruby/struct:VCR::Response
|
32
|
+
status: !ruby/struct:VCR::ResponseStatus
|
33
|
+
code: 200
|
34
|
+
message: OK
|
35
|
+
headers:
|
36
|
+
server:
|
37
|
+
- cpsrvd/11.28.64
|
38
|
+
transfer-encoding:
|
39
|
+
- chunked
|
40
|
+
content-type:
|
41
|
+
- text/plain
|
42
|
+
body: "{\"result\":[{\"status\":1,\"statusmsg\":\"Bandwidth Limit for dontchangeme set to 99999\",\"bwlimit\":{\"bwlimitenable\":0,\"human_bwlimit\":\"97.66 GB\",\"domains\":[\"\"],\"unlimited\":0,\"bwlimit\":\"104856551424\",\"human_bwused\":\"none\"}}]}"
|
43
|
+
http_version: "1.1"
|
44
|
+
- !ruby/struct:VCR::HTTPInteraction
|
45
|
+
request: !ruby/struct:VCR::Request
|
46
|
+
method: :get
|
47
|
+
uri: https://myhost.com:2087/json-api/accountsummary?user=changeme
|
48
|
+
body:
|
49
|
+
headers:
|
50
|
+
authorization:
|
51
|
+
- WHM root:iscool
|
52
|
+
response: !ruby/struct:VCR::Response
|
53
|
+
status: !ruby/struct:VCR::ResponseStatus
|
54
|
+
code: 200
|
55
|
+
message: OK
|
56
|
+
headers:
|
57
|
+
server:
|
58
|
+
- cpsrvd/11.28.64
|
59
|
+
transfer-encoding:
|
60
|
+
- chunked
|
61
|
+
content-type:
|
62
|
+
- text/plain
|
63
|
+
body: "{\"status\":1,\"statusmsg\":\"Ok\",\"acct\":[{\"startdate\":\"11 Feb 22 13:20\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"change.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"changeme\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298402439\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"}]}"
|
64
|
+
http_version: "1.1"
|
65
|
+
- !ruby/struct:VCR::HTTPInteraction
|
66
|
+
request: !ruby/struct:VCR::Request
|
67
|
+
method: :get
|
68
|
+
uri: https://myhost.com:2087/json-api/accountsummary?user=notexists
|
69
|
+
body:
|
70
|
+
headers:
|
71
|
+
authorization:
|
72
|
+
- WHM root:iscool
|
73
|
+
response: !ruby/struct:VCR::Response
|
74
|
+
status: !ruby/struct:VCR::ResponseStatus
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
server:
|
79
|
+
- cpsrvd/11.28.64
|
80
|
+
transfer-encoding:
|
81
|
+
- chunked
|
82
|
+
content-type:
|
83
|
+
- text/plain
|
84
|
+
body: "{\"status\":0,\"statusmsg\":\"Account does not exist\",\"acct\":null}"
|
85
|
+
http_version: "1.1"
|
@@ -0,0 +1,147 @@
|
|
1
|
+
- !ruby/struct:VCR::HTTPInteraction
|
2
|
+
request: !ruby/struct:VCR::Request
|
3
|
+
method: :get
|
4
|
+
uri: https://myhost.com:2087/json-api/listaccts
|
5
|
+
body:
|
6
|
+
headers:
|
7
|
+
authorization:
|
8
|
+
- WHM root:iscool
|
9
|
+
response: !ruby/struct:VCR::Response
|
10
|
+
status: !ruby/struct:VCR::ResponseStatus
|
11
|
+
code: 200
|
12
|
+
message: OK
|
13
|
+
headers:
|
14
|
+
server:
|
15
|
+
- cpsrvd/11.28.64
|
16
|
+
transfer-encoding:
|
17
|
+
- chunked
|
18
|
+
content-type:
|
19
|
+
- text/plain
|
20
|
+
body: "{\"status\":1,\"statusmsg\":\"Ok\",\"acct\":[{\"startdate\":\"10 Dec 16 09:59\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"9999\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"geodefaultloctest.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"geodefau\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1292515153\",\"diskused\":\"0M\",\"maxparked\":\"9999\",\"email\":\"fdsajfksa@sometesting.com\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"11 Feb 22 09:52\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"invalid-thing.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"invalid\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298389927\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"11 Feb 22 11:05\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"valid-thing.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"valid\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298394344\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"10 Sep 30 13:00\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"thisismyhdasdfs.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"thisismy\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1285869619\",\"diskused\":\"0M\",\"maxparked\":\"9999\",\"email\":\"ftp@mailheist.com\",\"disklimit\":\"3531007M\",\"owner\":\"root\"},{\"startdate\":\"11 Jan 21 10:53\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"99999999\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"chicagoturbonew.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"chicagot\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1295628781\",\"diskused\":\"0M\",\"maxparked\":\"999999\",\"email\":\"testing@timistestinghere.com\",\"disklimit\":\"3531007M\",\"owner\":\"chicagot\"},{\"startdate\":\"11 Feb 23 13:25\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"suspendme.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"asdfasdf\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298489142\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"10 Dec 16 10:24\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"9999\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"timsgeoprovisoin.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"timsgeop\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1292516679\",\"diskused\":\"0M\",\"maxparked\":\"9999\",\"email\":\"timtesting@timtesting.com\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"10 Dec 16 09:53\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"9999\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"testinggeolocdcdefault.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"geolocde\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1292514837\",\"diskused\":\"0M\",\"maxparked\":\"9999\",\"email\":\"testinggeoloc@example.com\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"11 Feb 22 13:20\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"change.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"changeme\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298402439\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"11 Jan 04 15:46\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"9999\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"canadaplantesting.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"canadapl\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1294177595\",\"diskused\":\"0M\",\"maxparked\":\"9999\",\"email\":\"fdsjkafdsjkadfsjkl@example.com\",\"disklimit\":\"unlimited\",\"owner\":\"root\"}]}"
|
21
|
+
http_version: "1.1"
|
22
|
+
- !ruby/struct:VCR::HTTPInteraction
|
23
|
+
request: !ruby/struct:VCR::Request
|
24
|
+
method: :get
|
25
|
+
uri: https://myhost.com:2087/json-api/listaccts?search=%2Fch.%2A%3Fme
|
26
|
+
body:
|
27
|
+
headers:
|
28
|
+
authorization:
|
29
|
+
- WHM root:iscool
|
30
|
+
response: !ruby/struct:VCR::Response
|
31
|
+
status: !ruby/struct:VCR::ResponseStatus
|
32
|
+
code: 200
|
33
|
+
message: OK
|
34
|
+
headers:
|
35
|
+
server:
|
36
|
+
- cpsrvd/11.28.64
|
37
|
+
transfer-encoding:
|
38
|
+
- chunked
|
39
|
+
content-type:
|
40
|
+
- text/plain
|
41
|
+
body: "{\"status\":1,\"statusmsg\":\"Ok\",\"acct\":[{\"startdate\":\"10 Dec 16 09:59\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"9999\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"geodefaultloctest.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"geodefau\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1292515153\",\"diskused\":\"0M\",\"maxparked\":\"9999\",\"email\":\"fdsajfksa@sometesting.com\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"11 Feb 22 09:52\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"invalid-thing.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"invalid\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298389927\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"11 Feb 22 11:05\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"valid-thing.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"valid\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298394344\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"10 Sep 30 13:00\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"thisismyhdasdfs.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"thisismy\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1285869619\",\"diskused\":\"0M\",\"maxparked\":\"9999\",\"email\":\"ftp@mailheist.com\",\"disklimit\":\"3531007M\",\"owner\":\"root\"},{\"startdate\":\"11 Jan 21 10:53\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"99999999\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"chicagoturbonew.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"chicagot\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1295628781\",\"diskused\":\"0M\",\"maxparked\":\"999999\",\"email\":\"testing@timistestinghere.com\",\"disklimit\":\"3531007M\",\"owner\":\"chicagot\"},{\"startdate\":\"11 Feb 23 13:25\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"suspendme.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"asdfasdf\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298489142\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"10 Dec 16 10:24\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"9999\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"timsgeoprovisoin.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"timsgeop\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1292516679\",\"diskused\":\"0M\",\"maxparked\":\"9999\",\"email\":\"timtesting@timtesting.com\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"10 Dec 16 09:53\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"9999\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"testinggeolocdcdefault.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"geolocde\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1292514837\",\"diskused\":\"0M\",\"maxparked\":\"9999\",\"email\":\"testinggeoloc@example.com\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"11 Feb 22 13:20\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"change.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"changeme\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298402439\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"11 Jan 04 15:46\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"9999\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"canadaplantesting.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"canadapl\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1294177595\",\"diskused\":\"0M\",\"maxparked\":\"9999\",\"email\":\"fdsjkafdsjkadfsjkl@example.com\",\"disklimit\":\"unlimited\",\"owner\":\"root\"}]}"
|
42
|
+
http_version: "1.1"
|
43
|
+
- !ruby/struct:VCR::HTTPInteraction
|
44
|
+
request: !ruby/struct:VCR::Request
|
45
|
+
method: :get
|
46
|
+
uri: https://myhost.com:2087/json-api/listaccts?search=changeme&searchtype=user
|
47
|
+
body:
|
48
|
+
headers:
|
49
|
+
authorization:
|
50
|
+
- WHM root:iscool
|
51
|
+
response: !ruby/struct:VCR::Response
|
52
|
+
status: !ruby/struct:VCR::ResponseStatus
|
53
|
+
code: 200
|
54
|
+
message: OK
|
55
|
+
headers:
|
56
|
+
server:
|
57
|
+
- cpsrvd/11.28.64
|
58
|
+
transfer-encoding:
|
59
|
+
- chunked
|
60
|
+
content-type:
|
61
|
+
- text/plain
|
62
|
+
body: "{\"status\":1,\"statusmsg\":\"Ok\",\"acct\":[{\"startdate\":\"11 Feb 22 13:20\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"change.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"changeme\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298402439\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"}]}"
|
63
|
+
http_version: "1.1"
|
64
|
+
- !ruby/struct:VCR::HTTPInteraction
|
65
|
+
request: !ruby/struct:VCR::Request
|
66
|
+
method: :get
|
67
|
+
uri: https://myhost.com:2087/json-api/listaccts?search=192.1.2.3&searchtype=ip
|
68
|
+
body:
|
69
|
+
headers:
|
70
|
+
authorization:
|
71
|
+
- WHM root:iscool
|
72
|
+
response: !ruby/struct:VCR::Response
|
73
|
+
status: !ruby/struct:VCR::ResponseStatus
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
server:
|
78
|
+
- cpsrvd/11.28.64
|
79
|
+
transfer-encoding:
|
80
|
+
- chunked
|
81
|
+
content-type:
|
82
|
+
- text/plain
|
83
|
+
body: "{\"status\":1,\"statusmsg\":\"Ok\",\"acct\":[{\"startdate\":\"11 Feb 22 09:52\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"invalid-thing.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"invalid\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298389927\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"11 Feb 22 11:05\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"valid-thing.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"valid\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298394344\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"10 Sep 30 13:00\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"thisismyhdasdfs.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"thisismy\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1285869619\",\"diskused\":\"0M\",\"maxparked\":\"9999\",\"email\":\"ftp@mailheist.com\",\"disklimit\":\"3531007M\",\"owner\":\"root\"},{\"startdate\":\"11 Jan 21 10:53\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"99999999\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"chicagoturbonew.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"chicagot\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1295628781\",\"diskused\":\"0M\",\"maxparked\":\"999999\",\"email\":\"testing@timistestinghere.com\",\"disklimit\":\"3531007M\",\"owner\":\"chicagot\"},{\"startdate\":\"11 Feb 23 13:25\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"suspendme.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"asdfasdf\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298489142\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"11 Feb 22 13:20\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"change.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"changeme\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298402439\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"}]}"
|
84
|
+
http_version: "1.1"
|
85
|
+
- !ruby/struct:VCR::HTTPInteraction
|
86
|
+
request: !ruby/struct:VCR::Request
|
87
|
+
method: :get
|
88
|
+
uri: https://myhost.com:2087/json-api/listaccts?search=change.com&searchtype=domain
|
89
|
+
body:
|
90
|
+
headers:
|
91
|
+
authorization:
|
92
|
+
- WHM root:iscool
|
93
|
+
response: !ruby/struct:VCR::Response
|
94
|
+
status: !ruby/struct:VCR::ResponseStatus
|
95
|
+
code: 200
|
96
|
+
message: OK
|
97
|
+
headers:
|
98
|
+
server:
|
99
|
+
- cpsrvd/11.28.64
|
100
|
+
transfer-encoding:
|
101
|
+
- chunked
|
102
|
+
content-type:
|
103
|
+
- text/plain
|
104
|
+
body: "{\"status\":1,\"statusmsg\":\"Ok\",\"acct\":[{\"startdate\":\"11 Feb 22 13:20\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"change.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"changeme\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298402439\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"}]}"
|
105
|
+
http_version: "1.1"
|
106
|
+
- !ruby/struct:VCR::HTTPInteraction
|
107
|
+
request: !ruby/struct:VCR::Request
|
108
|
+
method: :get
|
109
|
+
uri: https://myhost.com:2087/json-api/listaccts?search=192%5C..%2A%3F%5C.1%5C.20&searchtype=ip
|
110
|
+
body:
|
111
|
+
headers:
|
112
|
+
authorization:
|
113
|
+
- WHM root:iscool
|
114
|
+
response: !ruby/struct:VCR::Response
|
115
|
+
status: !ruby/struct:VCR::ResponseStatus
|
116
|
+
code: 200
|
117
|
+
message: OK
|
118
|
+
headers:
|
119
|
+
server:
|
120
|
+
- cpsrvd/11.28.64
|
121
|
+
transfer-encoding:
|
122
|
+
- chunked
|
123
|
+
content-type:
|
124
|
+
- text/plain
|
125
|
+
body: "{\"status\":1,\"statusmsg\":\"Ok\",\"acct\":[{\"startdate\":\"11 Feb 22 09:52\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"invalid-thing.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"invalid\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298389927\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"11 Feb 22 11:05\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"valid-thing.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"valid\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298394344\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"10 Sep 30 13:00\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"thisismyhdasdfs.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"thisismy\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1285869619\",\"diskused\":\"0M\",\"maxparked\":\"9999\",\"email\":\"ftp@mailheist.com\",\"disklimit\":\"3531007M\",\"owner\":\"root\"},{\"startdate\":\"11 Jan 21 10:53\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"na4\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"99999999\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"chicagoturbonew.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"chicagot\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1295628781\",\"diskused\":\"0M\",\"maxparked\":\"999999\",\"email\":\"testing@timistestinghere.com\",\"disklimit\":\"3531007M\",\"owner\":\"chicagot\"},{\"startdate\":\"11 Feb 23 13:25\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/jailshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"suspendme.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"asdfasdf\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298489142\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"},{\"startdate\":\"11 Feb 22 13:20\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"change.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"changeme\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298402439\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"}]}"
|
126
|
+
http_version: "1.1"
|
127
|
+
- !ruby/struct:VCR::HTTPInteraction
|
128
|
+
request: !ruby/struct:VCR::Request
|
129
|
+
method: :get
|
130
|
+
uri: https://myhost.com:2087/json-api/listaccts?search=ch.%2A%3Fe.com&searchtype=domain
|
131
|
+
body:
|
132
|
+
headers:
|
133
|
+
authorization:
|
134
|
+
- WHM root:iscool
|
135
|
+
response: !ruby/struct:VCR::Response
|
136
|
+
status: !ruby/struct:VCR::ResponseStatus
|
137
|
+
code: 200
|
138
|
+
message: OK
|
139
|
+
headers:
|
140
|
+
server:
|
141
|
+
- cpsrvd/11.28.64
|
142
|
+
transfer-encoding:
|
143
|
+
- chunked
|
144
|
+
content-type:
|
145
|
+
- text/plain
|
146
|
+
body: "{\"status\":1,\"statusmsg\":\"Ok\",\"acct\":[{\"startdate\":\"11 Feb 22 13:20\",\"plan\":\"default\",\"suspended\":0,\"theme\":\"x3\",\"shell\":\"/usr/local/cpanel/bin/noshell\",\"maxpop\":\"unlimited\",\"maxlst\":\"unlimited\",\"maxaddons\":\"*unknown*\",\"suspendtime\":null,\"ip\":\"192.1.2.3\",\"maxsub\":\"unlimited\",\"domain\":\"change.com\",\"maxsql\":\"unlimited\",\"partition\":\"home\",\"maxftp\":\"unlimited\",\"user\":\"changeme\",\"suspendreason\":\"not suspended\",\"unix_startdate\":\"1298402439\",\"diskused\":\"0M\",\"maxparked\":\"*unknown*\",\"email\":\"*unknown*\",\"disklimit\":\"unlimited\",\"owner\":\"root\"}]}"
|
147
|
+
http_version: "1.1"
|