You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Elasticsearch APIs support key-based authentication.
36
+
You must create an API key and use the encoded value in the request header.
37
+
For example:
38
+
39
+
40
+
```
41
+
curl -X GET "${ES_URL}/_cat/indices?v=true" \
42
+
-H "Authorization: ApiKey ${API_KEY}"
43
+
```
44
+
45
+
To get API keys, use the `/_security/api_key` APIs.
46
+
basicAuth:
47
+
scheme: basic
48
+
type: http
49
+
bearerAuth:
50
+
scheme: bearer
51
+
type: http
52
+
description: |
53
+
Elasticsearch APIs support the use of bearer tokens in the `Authorization` HTTP header to authenticate with the API.
54
+
For examples, refer to [Token-based authentication services](https://www.elastic.co/guide/en/elasticsearch/reference/current/token-authentication-services.html)
55
+
- target: '$'
56
+
description: Add document security
57
+
update:
58
+
security:
59
+
- apiKeyAuth: []
60
+
- basicAuth: []
61
+
- bearerAuth: []
24
62
# Examples that apply only to the Elasticsearch OpenAPI document
25
63
- target: "$.paths['/_features']['get']"
26
64
description: "Add examples for get features operation"
0 commit comments