Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    response format for SetGateway MIM API endpoint

    Scheduled Pinned Locked Moved Multi-Instance Management
    4 Posts 2 Posters 178 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • luckman212L Offline
      luckman212 LAYER 8
      last edited by luckman212

      Hey guys
      I was able to figure out how to update the monitor IP of a gateway using PUT directed at the /system/gateways/{id} endpoint. It works!

      The response I get is shaped like this

      {
        "msg": "Gateway updated",
        "alrt": false,
        "sb": false,
        "alrtoln": false,
        "alrtclr": "",
        "auth": false,
        "status": "",
        "result": ""
      }
      

      My question is: how do we interpret these keys/values?

      I assume Gateway updated indicates success. But a boolean is more typical for an API "success" response.

      Do any of those bools (sb, alrt, alrtoln etc) mean the op was successful ?

      luckman212L 1 Reply Last reply Reply Quote 0
      • luckman212L Offline
        luckman212 LAYER 8 @luckman212
        last edited by

        I peeked in at pfsense_result.py on the pfsense-api GitHub repo, which seems to be where the result class is defined. But, it didn't reveal anything further.

        1 Reply Last reply Reply Quote 0
        • M Offline
          marcosm Netgate
          last edited by marcosm

          They're mainly there for some GUI compatibility; it may get updated in the future. E.g. the alrt attributes are meant to be alert outline and color. Go off of what msg says.

          luckman212L 1 Reply Last reply Reply Quote 0
          • luckman212L Offline
            luckman212 LAYER 8 @marcosm
            last edited by

            Thanks. If the API is still being worked on, it would be nicer to have a strict success: true | false bool for automation vs parsing a text field.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.