Palo Alto Networks Collections API
{'$ref': 'desc/collections/collections.md'}
Operations 15
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“Which Compute collections exist when I call the v34.03 API?”
“Can I leave out collections that came from Prisma Cloud on v34.03?”
Tell an agent
List all Compute collections using API v34.03.
Get v34.03 collections with excludePrisma set to {excludePrisma}.
Ask an LLM
“How do I group images and hosts into a new collection on v34.03?”
“Must a collection name be unique when I add one through v34.03?”
Tell an agent
Add a v34.03 collection named {name} covering images {images}.
Via v34.03, create collection {name} scoped to clusters {clusters} and namespaces {namespaces}.
DELETE
/api/v34.03/collections/{id}
Delete a Compute collection (v34.03) · Delete an Existing Collection
#
Ask an LLM
“How do I delete a Compute collection with the v34.03 API?”
“Can v34.03 remove a collection I no longer scope policies to?”
Tell an agent destructive · confirm first
Delete v34.03 collection {id}.
Remove Compute collection {id} through API version 34.03.
PUT
/api/v34.03/collections/{id}
Update a Compute collection (v34.03) · Update an Existing Collection
#
Ask an LLM
“Can I change which hosts belong to an existing collection on v34.03?”
“How do I edit a collection's labels through the v34.03 API?”
Tell an agent
Update v34.03 collection {id} to include hosts {hosts}.
Using v34.03, set the labels of collection {id} to {labels}.
GET
/api/v34.03/collections/{id}/usages
See which policies use a collection (v34.03) · Get Policies for a Collection
#
Ask an LLM
“Which policies reference a given collection, using v34.03?”
“Before deleting a collection, can v34.03 tell me where it's used?”
Tell an agent
List the policies that use collection {id} via v34.03.
Show v34.03 usages of collection {id}.
Ask an LLM
“What collections are configured in Compute on the v34.04 API?”
“Can I fetch only Prisma Cloud-originated collections on version 34.04?”
Tell an agent
Retrieve every collection from the v34.04 Compute endpoint.
Get collections on v34.04 filtered by prisma={prisma}.
Ask an LLM
“How do I create a collection of containers and functions on v34.04?”
“Can a v34.04 collection be scoped to cloud account IDs?”
Tell an agent
Create collection {name} with the v34.04 API.
On v34.04, add collection {name} for account IDs {accountIDs} and functions {functions}.
DELETE
/api/v34.04/collections/{id}
Delete a Compute collection (v34.04) · Delete an Existing Collection
#
Ask an LLM
“Is there a v34.04 call to permanently delete a collection?”
“How do I drop an unused Compute collection on the current API version?”
Tell an agent destructive · confirm first
Delete collection {id} using the v34.04 Compute API.
Drop Compute collection {id} (v34.04).
PUT
/api/v34.04/collections/{id}
Update a Compute collection (v34.04) · Update an Existing Collection
#
Ask an LLM
“How do I change the containers in an existing collection on version 34.04?”
“Can v34.04 update a collection's description and color?”
Tell an agent
With v34.04, set containers {containers} on collection {id}.
Change the description of v34.04 collection {id} to {description}.
GET
/api/v34.04/collections/{id}/usages
See which policies use a collection (v34.04) · Get Policies for a Collection
#
Ask an LLM
“What policies depend on this collection in v34.04?”
“Can I get the policy usages of a collection from the v34.04 API?”
Tell an agent
With v34.04, show which policies reference collection {id}.
Get policy usages for collection {id} on API v34.04.
GET
/entitlement/api/v1/collection/{id}
Get an asset-group collection by ID · Get Collection by ID
#
Ask an LLM
“How do I see the asset groups inside one entitlement collection?”
“Who created and last modified a given Darwin collection?”
Tell an agent
Get all details of entitlement collection {id}.
Show the asset groups in Darwin collection {id}.
Ask an LLM
“Can I change the asset groups in an entitlement collection?”
“How do I rename a collection on the Darwin release?”
Tell an agent
Rename entitlement collection {id} to {name}.
Replace the asset groups of Darwin collection {id} with {assetGroups}.
Ask an LLM
“How do I delete an entitlement collection on the Darwin release?”
“Can I remove a collection of asset groups by its ID?”
Tell an agent destructive · confirm first
Delete entitlement collection {id}.
Remove the Darwin asset-group collection {id}.
Ask an LLM
“What entitlement collections do I have, and how many can I fetch per page?”
“Can I list Darwin collections without their asset groups to keep responses small?”
Tell an agent
List entitlement collections, {page_size} per page, ordered by {order_by}.
Fetch the next page of Darwin collections using token {next_page_token}.
Ask an LLM
“How do I create an entitlement collection made of asset group types?”
“Can I use a wildcard to include every ID of an asset group type in a new collection?”
Tell an agent
Create entitlement collection {name} with asset groups {assetGroups}.
Set up a Darwin collection {name} described as {description}.