mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[DOCS] Adds API keys to API docs (#71738)
* [DOCS] Adds API keys to API docs * Fixes link title * Update docs/api/using-api.asciidoc Co-authored-by: Brandon Morelli <bmorelli25@gmail.com> Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>
This commit is contained in:
parent
f5259ed373
commit
0c87aa506d
1 changed files with 19 additions and 2 deletions
|
@ -10,7 +10,23 @@ NOTE: The {kib} Console supports only Elasticsearch APIs. You are unable to inte
|
|||
[float]
|
||||
[[api-authentication]]
|
||||
=== Authentication
|
||||
{kib} supports token-based authentication with the same username and password that you use to log into the {kib} Console. In a given HTTP tool, and when available, you can select to use its 'Basic Authentication' option, which is where the username and password are stored in order to be passed as part of the call.
|
||||
The {kib} APIs support key- and token-based authentication.
|
||||
|
||||
[float]
|
||||
[[token-api-authentication]]
|
||||
==== Token-based authentication
|
||||
|
||||
To use token-based authentication, you use the same username and password that you use to log into Elastic.
|
||||
In a given HTTP tool, and when available, you can select to use its 'Basic Authentication' option,
|
||||
which is where the username and password are stored in order to be passed as part of the call.
|
||||
|
||||
[float]
|
||||
[[key-authentication]]
|
||||
==== Key-based authentication
|
||||
|
||||
To use key-based authentication, you create an API key using the Elastic Console, then specify the key in the header of your API calls.
|
||||
|
||||
For information about API keys, refer to <<api-keys,API keys>>.
|
||||
|
||||
[float]
|
||||
[[api-calls]]
|
||||
|
@ -51,7 +67,8 @@ For all APIs, you must use a request header. The {kib} APIs support the `kbn-xsr
|
|||
* XSRF protections are disabled using the `server.xsrf.disableProtection` setting
|
||||
|
||||
`Content-Type: application/json`::
|
||||
Applicable only when you send a payload in the API request. {kib} API requests and responses use JSON. Typically, if you include the `kbn-xsrf` header, you must also include the `Content-Type` header.
|
||||
Applicable only when you send a payload in the API request. {kib} API requests and responses use JSON.
|
||||
Typically, if you include the `kbn-xsrf` header, you must also include the `Content-Type` header.
|
||||
|
||||
Request header example:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue