Manage GIT through REST API
It would be great to be able to manage GIT through the REST API just as it can be done through XML API.
For example, I would like to be able to change branches of a customer through an API call. So if customer A is on branch Master, I can change it to Development. Now I have to do this manually, which is too work-intensive.
As you may know you can use REST API to call CLI utilities https://support.plesk.com/hc/en-us/articles/115004331094-How-to-manage-Plesk-via-REST-API-
So, to be able to manage GIT just call CLI utility with necessary parameters for your purpose.
—
IG
-
Raja commented
CLI only offers following and I don't see GIT in it.
admin_alias.php
admin.php
anonftp.php
apache.php
aps.php
autoresponder.php
blupgrade.php
branding_theme.php
certificate.php
CLICustomButtonManipulator.php
client.php
client_pref.php
client_template.php
CLIMailManipulator.php
CliReport.php
CliUtilityRunner.php
cloning.php
crontab_shell.php
cu_plesk_get_menu.php
custombutton.php
custom_plan_items.php
database.php
database-registrar.php
database-server.php
dns.php
domadmin.php
domain_addon_service_plan.php
domain.php
domain_pref.php
domain_restriction.php
domain_template.php
domalias.php
dsn.php
event_handler.php
extension.php
ftpsubaccount.php
grey_listing.php
hotlink_protection.php
http2_pref.php
init_conf.php
interface_template.php
ip_ban.php
ipmanage.php
ip_pool.php
keyinfo.php
license.php
locales.php
maillist.php
mail.php
mailserver.php
migrate.php
notification.php
objectInfo.php
optimization_settings.php
packages.php
passwords.php
php_handler.php
php_settings.php
poweruser.php
pre10-backup-convert.php
product_info.php
protdir.php
repair.php
report.php
reseller.php
reseller_pref.php
reseller_template.php
role.php
secret_key.php
server_dns.php
server_filesharing.php
server_pref.php
service_node.php
service.php
settings.php
shared_ssl.php
site.php
skeleton.php
spamassassin.php
subdomain.php
subscription.php
sync_smb_db.php
traffic.php
turboaddr.php
user.php
virtdir.php
vps_optimized.php
vzcp_auth.php
webstat.php
webuser.php -
Raja commented
I am the one who asked the original question.
Thank you for replying.After reading your link.
To do it through the CLI functionality seems to complicated and error prone with all the escaping going on.
Also what if I have a lot of users. How would I go to domain one git checkout and then go to next domain, etc.
I am prepared to try it through the CLI, but I would appreciate more information or examples.
Thank you