Description

This article explains how to modify an address group if it is failing with the below error:


{'title': 'CONCURRENT_EDIT', 'message': 'The Address has changed since you began editing</BR> Address changed by: <i>tylitalo</i> on <i>1731563512332</i> <br/> <br/> Do you want to save the Address with different name?', 'lastEditTime': '1731563512332', 'user': 'USERNAME'}

Symptoms

This is due to the change in edit version of the address group

Solution

To fix the issue, please collect the address group using GET query to identify the current "edit version"

 

For example:

 

{

  "address": {

    "name": "AddressGroup_Test",

    "edit-version": 5,

    "members": {

      "member": [

        {

          "name": "Add1",

          "address-type": "RANGE",

          "host-name": "",

          "description": "Added by automation",

          "ip-address": "Test1",

          "id": 29275632,

          "domain-id": 12288003,

          "uri": "/api/juniper/sd/address-management/addresses/29282304/members/29275632",

          "href": "/api/juniper/sd/address-management/addresses/29275632"

        },

        {

          "name": "Add2",

          "address-type": "IPADDRESS",

          "host-name": "",

          "description": "Added by automation",

          "ip-address": "Test2",

          "id": 29276078,

          "domain-id": 12288003,

          "uri": "/api/juniper/sd/address-management/addresses/29282304/members/29276078",

          "href": "/api/juniper/sd/address-management/addresses/29276078"

        },

        {

          "name": "Add3",

          "address-type": "IPADDRESS",

          "host-name": "",

          "description": "Added by automation",

          "ip-address": "Test3",

          "id": 29276079,

          "domain-id": 12288003,

          "uri": "/api/juniper/sd/address-management/addresses/29282304/members/29276079",

          "href": "/api/juniper/sd/address-management/addresses/29276079"

}

           ],

      "uri": "/api/juniper/sd/address-management/addresses/29282304/members"

    },

    "address-type": "GROUP",

    "ip-address": "",

    "description": "Created by automation",

    "host-name": "",

    "address-version": "IPV4",

    "definition-type": "CUSTOM",

    "id": 29282304,

    "uri": "/api/juniper/sd/address-management/addresses/29282304",

    "domain-id": 12288003,

    "domain-name": "Global/DOMAIN1"

  }

}

 

Here the edit version is 5. We need to use the same edit version in the body using the PUT query to work.

 

Please Note: The edit version will be changing on each modification

Modification History

2024-12-05 : Article Created