Skip to content

Instantly share code, notes, and snippets.

Created October 17, 2017 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/57c96147080bc72d6ee4c9221063bbe9 to your computer and use it in GitHub Desktop.
Save anonymous/57c96147080bc72d6ee4c9221063bbe9 to your computer and use it in GitHub Desktop.
Python salt-api with REST
resp1 = session.post(url_login_string, json=[{
'client': 'local',
'tgt': targets,
'fun': 'state.sls',
'arg': 'states.test',
}])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment