cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
974
Views
5
Helpful
5
Replies

ISE v3.1 API - Update network device attributes with PATCH

Sven Hruza
Level 4
Level 4

Hello,

we do our first steps with the ISE API and now I'm searching how to update only some or one attribute of an existing network device.
The documentation in DEVNET tells, that there is a function PATCH to do this.

networkdevice - Cisco Identity Services Engine API Reference Guide, v1 - Document - Cisco DevNet

But I get only a 405 method not found in postman, if I try to add a second IP address in the IP list.
This is my JSON file, first IP exists already, second one should be added on top:

 

{
    "NetworkDevice": {
        "name": "test-device-01",
        "NetworkDeviceIPList": [
            {
                "ipaddress": "10.208.92.11",
                "mask": 32
            },
            {
                "ipaddress": "10.255.4.217",
                "mask": 32
            }
        ]
    }
}

 

Thanks a lot for your help!

1 Accepted Solution

Accepted Solutions

Greg Gibbs
Cisco Employee
Cisco Employee

The PATCH method is added as a feature enhancement in ISE 3.2. I suspect the DevNet documentation has been updated in advance of the upcoming release for 3.2 and in the Revision History table at the top of that page it lists 'Added Patch and PatchByName operations' for ISE Version 3.2.

View solution in original post

5 Replies 5

Greg Gibbs
Cisco Employee
Cisco Employee

The PATCH method is added as a feature enhancement in ISE 3.2. I suspect the DevNet documentation has been updated in advance of the upcoming release for 3.2 and in the Revision History table at the top of that page it lists 'Added Patch and PatchByName operations' for ISE Version 3.2.

Thanks for that information. So I will wait for this version 3.2.
Is there a planned date for the release?

It was released earlier today on software.cisco.com

rajgar
Level 1
Level 1

possible to share a working example of it @Greg Gibbs . we have 3.2 but unable to use it successfully.

Haven't found a way to update it with a single.
It works only if you put the current already there list as well:

My json body:
req_body_json = """ {
"NetworkDevice": {
"NetworkDeviceIPList" : [ {
"ipaddress" : "5.5.5.5",
"mask" : "32"
}, {
"ipaddress" : "4.4.4.4",
"mask" : "32"
}, {
"ipaddress" : "3.3.3.3",
"mask" : "32"
} ]
}} """

If you want to add 1, you have to add a fourth