This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Shutdown using REST API?

I did not find any Node id to shutdown the UTM via REST API. As my UPS is not supported I want to use REST API to shutdown the UTM in case of power fail.



This thread was automatically locked due to age.
Parents
  • Hi Tommy and welcome,

     

    the RESTful API is avilable on all flavors of the UTM; also outside of AWS.

     

    Regarding your question: the API is meant to be used for configuration purposes only at the moment. That's the reason why there is no shutdown command available. Do you see that use case you've described as a common scenario?

     

    Best,

    Nicolas
    Product Owner IaaS

     

     

     

Reply
  • Hi Tommy and welcome,

     

    the RESTful API is avilable on all flavors of the UTM; also outside of AWS.

     

    Regarding your question: the API is meant to be used for configuration purposes only at the moment. That's the reason why there is no shutdown command available. Do you see that use case you've described as a common scenario?

     

    Best,

    Nicolas
    Product Owner IaaS

     

     

     

Children
  • i use ssh to shutdown my home UTM from script.

    (plink is a tool similar to putty...)

    c:\.....\plink.exe -v -ssh loginuser@astaro.mydomain.local -pw mypassword -m "c:\program files\UNIX_commands.txt"

    content of c:\program files\UNIX_commands.txt:

    sudo /sbin/shutdown -h now


    to make this working, shutdown must make be usable without sudo password. 


    Dirk

    Systema Gesellschaft für angewandte Datentechnik mbH  // Sophos Platinum Partner
    Sophos Solution Partner since 2003
    If a post solves your question, click the 'Verify Answer' link at this post.

  • Thanks, that's my workaround totay as well.