<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automated configuration of GlobalProtect Gateway with XML API or CLI in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/automated-configuration-of-globalprotect-gateway-with-xml-api-or/m-p/520810#M3250</link>
    <description>&lt;P&gt;Jimmy,&lt;/P&gt;&lt;P&gt;thank you very much. This is the solution. But as you can see from my original post I was aware of the other path (to gateway-N) and I had said&lt;BR /&gt;"I have tried creating MY-GP-GATEWAY first and MY-GP-GATEWAY-N second, and vice versa, no luck".&lt;BR /&gt;So I was doing something wrong for sure.&lt;BR /&gt;Anyway, I copied your API calls with my parameters and it created the gateway the way I wanted it.&lt;BR /&gt;Again thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 15:41:40 GMT</pubDate>
    <dc:creator>RogerMccarrick</dc:creator>
    <dc:date>2022-11-09T15:41:40Z</dc:date>
    <item>
      <title>Automated configuration of GlobalProtect Gateway with XML API or CLI</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/automated-configuration-of-globalprotect-gateway-with-xml-api-or/m-p/520161#M3240</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement to configure GlobalProtect on-demand with code on PAs. I am stuck on Network &amp;gt; GlobalProtect &amp;gt; Gateways.&lt;BR /&gt;My code calls the XML API and creates certificates, imports public cert, imports SAML file, creates GP portal, add firewall rules etc&lt;BR /&gt;I am able to configure all that and GlobalProtect &amp;gt; Portals just fine, just not the Gateway.&lt;/P&gt;&lt;P&gt;The API path to create the GlobalProtect Gateway config is:&lt;/P&gt;&lt;P&gt;$apiURL = "https://" + $panAddress + "//api/?key=" + $pankey +&lt;BR /&gt;"&amp;amp;type=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/global-protect/global-protect-gateway/entry[@name='MY-GP-GATEWAY']&amp;amp;element&amp;lt;etc etc ...&amp;gt;&lt;/P&gt;&lt;P&gt;In the web GUI, when you add a new gateway in asks for an Interface. The API browser does NOT have an element for Interface. I thought that I could look at the CLI commands and convert them to API, but there is no choice for Interface there either. Here are the options.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;set global-protect global-protect-gateway MY-GP-GATEWAY ?&lt;/P&gt;&lt;P&gt;+ block-quarantined-devices&amp;nbsp;&amp;nbsp;&amp;nbsp; Block login for quarantined devices&lt;BR /&gt;+ certificate-profile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Profile for authenticating client certificates&lt;BR /&gt;+ log-fail&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log unsuccessful TLS handshakes&lt;BR /&gt;+ log-setting&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log-setting&lt;BR /&gt;+ log-success&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log successful TLS handshakes&lt;BR /&gt;+ remote-user-tunnel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GlobalProtect user tunnel&lt;BR /&gt;+ satellite-tunnel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GlobalProtect satellite tunnel&lt;BR /&gt;+ ssl-tls-service-profile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SSL TLS service profile&lt;BR /&gt;+ tunnel-mode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tunnel mode&lt;BR /&gt;&amp;gt; client-auth&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GlobalProtect portal client authentication&lt;BR /&gt;&amp;gt; hip-notification&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; host PC health evaluate&lt;BR /&gt;&amp;gt; local-address&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Local IP configuration&lt;BR /&gt;&amp;gt; remote-user-tunnel-configs&amp;nbsp;&amp;nbsp; GlobalProtect gateway remote user tunnel configurations&lt;BR /&gt;&amp;gt; roles&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; role based user management for GlobalProtect gateway users&lt;BR /&gt;&amp;gt; security-restrictions&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Security Hardening for GlobalProtect&lt;BR /&gt;&amp;nbsp; &amp;lt;Enter&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Finish input&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also I have another PA that has the whole configuration done manually. When I GET that config with the API, the output shows no element for Interface.&lt;/P&gt;&lt;P&gt;So I can run a SET api call which includes as much info as possible, and it does create the gateway. When I look at it in the GUI, the Interface and the Tunnel Interface are blank. If I fill them in manually, I can then commit.&lt;BR /&gt;This then causes a new gateway with a "-N" at the end to be created, you can't see it in the GUI, but it can be seen in the API browser at&lt;/P&gt;&lt;P&gt;/config/devices/entry[@name='localhost.localdomain']/&lt;STRONG&gt;network&lt;/STRONG&gt;/tunnel/global-protect-gateway/entry[@name='&lt;STRONG&gt;MY-GP-GATEWAY-N&lt;/STRONG&gt;'] --- what is that?&lt;/P&gt;&lt;P&gt;Then look at NETWORK &amp;gt; Interfaces &amp;gt; Tunnel .. and I see the GP feature on the tunnel interface with "MY-GP-GATEWAY-N" when I hover over it.&lt;BR /&gt;I have tried creating MY-GP-GATEWAY first and MY-GP-GATEWAY-N second, and vice versa, no luck.&lt;BR /&gt;What is the proper way to configure the GP Gateway with CLI or API without having to do anything in the web gui?&lt;/P&gt;&lt;P&gt;And just for reference, here is the API call I use to create the (partial) gateway config. I call it from powershell. Certs and Profiles are included as variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$apiURL = "https://" + $panAddress + "//api/?key=" + $pankey +&lt;BR /&gt;"&amp;amp;type=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/global-protect/global-protect-gateway/entry[@name='$gtwyProfile']&lt;BR /&gt;&amp;amp;element=&amp;lt;client-auth&amp;gt;&lt;BR /&gt;&amp;lt;entry name='$gtwyAuthProf'&amp;gt;&lt;BR /&gt;&amp;lt;os&amp;gt;Any&amp;lt;/os&amp;gt;&lt;BR /&gt;&amp;lt;authentication-profile&amp;gt;$authProfile&amp;lt;/authentication-profile&amp;gt;&lt;BR /&gt;&amp;lt;authentication-message&amp;gt;Enter login credentials&amp;lt;/authentication-message&amp;gt;&lt;BR /&gt;&amp;lt;user-credential-or-client-cert-required&amp;gt;yes&amp;lt;/user-credential-or-client-cert-required&amp;gt;&lt;BR /&gt;&amp;lt;username-label&amp;gt;Username&amp;lt;/username-label&amp;gt;&lt;BR /&gt;&amp;lt;password-label&amp;gt;Password&amp;lt;/password-label&amp;gt;&lt;BR /&gt;&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;lt;/client-auth&amp;gt;&lt;BR /&gt;&amp;lt;remote-user-tunnel-configs&amp;gt;&lt;BR /&gt;&amp;lt;entry name='$gtwyAuthConf'&amp;gt;&lt;BR /&gt;&amp;lt;split-tunneling&amp;gt;&amp;lt;include-domains&amp;gt;&amp;lt;list/&amp;gt;&amp;lt;/include-domains&amp;gt;&lt;BR /&gt;&amp;lt;exclude-domains&amp;gt;&amp;lt;list/&amp;gt;&amp;lt;/exclude-domains&amp;gt;&lt;BR /&gt;&amp;lt;access-route&amp;gt;&lt;BR /&gt;&amp;lt;member&amp;gt;10.6.0.0/16&amp;lt;/member&amp;gt;&lt;BR /&gt;&amp;lt;member&amp;gt;10.7.0.0/16&amp;lt;/member&amp;gt;&lt;BR /&gt;&amp;lt;/access-route&amp;gt;&lt;BR /&gt;&amp;lt;exclude-access-route/&amp;gt;&lt;BR /&gt;&amp;lt;include-applications/&amp;gt;&lt;BR /&gt;&amp;lt;exclude-applications/&amp;gt;&lt;BR /&gt;&amp;lt;/split-tunneling&amp;gt;&lt;BR /&gt;&amp;lt;authentication-override&amp;gt;&lt;BR /&gt;&amp;lt;cookie-encrypt-decrypt-cert&amp;gt;$samlCert&amp;lt;/cookie-encrypt-decrypt-cert&amp;gt;&lt;BR /&gt;&amp;lt;generate-cookie&amp;gt;yes&amp;lt;/generate-cookie&amp;gt;&lt;BR /&gt;&amp;lt;/authentication-override&amp;gt;&lt;BR /&gt;&amp;lt;ip-pool&amp;gt;&lt;BR /&gt;&amp;lt;member&amp;gt;10.81.92.192/27&amp;lt;/member&amp;gt;&lt;BR /&gt;&amp;lt;/ip-pool&amp;gt;&lt;BR /&gt;&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;lt;/remote-user-tunnel-configs&amp;gt;&lt;BR /&gt;&amp;lt;ssl-tls-service-profile&amp;gt;$sslprofile&amp;lt;/ssl-tls-service-profile&amp;gt;&lt;BR /&gt;&amp;lt;tunnel-mode&amp;gt;yes&amp;lt;/tunnel-mode&amp;gt;&amp;amp;target=$serial"&lt;BR /&gt;&lt;BR /&gt;Invoke-WebRequest -uri $apiURL&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 14:51:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/automated-configuration-of-globalprotect-gateway-with-xml-api-or/m-p/520161#M3240</guid>
      <dc:creator>RogerMccarrick</dc:creator>
      <dc:date>2022-11-03T14:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Automated configuration of GlobalProtect Gateway with XML API or CLI</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/automated-configuration-of-globalprotect-gateway-with-xml-api-or/m-p/520449#M3243</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/94191"&gt;@RogerMccarrick&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If I understand correctly, the element you are looking for to set the interface where the GP Gateway will be served/listening, is underneath "local-address"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;set global-protect global-protect-gateway test local-address interface ...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;global-protect-gateway&amp;gt;
   &amp;lt;entry name="test"&amp;gt;
   .
   .
   &amp;lt;local-address&amp;gt;
      &amp;lt;interface&amp;gt;ethernet1/1&amp;lt;/interface&amp;gt;
      &amp;lt;ip&amp;gt;
         &amp;lt;ipv4&amp;gt;192.168.1.1/24&amp;lt;/ipv4&amp;gt;
      &amp;lt;/local-address&amp;gt;
      .
      .&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this information hopefully you can amend/update you original XML API call and not go through any manual GUI work, just API?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps?&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 20:45:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/automated-configuration-of-globalprotect-gateway-with-xml-api-or/m-p/520449#M3243</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2022-11-06T20:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Automated configuration of GlobalProtect Gateway with XML API or CLI</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/automated-configuration-of-globalprotect-gateway-with-xml-api-or/m-p/520686#M3248</link>
      <description>&lt;P&gt;Thanks Jimmy. I had seen and tried these elements before, but I didn't mention it in my previous post.&lt;BR /&gt;Unfortunately it didn't work for me. I've tried to step through the GP Gateway (TEST-GP-GATEWAY) creation one step at a time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, the interface and IP:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;amp;element=&amp;lt;local-address&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;ip&amp;gt;&amp;lt;ipv4&amp;gt;untrust-ip&amp;lt;/ipv4&amp;gt;&amp;lt;/ip&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;interface&amp;gt;ethernet1/1&amp;lt;/interface&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;ip-address-family&amp;gt;ipv4&amp;lt;/ip-address-family&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;/local-address&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This succeeds, in the GUI, I see the interface and IP are set.&lt;BR /&gt;Of course the Authentication and Agent tabs have yet to be configured.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, authentication&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;amp;element=&amp;lt;client-auth&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;entry name='$gtwyAuthProf'&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;os&amp;gt;Any&amp;lt;/os&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;authentication-profile&amp;gt;$authProfile&amp;lt;/authentication-profile&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;authentication-message&amp;gt;Enter login credentials&amp;lt;/authentication-message&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;user-credential-or-client-cert-required&amp;gt;yes&amp;lt;/user-credential-or-client-cert-required&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;username-label&amp;gt;Username&amp;lt;/username-label&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;password-label&amp;gt;Password&amp;lt;/password-label&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;/entry&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;/client-auth&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;ssl-tls-service-profile&amp;gt;$sslprofile&amp;lt;/ssl-tls-service-profile&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This also succeeds, and I see the Authentication settings in the GUI.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Next is Agent, I want to check Tunnel Mode and select the tunnel interface 501 that I have already created and committed with code.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;amp;element=&amp;lt;tunnel-mode&amp;gt;yes&amp;lt;/tunnel-mode&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;remote-user-tunnel&amp;gt;tunnel.501&amp;lt;/remote-user-tunnel&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This fails with:&lt;BR /&gt;status="error"&lt;BR /&gt;code="12"&lt;BR /&gt;[CDATA[ TEST-GP-GATEWAY -&amp;gt; remote-user-tunnel 'tunnel.501' is not a valid reference&lt;BR /&gt;[CDATA[ TEST-GP-GATEWAY -&amp;gt; remote-user-tunnel is invalid]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Next, I tried to set tunnel mode, but not specify the tunnel interface yet&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;amp;element=&amp;lt;tunnel-mode&amp;gt;yes&amp;lt;/tunnel-mode&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This succeeds ... but in the GUI, when I click on the Gateway and open it, it shows the interface and IPv4 address as NOT selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I previously stated, I can select and set everything in the GUI, so I don't know why it says tunnel.501 is invalid.&lt;BR /&gt;I can get some of config done, including the interface and IP, but now the invalid Tunnel Interface has become the obstacle.&lt;/P&gt;&lt;P&gt;Also for GlobalProtect IPSec Crypto under Agent, &amp;lt;ipsec-crypto-profile&amp;gt;TEST-GPVPN-CRYPTO&amp;lt;/ipsec-crypto-profile&amp;gt; isnt working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a ticket open with support and they say they have to get me to talk to a Sales Engineer. So still working on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 18:37:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/automated-configuration-of-globalprotect-gateway-with-xml-api-or/m-p/520686#M3248</guid>
      <dc:creator>RogerMccarrick</dc:creator>
      <dc:date>2022-11-08T18:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Automated configuration of GlobalProtect Gateway with XML API or CLI</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/automated-configuration-of-globalprotect-gateway-with-xml-api-or/m-p/520773#M3249</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/94191"&gt;@RogerMccarrick&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Understood. Originally I was just trying to answer the &lt;FONT face="courier new,courier"&gt;interface&lt;/FONT&gt; query, but I took a broader look at the config elements for GP Gateway and here's what I observed when&amp;nbsp;I looked at the XML config for a successfully configured and working GP Gateway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The config for a Gateway is split across two Xpaths:&lt;/P&gt;
