Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/check_point/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_access_rule_facts.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
dd
lmZddlZd�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatustnetworktsupported_bys�
---
module: checkpoint_access_rule_facts
short_description: Get access rules objects facts on Check Point over Web Services API
description:
  - Get access rules objects facts on Check Point devices.
    All operations are performed over Web Services API.
version_added: "2.8"
author: "Ansible by Red Hat (@rcarrillocruz)"
options:
  name:
    description:
      - Name of the access rule. If not provided, UID is required.
    type: str
  uid:
    description:
      - UID of the access rule. If not provided, name is required.
    type: str
  layer:
    description:
      - Layer the access rule is attached to.
    required: True
    type: str
sl
- name: Get access rule facts
  checkpoint_access_rule_facts:
    layer: Network
    name: "Drop attacker"
si
ansible_facts:
  description: The checkpoint access rule object facts.
  returned: always.
  type: list
(t
AnsibleModule(t
Connection(t	HTTPErrorNcC`s�|jd}|jd}|jd}|rDi|d6|d6}n|rai|d6|d6}n|jd|�\}}||fS(Ntnametuidtlayers/web_api/show-access-rule(tparamstsend_request(tmodulet
connectionRRR
tpayloadtcodetresponse((sd/usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_access_rule_facts.pytget_access_ruleKs


cC`s�tdtdd�dtdd�dtdddt��}td|�}t|j�}t||�\}}|dkr�|jd	td
|��n|jddj||��dS(
NRttypetstrRR
trequiredt
argument_speci�t
ansible_factstcheckpoint_access_rulestmsgs5Checkpoint device returned error {0} with message {1}(	tdicttTrueRR	t_socket_pathRt	exit_jsont	fail_jsontformat(RRRRR((sd/usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_access_rule_facts.pytmainZst__main__(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRtansible.module_utils.connectionR	t+ansible.module_utils.six.moves.urllib.errorR
tjsonRR#t__name__(((sd/usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_access_rule_facts.pyt<module>s


		

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]