Palo Alto Networks Data Resource API
The DataResource API from Palo Alto Networks — 2 operation(s) for dataresource.
The DataResource API from Palo Alto Networks — 2 operation(s) for dataresource.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/palo-alto-networks-dataresource-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
openapi: 3.2.0
info:
contact: {}
description: 'Manages standard data resources.
'
title: Data Resource API
version: '2.0'
servers:
- url: https://pa-us.api.prismaaccess.com
tags:
- name: DataResource
paths:
/api/sase/v2.0/resource/query/{resource_name}:
post:
description: 'Retrieve general information from your tenant.
'
operationId: post-api-sase-v2.0-resource-query-resource_name
parameters:
- description: "Name of the resource that you want to query. The supported\nresources are:\n\n * site_current_status\n\n Provides connection status information.\n\n * alerts\n\n Provides information on alerts raised by your tenant.\n"
in: path
name: resource_name
required: true
schema:
type: string
- description: Unique tenant ID.
in: path
name: tenant_id
required: true
schema:
type: string
- description: Sub-tenant ID. This parameter is required only if a sub-tenant is configured.
in: header
name: Prisma-SubTenant
required: false
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DataResourceQuery'
description: 'The JSON object used to query the resource. The query consists of four parts, show below.
1. Properties - Data fields to include in the query output.
2. Query - Filter conditions to apply to the query.
3. Sort - Sort order for the the data.
4. Count - Maximum number of records to retrieve.
'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DataResponse'
description: List of resources
'400':
content:
application/json:
schema:
description: Error Response
example:
details: Resource property 'property1' is not valid
errorCode: DATA10002
message: Invalid Resource property name
values:
- property1
properties:
details:
description: Error details
example: Input value 'property1' is not valid
type: string
errorCode:
description: Error code
example: REST10001
type: string
message:
description: Error Message
example: Invalid input
type: string
values:
allOf:
- $ref: '#/components/schemas/ListString'
- description: Values in error details. Used to construct error in different language
example:
- property1
required:
- errorCode
- message
- details
- values
type: object
description: '
Invalid Resource Query request responses
1. Invalid Resource property name (Error code: DATA10002)
2. Invalid Resource request parameter (Error code: DATA10003)
3. The resource or property is not licensed (Error code: DATA10004)
'
'403':
content:
application/json:
schema:
description: Error Response
example:
details: Permission Denied
errorCode: REST10003
message: Permission Denied
values:
- value1
properties:
details:
description: Error details
example: Input value 'property1' is not valid
type: string
errorCode:
description: Error code
example: REST10001
type: string
message:
description: Error Message
example: Invalid input
type: string
values:
allOf:
- $ref: '#/components/schemas/ListString'
- description: Values in error details. Used to construct error in different language
example:
- property1
required:
- errorCode
- message
- details
- values
type: object
description: '
Permission response
1. Permission Denied (Error code: REST10003)
'
'404':
content:
application/json:
schema:
description: Error Response
example:
details: Resource not found
errorCode: REST10002
message: Resource not found
values:
- value1
properties:
details:
description: Error details
example: Input value 'property1' is not valid
type: string
errorCode:
description: Error code
example: REST10001
type: string
message:
description: Error Message
example: Invalid input
type: string
values:
allOf:
- $ref: '#/components/schemas/ListString'
- description: Values in error details. Used to construct error in different language
example:
- property1
required:
- errorCode
- message
- details
- values
type: object
description: '
Resource not available response
1. Resource not found (Error code: REST10002)
'
'500':
content:
application/json:
schema:
description: Error Response
example:
details: Failed to process request
errorCode: REST10001
message: Unexpected server error
values:
- value1
properties:
details:
description: Error details
example: Input value 'property1' is not valid
type: string
errorCode:
description: Error code
example: REST10001
type: string
message:
description: Error Message
example: Invalid input
type: string
values:
allOf:
- $ref: '#/components/schemas/ListString'
- description: Values in error details. Used to construct error in different language
example:
- property1
required:
- errorCode
- message
- details
- values
type: object
description: '
Unexpected server error response
1. Unexpected server error (Error code: REST10001)
'
summary: Resource query
tags:
- DataResource
/api/sase/v2.0/resource/{resource_name}:
get:
description: 'Returns all resource information, including available properties and details.
'
operationId: get-api-sase-v2.0-resource-resource_name
parameters:
- description: "Name of the resource for which you want information. The supported\nresources are:\n\n * site_current_status\n\n Provides connection status information.\n\n * alerts\n\n Provides information on alerts raised by your tenant.\n"
in: path
name: resource_name
required: true
schema:
type: string
- description: Unique tenant ID.
in: path
name: tenant_id
required: true
schema:
type: string
- description: Sub-tenant ID. This parameter is required only if a sub-tenant is configured.
in: header
name: Prisma-SubTenant
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DataResponse'
description: List of resources
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Invalid Request
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Unexpected server error
summary: Get resource details
tags:
- DataResource
components:
schemas:
SortCondition:
properties:
order:
$ref: '#/components/schemas/Order'
sequence:
format: int32
type: integer
type: object
ListObject:
items: {}
type: array
DataResourceQuery:
description: Data resource query request
properties:
addOnFilter:
allOf:
- $ref: '#/components/schemas/FilterCondition'
- description: Add on data Filter Condition. (The existing property will be replaced)
computeDataRowsProcessed:
description: Flag to indicate total rows processed for query
type: boolean
count:
default: 10000
description: Maximum number of records
example: 3000
format: int32
maximum: 10000
minimum: 1
type: integer
filter:
allOf:
- $ref: '#/components/schemas/FilterCondition'
- description: Filter Condition
histogram:
allOf:
- $ref: '#/components/schemas/HistogramCondition'
- description: Histogram Condition
includeRecordNumber:
description: Flag to indicate add row number to response
type: boolean
properties:
allOf:
- $ref: '#/components/schemas/ListQueryProperty'
- description: Resource properties
example:
- property: property1
- function: sum
property: property2
sort:
order: desc
sequence: 1
- alias: average_property3
function: avg
property: property3
required:
- properties
- filter
type: object
HistogramCondition:
properties:
alias:
description: Property Alias
example: property1_alias
type: string
enableEmptyInterval:
description: Enable filling empty record for intervals with no data
example: true
type: boolean
property:
description: Property
example: property1
type: string
range:
allOf:
- $ref: '#/components/schemas/Range'
- description: Histogram Range
example: hour
sort:
allOf:
- $ref: '#/components/schemas/SortCondition'
- description: Sort Condition (optional)
example:
order: desc
sequence: 1
value:
description: Histogram range value (only 1 is supported)
example: 1
format: int32
type: integer
required:
- property
- range
type: object
DataResponse:
description: Resource Request response
properties:
data:
allOf:
- $ref: '#/components/schemas/ListMapStringObject'
- description: Response Data
example:
- average_property3: 10.75
property1: value1
property2: 10
- average_property3: 20.99
property1: value2
property2: 25
header:
allOf:
- $ref: '#/components/schemas/MapStringObject'
- description: Response header
example:
createdAt: Fri Jan 1 00:00:00 PST 2021
name: Response Name
requestId: 123e4567-e89b-12d3-a456-426614174000
required:
- header
- data
type: object
NumberFormat:
properties:
function:
$ref: '#/components/schemas/Function'
value:
format: int32
type: integer
type: object
ListQueryProperty:
items:
$ref: '#/components/schemas/QueryProperty'
type: array
ListQueryRule:
items:
$ref: '#/components/schemas/QueryRule'
type: array
Operator:
enum:
- AND
- OR
type: string
Function:
enum:
- ceil
- floor
- round
- trunc
type: string
QueryProperty:
properties:
alias:
description: Property Alias (Name to include in response)
example: my_property1_name
type: string
format:
allOf:
- $ref: '#/components/schemas/NumberFormat'
- description: Number Format function (optional)
example:
function: round
value: 1
function:
allOf:
- $ref: '#/components/schemas/Function'
- description: Aggregation function (Applicable only to metric properties)
example: count
property:
description: Property
example: property1
type: string
sort:
allOf:
- $ref: '#/components/schemas/SortCondition'
- description: Sort Condition (optional)
example:
order: desc
sequence: 1
required:
- property
type: object
Order:
enum:
- asc
- desc
type: string
MapStringObject:
properties:
empty:
type: boolean
type: object
ListMapStringObject:
items:
$ref: '#/components/schemas/MapStringObject'
type: array
QueryRule:
properties:
escapeValue:
description: Enable character escaping for value
example: true
type: boolean
format:
allOf:
- $ref: '#/components/schemas/NumberFormat'
- description: Number Format function (optional)
example:
function: round
value: 1
operator:
allOf:
- $ref: '#/components/schemas/Operator'
- description: Operator
example: in
property:
description: Resource Property
example: property1
type: string
subQuery:
allOf:
- $ref: '#/components/schemas/SubQuery'
- description: Subquery (optional)
example:
type: local
value: sub_query1
values:
allOf:
- $ref: '#/components/schemas/ListObject'
- description: Operator
example:
- value1
- value2
required:
- property
- operator
- values
- escapeValue
type: object
SubQuery:
properties:
name:
type: string
type:
$ref: '#/components/schemas/SubQueryType'
type: object
SubQueryType:
enum:
- local
- pre_defined
type: string
Range:
enum:
- day
- hour
- minute
- month
- week
- year
type: string
ErrorResponse:
description: Error Response
properties:
details:
description: Error details
example: Input value 'property1' is not valid
type: string
errorCode:
description: Error code
example: REST10001
type: string
message:
description: Error Message
example: Invalid input
type: string
values:
allOf:
- $ref: '#/components/schemas/ListString'
- description: Values in error details. Used to construct error in different language
example:
- property1
required:
- errorCode
- message
- details
- values
type: object
ListString:
items:
type: string
type: array
FilterCondition:
properties:
operator:
allOf:
- $ref: '#/components/schemas/Operator'
- default: AND
description: Query operator
example: AND
rules:
$ref: '#/components/schemas/ListQueryRule'
type: object