Created
October 17, 2017 01:18
-
-
Save anonymous/57c96147080bc72d6ee4c9221063bbe9 to your computer and use it in GitHub Desktop.
Python salt-api with REST
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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