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