&lt;PRE&gt;/config/devices/entry[@name='localhost.localdomain']/network/tunnel/global-protect-gateway&lt;/PRE&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;PRE&gt;/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/global-protect/global-protect-gateway&lt;/PRE&gt;
&lt;P&gt;which may explain the challenges you are facing if you are (an assumption from your original post) only targeting the latter of these. A debug of the GUI shows two &lt;FONT face="courier new,courier"&gt;set&lt;/FONT&gt; calls, one to each Xpath.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Under the first Xpath it seems to look like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;global-protect-gateway&amp;gt;
    &amp;lt;entry name="gateway-N"&amp;gt;
        &amp;lt;client&amp;gt;
            &amp;lt;exclude-video-traffic&amp;gt;
                &amp;lt;applications /&amp;gt;
                &amp;lt;enabled&amp;gt;yes&amp;lt;/enabled&amp;gt;
            &amp;lt;/exclude-video-traffic&amp;gt;
            &amp;lt;dns-server&amp;gt;
                &amp;lt;primary&amp;gt;192.168.1.1&amp;lt;/primary&amp;gt;
                &amp;lt;secondary&amp;gt;8.8.8.8&amp;lt;/secondary&amp;gt;
            &amp;lt;/dns-server&amp;gt;
            &amp;lt;dns-suffix&amp;gt;
                &amp;lt;member&amp;gt;test.local&amp;lt;/member&amp;gt;
            &amp;lt;/dns-suffix&amp;gt;
            &amp;lt;dns-suffix-inherited&amp;gt;no&amp;lt;/dns-suffix-inherited&amp;gt;
        &amp;lt;/client&amp;gt;
        &amp;lt;ipsec&amp;gt;
            &amp;lt;third-party-client&amp;gt;
                &amp;lt;enable&amp;gt;no&amp;lt;/enable&amp;gt;
            &amp;lt;/third-party-client&amp;gt;
        &amp;lt;/ipsec&amp;gt;
        &amp;lt;local-address&amp;gt;
            &amp;lt;interface&amp;gt;ethernet1/3&amp;lt;/interface&amp;gt;
            &amp;lt;ip&amp;gt;
                &amp;lt;ipv4&amp;gt;192.168.190.254/24&amp;lt;/ipv4&amp;gt;
            &amp;lt;/ip&amp;gt;
        &amp;lt;/local-address&amp;gt;
        &amp;lt;ip-pool&amp;gt;
            &amp;lt;member&amp;gt;192.168.170.128-192.168.170.191&amp;lt;/member&amp;gt;
        &amp;lt;/ip-pool&amp;gt;
        &amp;lt;tunnel-interface&amp;gt;tunnel.1&amp;lt;/tunnel-interface&amp;gt;
    &amp;lt;/entry&amp;gt;
