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_object_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_object_facts
short_description: Get object facts on Check Point over Web Services API
description:
  - Get object facts on Check Point devices.
    All operations are performed over Web Services API.
version_added: "2.8"
author: "Ansible by Red Hat (@rcarrillocruz)"
options:
  uid:
    description:
      - UID of the object. If UID is not provided, it will do a full search
        which can be filtered with the filter argument.
  object_filter:
    description:
      - Filter expression for search. It accepts AND/OR logical operators and performs a textual
        and IP address search. To search only by IP address, set ip_only argument to True.
        which can be filtered with the filter argument.
  ip_only:
    description:
      - Filter only by IP address.
    type: bool
    default: false
  object_type:
    description:
      - Type of the object to search. Must be a valid API resource name
    type: str
sg
- name: Get object facts
  checkpoint_object_facts:
    object_filter: 192.168.30.30
    ip_only: yes
s]
ansible_hosts:
  description: The checkpoint object facts.
  returned: always.
  type: list
(t
AnsibleModule(t
Connection(t	HTTPErrorNc	C`s�|jd}|jd}|jd}|jd}|rbi|d6}|jd|�\}}n3i|d6|d6|d6}|jd	|�\}}||fS(
Ntuidt
object_filtertip_onlytobject_types/web_api/show-objecttfiltersip-onlyttypes/web_api/show-objects(tparamstsend_request(	tmodulet
connectionRRR
Rtpayloadtcodetresult((s_/usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_object_facts.pyt
get_objectPs




c
C`s�tdtdddd�dtdddd�dtdddt�dtdddd��}td	|�}t|j�}t||�\}}|d
kr�|jdtd|��n|jd
dj	||��dS(NRRtstrtdefaultRR
tboolRt
argument_speci�t
ansible_factstcheckpoint_objectstmsgs6Check Point device returned error {0} with message {1}(
tdicttNonetFalseRR	t_socket_pathRt	exit_jsont	fail_jsontformat(RRRRtresponse((s_/usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_object_facts.pytmain`s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__(((s_/usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_object_facts.pyt<module>s


		

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