Created
February 22, 2018 18:04
-
-
Save kstefan/1ffcb9527fbbb3a56e5c16776ca448e6 to your computer and use it in GitHub Desktop.
Create Elasticsearch User
This file contains hidden or 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
| curl -XPOST -u elastic 'http://elastic:9200/_xpack/security/role/my_role' -H "Content-Type: application/json" -d '{ | |
| "indices" : [ | |
| { | |
| "names" : [ "indexPrefix*" ], | |
| "privileges" : [ "all" ] | |
| } | |
| ] | |
| }' | |
| curl -XPOST -u elastic 'http://elastic:9200/_xpack/security/user/my_username' -H "Content-Type: application/json" -d '{ | |
| "password" : "password", | |
| "full_name" : "Full name", | |
| "email" : "email@example.com", | |
| "roles" : [ "my_role" ] | |
| }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment