Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Getting list of all CategorizationOverrides

Jump to solution

Is there any way to get a list of all CategorizationOverride objects with the API? I know you can do this with hosts, networks, applications and such by Posting a JSON object to the /show-objects endpoint, but it does not appear to work for objects with the CategorizationOverride type.

Works:

{
"limit" : 50,
"offset" : 0,
"order" : [ {
"ASC" : "name"
} ],
"type" : "application-site-category"
}

Does not work:

{
"limit" : 50,
"offset" : 0,
"order" : [ {
"ASC" : "name"
} ],
"type" : "CategorizationOverride"
}

I can pull every object from the firewall and then filter on type on my own, but it takes a really long time to get 17k objects just to yank out 33.

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
Highlighted

Re: Getting list of all CategorizationOverrides

Jump to solution

Hi Dave,

 

There is currently no official API for CategorizationOverrides.

You can try to use the unofficial generic-object API:

mgmt_cli -r true show generic-objects class-name "com.checkpoint.management.access.objects.access.CategorizationOverride" limit 50 offset 0

 

Thanks,

Omer

View solution in original post

0 Kudos
4 Replies
Highlighted
Employee++
Employee++

Re: Getting list of all CategorizationOverrides

Jump to solution

Hi Matt,

I've just noticed this post...

Unfortunatelly, currently there is no R80.X Management API command to fetch the list of this type of objects.

I'll commit R&D request to add it to the next release.

Robert.

Highlighted

Re: Getting list of all CategorizationOverrides

Jump to solution

Did this get added to the available API commands?

 

Thanks,

Dave

0 Kudos
Highlighted
Admin
Admin

Re: Getting list of all CategorizationOverrides

Jump to solution

Doesn't look like it. 
However, this is one of those situations where you can dump the entire list and use jq to filter the results.
Tagging @Omer_Kleinstern for visibility.

0 Kudos
Highlighted

Re: Getting list of all CategorizationOverrides

Jump to solution

Hi Dave,

 

There is currently no official API for CategorizationOverrides.

You can try to use the unofficial generic-object API:

mgmt_cli -r true show generic-objects class-name "com.checkpoint.management.access.objects.access.CategorizationOverride" limit 50 offset 0

 

Thanks,

Omer

View solution in original post

0 Kudos