Last active
June 17, 2020 10:48
-
-
Save davidohana/cc4042f34b972ac38da9ad367a0819f2 to your computer and use it in GitHub Desktop.
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
grafana_server_url = "https://localhost:3000" | |
add_user_endpoint = grafana_server_url + "/api/admin/users/" | |
user_dict = { | |
"name": "David Ohana", | |
"email": "NotMyRealEmail@ibm.com", | |
"login": "NotMyRealEmail@ibm.com", | |
"password": "dummypass", | |
} | |
response = requests.post( | |
add_user_endpoint, | |
json=user_dict, | |
verify=False, | |
auth=('admin', grafana_admin_password) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment