In elasticsearch, this can be done by using POST /_security/api_key but it does not work in Opensearch.
Can someone help here.
The idea is to send a search request using api key for authorization. https://opensearchURL:9200/index/_search?pretty {‘content-type’:‘application/json’, ‘Authorization’: ‘Basic api Key’}
In the documentation i can see only an instruction how to manage security area of the cluster by api and how to configure that. But how about searches and others from https://opensearch.org/docs/latest/api-reference/index/ How should the query with auth look like? What type of auth we can use? As in the first post, can we generate apikey in Opensearch?