Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-5918

Unable to add just one link using map.update

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: High High
    • None
    • None
    • API (A)
    • None

      I am using Zabbix API and method map.update to add a link between 2 elements, its resetting / removing the other, already existing links between other elements is same map.

      Sharing a sample payload is like. I am using python's requests module.

      payload = {
       "jsonrpc": "2.0",
       "method": "map.update",
       "auth": token,
       "id": 1,
       "params": {
       "sysmapid": "46",
       "links": [{
       "selementid1": "122",
       "selementid2": "119",
       "color": "ffff00",
       "label": "port:2049",
       "permission": 2
       }, {
       "selementid1": "118",
       "selementid2": "121",
       "color": "ffff00",
       "label": "port:9092",
       "permission": 2
       }],
       },
      }

            zabbix.support Zabbix Support Team
            dhimandas Dhiman Das
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: