Looking for xml api to add a new patch number to hip-objects

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Looking for xml api to add a new patch number to hip-objects

L2 Linker

Hi all, am having trouble to find the right element value to add in a new patch number under hip objects, the goal is to add '5678' as a new patch number under the following:

Screenshot 2019-09-16 at 3.17.51 PM.png

below is what i tried without any success with an error msg of "malformed request":

https://fw_ip/api/?key=api_key&type=config&action=set&xpath=/config/shared/profiles/hip-objects&element=<entry name=“patch-mgt”><patch-management><criteria><missing-patches><patches><member>5678</member></patches></missing-patches></criteria></patch-management></entry>

 

the following is the related xml config:

Screenshot 2019-09-16 at 3.21.06 PM.png

 

can anyone advise what webt wrong? thanks!

 

1 REPLY 1

L2 Linker

Got it resolved, the xpath is incorrect. The correct one should be

/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/profiles/hip-objects/entry[@name='patch-mgt']

  • 2906 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!