File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/restconf.cpython-310.pyc
o
�N�g� � @ sL d Z ddlZdgZdZe�e�Zdd� Zdd� Zdd � Z d
d� Z
dd
� ZdS )z�
Execution module for RESTCONF Proxy minions
:codeauthor: Jamie (Bear) Murphy <jamiemurphyit@gmail.com>
:maturity: new
:platform: any
� NZrestconfc C s( t �di ��d�tkrddt� �fS dS )N�proxyZ proxytypeFzProxytype does not match: T)Z__opts__�get�__virtualname__� r r �I/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/restconf.py�__virtual__ s r c C s t d d�S )z|
Returns the RESTCONF capabilities PATH
CLI Example:
.. code-block:: bash
salt '*' restconf.info
�restconf.requestzMrestconf/data/ietf-restconf-monitoring:restconf-state/capabilities/capability�Z __proxy__r r r r �info s
�r
c C s t d | �S )a�
Returns an object containing the content of the request path with a GET request.
Data returned will contain a dict with at minimum a key of "status" containing the http status code
Other keys that should be available error (if http error), body, dict (parsed json to dict)
CLI Example:
.. code-block:: bash
salt '*' restconf.get_data restconf/yang-library-version
r r )�pathr r r �get_data'