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.
  • Hi, Tommy, and welcome to the UTM Community!

    I could be wrong, but I don't think the REST API is supported outside of virtual UTMs in the Amazon Cloud.

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Hi Bob,

    thats not correct. REST API is supported on any ASG, see here:

  • Hi Tommy,

    I think Azron has an answer for you here. I would recommend you to loop support before tweaking the possibilities from the backend.

    Thanks

    Sachin Gurung
    Team Lead | Sophos Technical Support
    Knowledge Base  |  @SophosSupport  |  Video tutorials
    Remember to like a post.  If a post (on a question thread) solves your question use the 'This helped me' link.

  • 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

     

     

     

  • 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.