The current code requires an API key without expiry. The code should utilise a username/password combination and retrieve its own API key from the PANOS API and be able to deal with key expiry.
With an API key expiry set, you will run into the following log message:
time="2024-11-09T15:40:26Z" level=error msg="response from pan xml api https://firewall.dom.ain/api: <response status = 'error' code = '403'><result><msg>API Error: Credential Expired: ..... has expired.</msg></result></response>" pkg=panapi
The current code requires an API key without expiry. The code should utilise a username/password combination and retrieve its own API key from the PANOS API and be able to deal with key expiry.
With an API key expiry set, you will run into the following log message: