GlobalProtect Gateway Exclude Access Route and Domains

Reply
Highlighted
L1 Bithead

GlobalProtect Gateway Exclude Access Route and Domains

We need to dynamically update the GP gateway exclude access routes and exclude domains.  Trying to find the XPATH for the list members.  Below is what I have but I can't get to the actual items in the lists.

 

/config/devices/entry[@name='localhost.localdomain']/template/entry[@name='TEMPLATE']/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/global-protect/global-protect-gateway/entry[@name='GATEWAY']/remote-user-tunnel-configs/entry[@name='AGENT']/split-tunneling/exclude-access-route

 

I need to add members to this XPATH.


Accepted Solutions
Highlighted
L1 Bithead

Re: GlobalProtect Gateway Exclude Access Route and Domains

Here is the actual URL for updating the exclude access list.

 

/api/?type=config&action=set&xpath=/config/devices/entry[@name=\'localhost.localdomain\']/template/entry[@name=\'TEMPLATENAME\']/config/devices/entry[@name=\'localhost.localdomain\']/vsys/entry[@name=\'vsys1\']/global-protect/global-protect-gateway/entry[@name=\'GATEWAYNAME\']/remote-user-tunnel-configs/entry[@name=\'AGENTCONFIGNAME\']/split-tunneling/exclude-access-route&element=<member>11.11.16.0/24</member>'

View solution in original post


All Replies
Highlighted
L4 Transporter

Re: GlobalProtect Gateway Exclude Access Route and Domains

From what I can see, your xpath is good.  This location is a member, so if you're just wanting to add stuff to this location, then do a set with this as the element:

 

 

<exclude-access-route>
    <member>thing1</member>
    <member>thing2</member>
</exclude-access-route>

 

 

For set operations, you need to stop a xpath part above, so end the xpath location at "split-tunneling". 

L1 Bithead

Re: GlobalProtect Gateway Exclude Access Route and Domains

What would the format be for the URL for use with urllib?

Highlighted
L1 Bithead

Re: GlobalProtect Gateway Exclude Access Route and Domains

Here is the actual URL for updating the exclude access list.

 

/api/?type=config&action=set&xpath=/config/devices/entry[@name=\'localhost.localdomain\']/template/entry[@name=\'TEMPLATENAME\']/config/devices/entry[@name=\'localhost.localdomain\']/vsys/entry[@name=\'vsys1\']/global-protect/global-protect-gateway/entry[@name=\'GATEWAYNAME\']/remote-user-tunnel-configs/entry[@name=\'AGENTCONFIGNAME\']/split-tunneling/exclude-access-route&element=<member>11.11.16.0/24</member>'

View solution in original post

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 Live Community as a whole!

The Live Community thanks you for your participation!