??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
àUdac @` s« d d l m Z m Z m Z e Z d Z d d l Z d d l m Z d d l
m Z d d l m
Z
d d l m Z d d l m Z i d d
6Z d e f d „ ƒ YZ d S(
i ( t absolute_importt divisiont print_functionsý
---
author: Ansible Networking Team
httpapi : checkpoint
short_description: HttpApi Plugin for Checkpoint devices
description:
- This HttpApi plugin provides methods to connect to Checkpoint
devices over a HTTP(S)-based api.
version_added: "2.8"
N( t to_text( t AnsibleConnectionFailure( t HTTPError( t HttpApiBase( t ConnectionErrors application/jsons Content-Typet HttpApic B` sG e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C` s | rA | rA i | d 6| d 6} d } | j | | ƒ \ } } n t d ƒ ‚ y+ i | d d 6| j _ | d | j _ Wn! t k
r› t d | ƒ ‚ n Xd S( Nt usert passwords /web_api/logins, Username and password are required for logint sids
X-chkp-sidt uidsP Server returned response without token info during connection authentication: %s( t send_requestR t
connectiont _autht _session_uidt KeyErrorR ( t selft usernameR
t payloadt urlt responset
response_data( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/httpapi/checkpoint.pyt login! s
c C` s" d } | j | d ƒ \ } } d S( Ns /web_api/logout( R
t None( R R R t dummy( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/httpapi/checkpoint.pyt logout0 s c C` s
| j j S( N( R R ( R ( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/httpapi/checkpoint.pyt get_session_uid5 s c C` sÍ | r t j | ƒ n d } y] | j ƒ | j j | | d d d t ƒ\ } } | j | ƒ } | j ƒ | j | ƒ f SWnN t k
r— } d | j
f St k
rÈ } t j | j
ƒ ƒ } | j | f SXd S( Ns {}t methodt POSTt headersi” ( t jsont dumpst _display_requestR t sendt BASE_HEADERSt _get_response_valuet getcodet _response_to_jsonR t messageR t loadst readt code( R t patht body_paramst dataR R t valuet et error( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/httpapi/checkpoint.pyR
8 s
'
c C` s' | j j d d d | j j f ƒ d S( Nt vvvvs Web Services: %s %sR ( R t
queue_messaget _url( R ( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/httpapi/checkpoint.pyR" G s c C` s t | j ƒ ƒ S( N( R t getvalue( R R ( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/httpapi/checkpoint.pyR% J s c C` sC y | r t j | ƒ Si SWn! t k
r> t d | ƒ ‚ n Xd S( Ns Invalid JSON response: %s( R R) t
ValueErrorR ( R t
response_text( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/httpapi/checkpoint.pyR' M s
( t __name__t
__module__R R R R
R" R% R' ( ( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/httpapi/checkpoint.pyR s ( t
__future__R R R t typet
__metaclass__t
DOCUMENTATIONR t ansible.module_utils.basicR t ansible.errorsR t+ ansible.module_utils.six.moves.urllib.errorR t ansible.plugins.httpapiR t ansible.module_utils.connectionR R$ R ( ( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/httpapi/checkpoint.pyt s