Commit Graph

24 Commits (a6b58bc88d390a21baf3cf457f3d3daba314222b)

Author SHA1 Message Date
lufi42 a6b58bc88d Corrected use of Plesk API calls to fetch all domain for all Plesk editions
This implementation of the Plesk API will add support for Plesk web admin edition and will now discover all domains ( of customers & administrative users) managed by the specific plesk instance.

The previous implementation of the Plesk API uses the customer API. This brings two problems:
1. The current API call only fetches the domains of resellers/customers and not the domains that are managed by administrative users.
compare:
https://docs.plesk.com/en-US/obsidian/api-rpc/about-xml-api/reference/managing-customer-accounts/retrieving-the-list-of-customer%E2%80%99s-domains.75309/
https://docs.plesk.com/en-US/obsidian/api-rpc/about-xml-api/reference/managing-plesk-server/getting-server-information/response-packet-structure-and-samples/list-of-domains.75294/

2. The customer API is only available in the web pro/host editions. The most common license on VPS/Dedicated Servers is nowadays the web admin edition. See: https://www.plesk.com/editions/

The correct way to get all domains in all Plesk editions is to use the Sites (Domains) API:
https://docs.plesk.com/en-US/obsidian/api-rpc/about-xml-api/reference/managing-sites-domains/getting-information-about-sites.66583/
This way is working for all plesk editions the same way.
2022-03-09 01:42:26 +01:00
neil 19c4345162 fix shfmt 2020-08-17 22:18:20 +08:00
neilpang d795fac37a update repo name 2020-01-30 12:06:39 +08:00
stilez 51cfd996eb
rmv space 2019-11-05 23:29:51 +00:00
stilez 6d0e4bed4b
remove \n in output messages 2019-11-05 23:26:05 +00:00
stilez 05247dc4a4
fix 2019-11-05 21:09:14 +00:00
stilez 43011f3bfa
enhance 2019-11-05 21:04:10 +00:00
stilez 38854bd876
bugfix 2019-11-05 21:00:34 +00:00
stilez a9726bd52f
bugfix 2019-11-05 20:58:51 +00:00
stilez 4216c9e8f7
rmv spaces 2019-11-05 19:19:08 +00:00
stilez a8d670fc0d
Rest of sed -r 2019-11-05 19:01:32 +00:00
stilez cbacc779fc
Fix some sed -r, and clean up some variable references ("$1" -> "$varname") 2019-11-05 18:50:39 +00:00
stilez 896778cead
Grep fixes and minor improvements 2019-11-05 17:56:20 +00:00
stilez 04b0c62bf9
basic regex's to use \+
Maybe BRE aren't as basic as they sound. But I'm sure `man grep` didn't list the extra syntax of "preceded by backslash" :)  So let's use it
2019-11-04 19:05:44 +00:00
stilez 63a779baa8
remove unnecessary \ 2019-11-04 18:44:14 +00:00
stilez 2d1a776db7
Replace egrep -> basic regex grep
(( ... isn't it annoying that basic regex has * but not + ..... ))
2019-11-04 18:40:12 +00:00
stilez 343d7df57c
shellcheck directive 2019-10-30 22:11:16 +00:00
stilez a32b95544b
[[:space:]] -> " " 2019-10-30 17:06:03 +00:00
stilez 2422e0b481
grep -E and sed -E 2019-10-30 17:01:06 +00:00
stilez 3441bd0e7c
improve _err message and remove a dubious _debug message. 2019-10-30 10:22:04 +00:00
stilez 05ced9fbc4
edit a comment 2019-10-30 09:53:40 +00:00
stilez b7c3df455e
travis fix 2019-10-30 09:38:03 +00:00
stilez d7affad059
various small improves 2019-10-29 10:30:00 +00:00
stilez bc291141b1
fix filename 2019-10-27 16:58:22 +00:00