PARALLAX

cp_mgmt_access_rule_facts

Get access-rule objects facts on Check Point over Web Services API through native controller HTTPAPI with owned sessions

Collection: check_point.mgmt

Full Name: check_point.mgmt.cp_mgmt_access_rule_facts

Controller module — runs on the local controller, not on remote hosts.

Synopsis

Get access-rule objects facts on Check Point over Web Services API through native controller HTTPAPI with owned sessions

Parameters

NameTypeRequiredDefaultDescription
async_responseboolfalseRun command in asynchronous mode and return task UID. Use show-task command to check the progress of the task. Available with customized HF.
dereference_group_membersboolIndicates whether to dereference “members” field by details level for every object in reply. Available from R80.10 management version.
details_levelstrThe level of detail for some of the fields in the response can vary from showing only the UID value of the object to a fully detailed representation of the object.
filterstrSearch expression to filter the rulebase. The provided text should be exactly the same as it would be given in Smart Console. The logical operators in the expression (‘AND’, ‘OR’) should be provided in capital letters. If an operator is not used, the default OR operator applies.
filter_settingsdictSets filter preferences. Available from R80.10 management version.
hits_settingsdictN/A
layerstrLayer that the rule belongs to identified by the name or UID.
limitintNo more than that many results will be returned. This parameter is relevant only for getting few objects. Valid values are between 1 and 500.
namestrObject name. Should be unique in the domain.
offsetintSkip that many results before beginning to return them. This parameter is relevant only for getting few objects.
orderlistSorts results by the given field. By default the results are sorted in the ascending order by name. This parameter is relevant only for getting few objects.
packagestrName of the package.
show_as_rangesboolWhen true, the source, destination and services & applications parameters are displayed as ranges of IP addresses and port numbers rather than network objects.
Objects that are not represented using IP addresses or port numbers are presented as objects.
In addition, the response of each rule does not contain the parameters, source, source-negate, destination, destination-negate, service and service-negate, but instead it contains the parameters, source-ranges, destination-ranges and service-ranges.

Note, Requesting to show rules as ranges is limited up to 20 rules per request, otherwise an error is returned. If you wish to request more rules, use the offset and limit parameters to limit your request. Available from R80.20 management version.
show_hitsboolN/A
show_membershipboolIndicates whether to calculate and show “groups” field for every object in reply. Available from R80.10 management version.
use_object_dictionaryboolN/A
versionstrManagement API version path; omitted uses the default API version.
wait_for_taskbooltrueWait for the task to end. Such as publish task.
wait_for_task_timeoutint30How many minutes to wait until throwing a timeout error.

Example

yaml
- name: show-access-rule
  check_point.mgmt.cp_mgmt_access_rule_facts:
    layer: Network
    name: Rule 1

- name: show-access-rulebase
  check_point.mgmt.cp_mgmt_access_rule_facts:
    details_level: standard
    limit: 20
    name: Network
    offset: 0
    use_object_dictionary: true
Search
    ↑ ↓ move↵ openesc close