- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- How to get Target details of Policies and Layers?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to get Target details of Policies and Layers?
Hi all,
In the Checkpoint management server, Under the Manage Policies option, we have the option to provide policy target of selected policies and layers. In this target field, we can provide any gateway or cluster names.
Is there any way to get install target info with Policies name details using Management API? I tried below API methods:
- https://managementServerIP/web_api/show-access-layers
- https://managementServerIP/web_api/show-access-layer
Both API responses are not contained Policy Target information.
Regards,
Veera
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What that screen shows you are actually the policy packages, which contain one or more layers.
Layers themselves do not have such a target, thus you won’t see it by that API.
It’s show-package (and friends).
Also, when you’re installing a policy to a gateway, it’s the policy package you install, not the layer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Installation targets are a property of the policy package, not the access layer:
[Expert@LabSC]# mgmt_cli -r true --format json show packages details-level full | jq '.packages[]|{name:.name,targets:."installation-targets"}'
{
"name": "Policy_the_Second",
"targets": "all"
}
{
"name": "Standard",
"targets": "all"
}
I haven't gotten around to exploring all the possible values for the field. My bet is it's a string with a few acceptable values or a list with names of acceptable targets.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What that screen shows you are actually the policy packages, which contain one or more layers.
Layers themselves do not have such a target, thus you won’t see it by that API.
It’s show-package (and friends).
Also, when you’re installing a policy to a gateway, it’s the policy package you install, not the layer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Installation targets are a property of the policy package, not the access layer:
[Expert@LabSC]# mgmt_cli -r true --format json show packages details-level full | jq '.packages[]|{name:.name,targets:."installation-targets"}'
{
"name": "Policy_the_Second",
"targets": "all"
}
{
"name": "Standard",
"targets": "all"
}
I haven't gotten around to exploring all the possible values for the field. My bet is it's a string with a few acceptable values or a list with names of acceptable targets.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
