09-05-2022 07:50 AM - edited 09-05-2022 08:06 AM
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!
Solved! Go to Solution.
09-05-2022 03:51 PM
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.
09-05-2022 03:51 PM
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.
09-06-2022 12:25 AM
Thanks for that information. So I will wait for this version 3.2.
Is there a planned date for the release?
09-06-2022 04:30 PM
It was released earlier today on software.cisco.com
06-29-2023 07:19 AM
possible to share a working example of it @Greg Gibbs . we have 3.2 but unable to use it successfully.
11-24-2023 02:44 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide