Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

XML API - Need to replace services for a security rule via XML api - currently api call is appending new port

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

XML API - Need to replace services for a security rule via XML api - currently api call is appending new port

L0 Member

Hi - I create a service (tcp-443) and then create a security rule that uses this service as the service member.

 

This works.

 

Then, if I call the same API call with the same xpath and provide a different service, say tcp-449, the resulting security rule has *both* tcp-443 and tcp-449 in the Service column:

 

First call is <service>["tcp-443"]</service>

 

Second call is <service>["tcp-449"]</service> 

 

xpath: `/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='${ deviceGroup }']/${ rulebase }/security/rules/entry[@name='${ entryName }']`

I would like the second call to replace "tcp-443" with "tcp-449" - what it is doing is appending "tcp-449" to the services. Can I do that without deleting the security rule and re-adding it?

0 REPLIES 0
  • 1558 Views
  • 0 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!