Skip to main content

Get Started with Prisma Access Insights 3.0 API

Palo Alto Networks® Prisma Access Insights APIs allows you to continuously monitor the health and performance of your Prisma Access environment using Insights in the Prisma Access app.

This document provides information about getting started with Prisma Access Insights 3.0 APIs. The 3.0 APIs are intended for cloud-managed Prisma Access customers, where the tenants have been onboarded by Palo Alto Networks using a Tenant Service Group (TSG) identifier. To see whether your tenant uses TSG IDs, go to the Prisma Access Hub, click on the Prisma Access Insights application name, and look in the Manage Apps section.

API Request Overview

The Prisma Access Insights APIs allow you to retrieve selected information from the Prisma Access Insights platform. All Prisma Access 3.0 API requests must use HTTPS, and they must use HTTP/1.1. They also must use an access token. To obtain an access token, you use the same process as the other SASE APIs. That is, you must have a TSG and a service account that has role access to your Prisma Access Insights instance. To understand this process, see Prisma SASE API Get Started.

Base URLs

While you use Prisma SASE to obtain an access token for use with your Prisma Access 3.0 APIs, you do not use the same FQDN as do the other Prisma SASE APIs. Also, this API requires the x-panw-region header. See About x-panw-region for usage information.

All requests go to the same base URL:

https://api.sase.paloaltonetworks.com

Full API URL

The full URL for an API request includes the base URL, plus the API URI described in the API reference documentation. For example, a customer can query for application list using:

https://api.sase.paloaltonetworks.com/insights/v3.0/resource/query/applications/application_list

Sample: API Request

Note The Bearer keyword must be present before the auth token itself.

Note To get data on a sub-tenant level, add a Prisma-Tenant header.<tsg_id><sub_tenant_id>

#!/bin/bash
echo " "

# Replace
# <JWT_TOKEN_BASE64_ENCODED> - JWT Token from the previous script
#
curl -L -X POST 'https://api.sase.paloaltonetworks.com/insights/v3.0/resource/query/applications/application_list' \
-H 'Content-Type: application/json' \
-H 'X-PANW-Region: de' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"filter": {
"rules": [ {
"property": "event_time",
"operator": "last_n_hours",
"values": [
3
] } ] } }'