Results 1 to 4 of 4
  1. #1
    Newbie
    Join Date
    May 2020
    Posts
    1

    Question Script or API to update tags or tunnel rules without logging into admin console

    Hi there,

    I'm looking for a solution to easily change the tag assigned to a device remotely. The use case is, I have an Android TV device I would like to tag / untag to change VPN tunnels. The reason for this is some of the local streaming services don't work through the VPN, and some of the remote services are only available through VPN.

    I'd like to set up a link / button for my family members to use that will then complete the tag/untag event. The only option I have come up so far is to use the user notification script to update the user for the device. I could then create a button on my home automation dashboard that could run two versions of the script to update the user associated to the Android TV box.

    I'd prefer to use tags if possible, would be great if anyone has managed to creatively solve a similar issue.

    Thanks in advance.

  2. #2
    Lix
    Lix is offline
    Untanglit
    Join Date
    Sep 2012
    Posts
    16

    Default

    You can do this via the API, IP to username at least. I use PowerShell to do this at work. I can post an example, if you would like that?

  3. #3
    Newbie
    Join Date
    Jun 2020
    Posts
    2

    Default

    Here's the REST API to handle that apidocs.untangle.com

  4. #4
    Untangler jcoffin's Avatar
    Join Date
    Aug 2008
    Location
    Sunnyvale, CA
    Posts
    8,842

    Default

    Quote Originally Posted by kingfetty View Post
    Here's the REST API to handle that apidocs.untangle.com
    It is not REST on NGFW, but JSON RPC over HTTP.
    Attention: Support and help on the Untangle Forums is provided by
    volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2