1
0

index.rst 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .. _netapi-introduction:
  2. ==================
  3. ``netapi`` modules
  4. ==================
  5. Introduction to netapi modules
  6. ==============================
  7. netapi modules provide API-centric access to Salt. Usually externally-facing
  8. services such as REST or WebSockets, XMPP, XMLRPC, etc.
  9. In general netapi modules bind to a port and start a service. They are
  10. purposefully open-ended. A single module can be configured to run as well as
  11. multiple modules simultaneously.
  12. netapi modules are enabled by adding configuration to your Salt Master config
  13. file and then starting the :command:`salt-api` daemon. Check the docs for each
  14. module to see external requirements and configuration settings.
  15. Communication with Salt and Salt satellite projects is done using Salt's own
  16. :ref:`Python API <python-api>`. A list of available client interfaces is below.
  17. .. admonition:: salt-api
  18. Prior to Salt's 2014.7.0 release, netapi modules lived in the separate sister
  19. projected ``salt-api``. That project has been merged into the main Salt
  20. project.
  21. .. seealso:: :ref:`The full list of netapi modules <all-netapi-modules>`
  22. Client interfaces
  23. =================
  24. Salt's client interfaces expose executing functions by crafting a dictionary of
  25. values that are mapped to function arguments. This allows calling functions
  26. simply by creating a data structure. (And this is exactly how much of Salt's
  27. own internals work!)
  28. .. autoclass:: salt.netapi.NetapiClient
  29. :members: local, local_async, local_subset, ssh, runner, runner_async,
  30. wheel, wheel_async
  31. .. toctree::
  32. ../tutorials/http
  33. writing