Prerequisites
- An HTTPS path from your CloudThinker deployment to the management interface of the firewall or Panorama. Palo Alto advises against opening the management interface to the internet, so keep this path inside your management network. If the management interface lists Permitted IP Addresses (on a firewall, Device → Setup → Interfaces → Management), add the address CloudThinker connects from.
- A firewall or Panorama administrator who can create admin roles and administrator accounts, such as a superuser.
- The Admin role in your CloudThinker workspace, which can add and edit connections. See Roles.
Setup
Create an admin role
cloudthinker and set Role to Device. On Panorama, go to Panorama → Admin Roles, click Add, and set Role to Panorama.On the XML API tab, enable Operational Requests, Log, and Configuration, and disable every other feature. CloudThinker uses only the XML API, so set every feature on the Web UI and REST API tabs to Disable, and Command Line to None. Click OK.Create the administrator
- Name:
cloudthinker - Authentication Profile: None, then enter a Password
- Administrator Type: Role Based on a firewall, or Custom Panorama Admin on Panorama
- Profile: the
cloudthinkerrole
Generate the API key
<key> in the response. Copy only that value. The -k flag accepts PAN-OS’s default self-signed certificate.Add the connection in CloudThinker
PAN-OS <version> firewall <hostname> (<model>) connected (read-only). or Panorama <version> connected (read-only).Connection details
Required permissions
Each XML API feature on the admin role unlocks part of what agents can read.Agent capabilities
vsys1 unless you name another one. Through Panorama, agents don’t read rule hit counts: connect the firewall itself for those.
Verify the connection
Example prompts
Troubleshooting
The first six accordion titles are the messages CloudThinker shows when the connection test fails.PAN-OS rejected the API key. Generate a new key and reconnect.
PAN-OS rejected the API key. Generate a new key and reconnect.
<key>. PAN-OS also invalidates a key when the administrator’s password changes, the administrator is deleted, the API Key Lifetime passes, or someone selects Expire all API Keys. PAN-OS uses the same error when the role lacks rights, so also check that Operational Requests is enabled. Then generate a new key and replace it in the connection.PAN-OS refused the system info read. Give the admin role XML API Operational Requests rights.
PAN-OS refused the system info read. Give the admin role XML API Operational Requests rights.
The management certificate is not trusted. Choose Skip SSL verification for a self-signed certificate.
The management certificate is not trusted. Choose Skip SSL verification for a self-signed certificate.
Could not reach the management address over HTTPS.
Could not reach the management address over HTTPS.
That address answered, but not as the PAN-OS XML API. Use the management address root, with no path.
That address answered, but not as the PAN-OS XML API. Use the management address root, with no path.
PAN-OS answered HTTP <code>. Try again in a minute.
PAN-OS answered HTTP <code>. Try again in a minute.
3xx code means the address redirected. CloudThinker doesn’t follow redirects, so it never sends the key elsewhere. Enter the exact management address. A 429 or 5xx code means the management server is busy: wait and connect again.Connected, but rule or log questions fail with "PAN-OS refused the request"
Connected, but rule or log questions fail with "PAN-OS refused the request"
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Keep the management interface private. Palo Alto advises against opening it to the internet. Allow only the address CloudThinker connects from in Permitted IP Addresses.
- Set an API key lifetime. By default, PAN-OS keys never expire. Set API Key Lifetime (min) in Device → Setup → Management → Authentication Settings. When the key expires, generate a new one and replace it in the connection.