Delete multiple objects from a custom URL category? (or reset it?)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Delete multiple objects from a custom URL category? (or reset it?)

L1 Bithead

Hi,

 

I'm managing a custom URL category via API calls. Domains are added, removed. Works well. 

But, in some cases, I'd like to remove multiple domains or, more efficiently, clear the category (remove all entries) with one API call.

Any idea how to achieve this?

 

Cheers,

/x

1 accepted solution

Accepted Solutions

6 REPLIES 6

L4 Transporter

'Delete' allows to delete one and only 1 entry.

 

you can use 'edit' to rewrite entirely the content of a node.

Tx for your reply.

What do you mean by "rewrite the content of a node" exactly?

 

Let's assume that I've this custom category: "custom_url" with 3 domains:

"domaina.net"

"domainb.org"

"domainc.com"

 

I need to populate this category with a _new_ list of domains (some are the same, some are new, some are removed). Example:

 

"domaina.net"

"domaind.be"

"domainf.co.uk"

 

What would be the best approach to populate the category with the new domains?

 

Cheers,

/x

Hi,

 

 You should check our API guide. The part that interests you is here :

 

https://www.paloaltonetworks.com/documentation/71/pan-os/xml-api/pan-os-xml-api-request-types/edit-c...

I had to play a little bit but finally it worked! Tx for your help!

 

Cheers,

Xavier

Do you know the limit of an API call (most browsers have a limit of 8KB for HTTP requests).

The custom URL category that I've to replace has a lot of entries.

 

Cheers,

Xavier

Ok, found the answer by myself... I can use a POST request... RTFM!!

 

Cheers,

Xavier

  • 1 accepted solution
  • 5210 Views
  • 6 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!