%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/runners/ |
Current File : //lib/python2.7/site-packages/salt/runners/http.pyc |
� ���^c @@ sk d Z d d l m Z m Z m Z d d l Z d d l Z e j e � Z e d � Z d d d d � Z d S( u� Module for making various web calls. Primarily designed for webhooks and the like, but also useful for basic http testing. .. versionadded:: 2015.5.0 i ( t absolute_importt print_functiont unicode_literalsNc K@ s� | t k r t j d � n d | k r5 d | d <n t j � } d | k rh | j | d � | d =n t j j j d | d | | � } | S( u� Query a resource, and decode the return data Passes through all the parameters described in the :py:func:`utils.http.query function <salt.utils.http.query>`: CLI Example: .. code-block:: bash salt-run http.query http://somelink.com/ salt-run http.query http://somelink.com/ method=POST params='key1=val1&key2=val2' salt-run http.query http://somelink.com/ method=POST data='<xml>somecontent</xml>' u6 Output option has been deprecated. Please use --quiet.u nodeu masteru optst urlt opts( t Truet logt warningt __opts__t copyt updatet saltt utilst httpt query( R t outputt kwargsR t ret( ( s5 /usr/lib/python2.7/site-packages/salt/runners/http.pyR s !c C@ s t j j j | | t | � S( ub Update the local CA bundle file from a URL .. versionadded:: 2015.5.0 CLI Example: .. code-block:: bash salt-run http.update_ca_bundle salt-run http.update_ca_bundle target=/path/to/cacerts.pem salt-run http.update_ca_bundle source=https://example.com/cacerts.pem If the ``target`` is not specified, it will be pulled from the ``ca_cert`` configuration variable available to the master. If it cannot be found there, it will be placed at ``<<FILE_ROOTS>>/cacerts.pem``. If the ``source`` is not specified, it will be pulled from the ``ca_cert_url`` configuration variable available to the master. If it cannot be found, it will be downloaded from the cURL website, using an http (not https) URL. USING THE DEFAULT URL SHOULD BE AVOIDED! ``merge_files`` may also be specified, which includes a string or list of strings representing a file or files to be appended to the end of the CA bundle, once it is downloaded. CLI Example: .. code-block:: bash salt-run http.update_ca_bundle merge_files=/path/to/mycert.pem ( R R R t update_ca_bundleR ( t targett sourcet merge_files( ( s5 /usr/lib/python2.7/site-packages/salt/runners/http.pyR 0 s !( t __doc__t __future__R R R t loggingt salt.utils.httpR t getLoggert __name__R R R t NoneR ( ( ( s5 /usr/lib/python2.7/site-packages/salt/runners/http.pyt <module> s