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_host_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_host_facts
short_description: Get host objects facts on Check Point over Web Services API
description:
  - Get host 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 host object. If name is not provided, UID is required.
    type: str
  uid:
    description:
      - UID of the host object. If UID is not provided, name is required.
    type: str
sK
- name: Get host object facts
  checkpoint_host_facts:
    name: attacker
sb
ansible_hosts:
  description: The checkpoint host object facts.
  returned: always.
  type: list
(t
AnsibleModule(t
Connection(t	HTTPErrorNcC`sh|jd}|jd}|r0i|d6}n|rFi|d6}n|jd|�\}}||fS(Ntnametuids/web_api/show-host(tparamstsend_request(tmodulet
connectionRRtpayloadtcodetresult((s]/usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_host_facts.pytget_hostEs

cC`s�tdtdd�dtdd��}dg}td|d|�}t|j�}t||�\}}|dkr�|jdtd	|��n|jd
dj||��dS(
NRttypetstrRt
argument_spectrequired_one_ofi�t
ansible_factstcheckpoint_hoststmsgs5Checkpoint device returned error {0} with message {1}(RR(tdictRR	t_socket_pathRt	exit_jsont	fail_jsontformat(RRRRRtresponse((s]/usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_host_facts.pytmainSs	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_host_facts.pyt<module>s


		

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