I want to get and create users in elasticsearch with python. I'm trying to use API. I'm following this documentation. I send a get request with Postman in this URL:
http://localhost:9200/_opendistro/_security/api/internalusers/
I send this request for getting users but I got this error message:
{
"error": "no handler found for uri [/opendistro/security/api/internalusers] and method [GET]"
}
I also want to create a user with username and email but here I found this for creating user:
{
"password": "kirkpass",
"backend_roles": ["captains", "starfleet"],
"attributes": {
"attribute1": "value1",
"attribute2": "value2"
}
}
There are no options for username and password
my two questions are:
- Why I'm getting an error when I try to get users?
- How can I create users with username and email by using an API