&amp;lt;/global-protect-gateway&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And under the second it looks like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;global-protect-gateway&amp;gt;
    &amp;lt;entry name="gateway"&amp;gt;
        &amp;lt;roles&amp;gt;
            &amp;lt;entry name="default"&amp;gt;
                &amp;lt;login-lifetime&amp;gt;
                    &amp;lt;days&amp;gt;30&amp;lt;/days&amp;gt;
                &amp;lt;/login-lifetime&amp;gt;
                &amp;lt;inactivity-logout&amp;gt;10&amp;lt;/inactivity-logout&amp;gt;
            &amp;lt;/entry&amp;gt;
        &amp;lt;/roles&amp;gt;
        &amp;lt;client-auth&amp;gt;
            &amp;lt;entry name="mfa"&amp;gt;
                &amp;lt;os&amp;gt;Any&amp;lt;/os&amp;gt;
                &amp;lt;authentication-profile&amp;gt;mfa-auth-profile&amp;lt;/authentication-profile&amp;gt;
                &amp;lt;authentication-message&amp;gt;Enter login credentials&amp;lt;/authentication-message&amp;gt;
                &amp;lt;user-credential-or-client-cert-required&amp;gt;yes&amp;lt;/user-credential-or-client-cert-required&amp;gt;
                &amp;lt;auto-retrieve-passcode&amp;gt;no&amp;lt;/auto-retrieve-passcode&amp;gt;
                &amp;lt;username-label&amp;gt;Username&amp;lt;/username-label&amp;gt;
                &amp;lt;password-label&amp;gt;Password&amp;lt;/password-label&amp;gt;
            &amp;lt;/entry&amp;gt;
            &amp;lt;entry name="Local"&amp;gt;
                &amp;lt;os&amp;gt;Any&amp;lt;/os&amp;gt;
                &amp;lt;authentication-profile&amp;gt;local-auth-profile&amp;lt;/authentication-profile&amp;gt;
                &amp;lt;authentication-message&amp;gt;Enter login credentials&amp;lt;/authentication-message&amp;gt;
                &amp;lt;user-credential-or-client-cert-required&amp;gt;yes&amp;lt;/user-credential-or-client-cert-required&amp;gt;
                &amp;lt;auto-retrieve-passcode&amp;gt;no&amp;lt;/auto-retrieve-passcode&amp;gt;
                &amp;lt;username-label&amp;gt;Username&amp;lt;/username-label&amp;gt;
                &amp;lt;password-label&amp;gt;Password&amp;lt;/password-label&amp;gt;
            &amp;lt;/entry&amp;gt;
        &amp;lt;/client-auth&amp;gt;
        &amp;lt;remote-user-tunnel-configs&amp;gt;
            &amp;lt;entry name="gp-client"&amp;gt;
                &amp;lt;authentication-override&amp;gt;
                    &amp;lt;accept-cookie&amp;gt;
                        &amp;lt;cookie-lifetime&amp;gt;
                            &amp;lt;lifetime-in-days&amp;gt;30&amp;lt;/lifetime-in-days&amp;gt;
                        &amp;lt;/cookie-lifetime&amp;gt;
                    &amp;lt;/accept-cookie&amp;gt;
                    &amp;lt;cookie-encrypt-decrypt-cert&amp;gt;pan-os-sub-ca&amp;lt;/cookie-encrypt-decrypt-cert&amp;gt;
                    &amp;lt;generate-cookie&amp;gt;no&amp;lt;/generate-cookie&amp;gt;
                &amp;lt;/authentication-override&amp;gt;
                &amp;lt;split-tunneling&amp;gt;
                    &amp;lt;access-route&amp;gt;
                        &amp;lt;member&amp;gt;0.0.0.0/0&amp;lt;/member&amp;gt;
                    &amp;lt;/access-route&amp;gt;
                &amp;lt;/split-tunneling&amp;gt;
                &amp;lt;source-user&amp;gt;
                    &amp;lt;member&amp;gt;any&amp;lt;/member&amp;gt;
                &amp;lt;/source-user&amp;gt;
                &amp;lt;dns-server&amp;gt;
                    &amp;lt;member&amp;gt;192.168.1.254&amp;lt;/member&amp;gt;
                &amp;lt;/dns-server&amp;gt;
                &amp;lt;dns-suffix&amp;gt;
                    &amp;lt;member&amp;gt;test.local&amp;lt;/member&amp;gt;
                &amp;lt;/dns-suffix&amp;gt;
                &amp;lt;os&amp;gt;
                    &amp;lt;member&amp;gt;any&amp;lt;/member&amp;gt;
                &amp;lt;/os&amp;gt;
                &amp;lt;retrieve-framed-ip-address&amp;gt;no&amp;lt;/retrieve-framed-ip-address&amp;gt;
                &amp;lt;no-direct-access-to-local-network&amp;gt;no&amp;lt;/no-direct-access-to-local-network&amp;gt;
            &amp;lt;/entry&amp;gt;
        &amp;lt;/remote-user-tunnel-configs&amp;gt;
        &amp;lt;ssl-tls-service-profile&amp;gt;cert-profile&amp;lt;/ssl-tls-service-profile&amp;gt;
        &amp;lt;tunnel-mode&amp;gt;yes&amp;lt;/tunnel-mode&amp;gt;
        &amp;lt;remote-user-tunnel&amp;gt;tunnel.1&amp;lt;/remote-user-tunnel&amp;gt;
        &amp;lt;log-success&amp;gt;yes&amp;lt;/log-success&amp;gt;
        &amp;lt;log-setting&amp;gt;default&amp;lt;/log-setting&amp;gt;
    &amp;lt;/entry&amp;gt;
