Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Matt_Phelps
Explorer
Jump to solution

Getting list of all CategorizationOverrides

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.

0 Kudos
1 Solution

Accepted Solutions
Omer_Kleinstern
Employee
Employee

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
Robert_Decker
Advisor

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.

David_C1
Advisor

Did this get added to the available API commands?

 

Thanks,

Dave

0 Kudos
PhoneBoy
Admin
Admin

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
Omer_Kleinstern
Employee
Employee

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

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events