• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Question call shell script from api rest

toto57

New Pleskian
Hello
There is a way to run shell script with root privileges using the api rest (and not xml)
i thought i need write custom extension and implent callSbin method to do this but the document of creation of new api is poor and other subjectif speaks a lot how consume an api. If someone can give me a tip or help to achieve this it will be very nice.

thank
 
I need just a call to rest and point with parameter and pass parameters thought the command line shell to do task.

I must write an extension without gui to do this ?
 
Back
Top