&amp;lt;/global-protect-gateway&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created two XML API calls to replicate all this, they looked like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://{{host}}/api/?key={{key}}&amp;amp;type=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/network/tunnel/global-protect-gateway/entry[@name='new-gw-N']&amp;amp;element=&amp;lt;local-address&amp;gt;&amp;lt;ip&amp;gt;&amp;lt;ipv4&amp;gt;192.168.1.1/24&amp;lt;/ipv4&amp;gt;&amp;lt;/ip&amp;gt;&amp;lt;interface&amp;gt;ethernet1/4&amp;lt;/interface&amp;gt;&amp;lt;ip-address-family&amp;gt;ipv4&amp;lt;/ip-address-family&amp;gt;&amp;lt;/local-address&amp;gt;&amp;lt;client&amp;gt;&amp;lt;exclude-video-traffic&amp;gt;&amp;lt;applications/&amp;gt;&amp;lt;enabled&amp;gt;no&amp;lt;/enabled&amp;gt;&amp;lt;/exclude-video-traffic&amp;gt;&amp;lt;/client&amp;gt;&amp;lt;ipsec&amp;gt;&amp;lt;third-party-client&amp;gt;&amp;lt;enable&amp;gt;no&amp;lt;/enable&amp;gt;&amp;lt;/third-party-client&amp;gt;&amp;lt;/ipsec&amp;gt;&amp;lt;ip-pool/&amp;gt;&amp;lt;tunnel-interface&amp;gt;tunnel.2&amp;lt;/tunnel-interface&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;and this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://{{host}}/api/?key={{key}}&amp;amp;type=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/global-protect/global-protect-gateway/entry[@name='new-gw']&amp;amp;element=&amp;lt;roles&amp;gt;&amp;lt;entry name="default"&amp;gt;&amp;lt;login-lifetime&amp;gt;&amp;lt;days&amp;gt;30&amp;lt;/days&amp;gt;&amp;lt;/login-lifetime&amp;gt;&amp;lt;inactivity-logout&amp;gt;180&amp;lt;/inactivity-logout&amp;gt;&amp;lt;/entry&amp;gt;&amp;lt;/roles&amp;gt;&amp;lt;client-auth&amp;gt;&amp;lt;entry name="local"&amp;gt;&amp;lt;os&amp;gt;Any&amp;lt;/os&amp;gt;&amp;lt;authentication-profile&amp;gt;local-auth-profile&amp;lt;/authentication-profile&amp;gt;&amp;lt;authentication-message&amp;gt;Enter login credentials&amp;lt;/authentication-message&amp;gt;&amp;lt;user-credential-or-client-cert-required&amp;gt;no&amp;lt;/user-credential-or-client-cert-required&amp;gt;&amp;lt;auto-retrieve-passcode&amp;gt;no&amp;lt;/auto-retrieve-passcode&amp;gt;&amp;lt;username-label&amp;gt;Username&amp;lt;/username-label&amp;gt;&amp;lt;password-label&amp;gt;Password&amp;lt;/password-label&amp;gt;&amp;lt;/entry&amp;gt;&amp;lt;/client-auth&amp;gt;&amp;lt;remote-user-tunnel-configs&amp;gt;&amp;lt;entry name="new-gw"&amp;gt;&amp;lt;split-tunneling&amp;gt;&amp;lt;include-domains&amp;gt;&amp;lt;list/&amp;gt;&amp;lt;/include-domains&amp;gt;&amp;lt;exclude-domains&amp;gt;&amp;lt;list/&amp;gt;&amp;lt;/exclude-domains&amp;gt;&amp;lt;access-route/&amp;gt;&amp;lt;exclude-access-route/&amp;gt;&amp;lt;include-applications/&amp;gt;&amp;lt;exclude-applications/&amp;gt;&amp;lt;/split-tunneling&amp;gt;&amp;lt;authentication-override&amp;gt;&amp;lt;generate-cookie&amp;gt;no&amp;lt;/generate-cookie&amp;gt;&amp;lt;/authentication-override&amp;gt;&amp;lt;source-address&amp;gt;&amp;lt;ip-address/&amp;gt;&amp;lt;region/&amp;gt;&amp;lt;/source-address&amp;gt;&amp;lt;source-user&amp;gt;&amp;lt;member&amp;gt;any&amp;lt;/member&amp;gt;&amp;lt;/source-user&amp;gt;&amp;lt;authentication-server-ip-pool/&amp;gt;&amp;lt;ip-pool&amp;gt;&amp;lt;member&amp;gt;10.10.10.10-10.10.10.20&amp;lt;/member&amp;gt;&amp;lt;/ip-pool&amp;gt;&amp;lt;os&amp;gt;&amp;lt;member&amp;gt;any&amp;lt;/member&amp;gt;&amp;lt;/os&amp;gt;&amp;lt;retrieve-framed-ip-address&amp;gt;no&amp;lt;/retrieve-framed-ip-address&amp;gt;&amp;lt;no-direct-access-to-local-network&amp;gt;no&amp;lt;/no-direct-access-to-local-network&amp;gt;&amp;lt;/entry&amp;gt;&amp;lt;/remote-user-tunnel-configs&amp;gt;&amp;lt;ssl-tls-service-profile&amp;gt;cert-profile&amp;lt;/ssl-tls-service-profile&amp;gt;&amp;lt;log-success&amp;gt;yes&amp;lt;/log-success&amp;gt;&amp;lt;log-setting&amp;gt;default&amp;lt;/log-setting&amp;gt;&amp;lt;tunnel-mode&amp;gt;yes&amp;lt;/tunnel-mode&amp;gt;&amp;lt;remote-user-tunnel&amp;gt;tunnel.2&amp;lt;/remote-user-tunnel&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;and that seemed to create a valid GP Gateway, including the items you have called out as an issue, like interface, tunnel mode, tunnel interface, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps to give you more insight and a path forward.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 11:34:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/automated-configuration-of-globalprotect-gateway-with-xml-api-or/m-p/520773#M3249</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2022-11-09T11:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Automated configuration of GlobalProtect Gateway with XML API or CLI</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/automated-configuration-of-globalprotect-gateway-with-xml-api-or/m-p/520810#M3250</link>
      <description>&lt;P&gt;Jimmy,&lt;/P&gt;&lt;P&gt;thank you very much. This is the solution. But as you can see from my original post I was aware of the other path (to gateway-N) and I had said&lt;BR /&gt;"I have tried creating MY-GP-GATEWAY first and MY-GP-GATEWAY-N second, and vice versa, no luck".&lt;BR /&gt;So I was doing something wrong for sure.&lt;BR /&gt;Anyway, I copied your API calls with my parameters and it created the gateway the way I wanted it.&lt;BR /&gt;Again thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 15:41:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/automated-configuration-of-globalprotect-gateway-with-xml-api-or/m-p/520810#M3250</guid>
      <dc:creator>RogerMccarrick</dc:creator>
      <dc:date>2022-11-09T15:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Automated configuration of GlobalProtect Gateway with XML API or CLI</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/automated-configuration-of-globalprotect-gateway-with-xml-api-or/m-p/520835#M3251</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/94191"&gt;@RogerMccarrick&lt;/a&gt;, apologies for mis-reading your post, but very glad that it is working now! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 18:13:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/automated-configuration-of-globalprotect-gateway-with-xml-api-or/m-p/520835#M3251</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2022-11-09T18:13:26Z</dc:date>
    </item>
  </channel>
</rss>

