Get Security index settings
Get Security index settings
New API reference
For the most up-to-date API details, refer to Security APIs.
Retrieves settings for the security internal indices.
Prerequisites
- To use this API, you must have at least the
read_security
cluster privilege.
Description
This API allows a user to retrieve the user-configurable settings for the Security internal index (.security
and associated indices). Only a subset of the index settings — those that are user-configurable—will be shown. This includes:
index.auto_expand_replicas
index.number_of_replicas
Examples
An example of retrieving the security settings:
resp = client.perform_request(
"GET",
"/_security/settings",
)
print(resp)
const response = await client.transport.request({
method: "GET",
path: "/_security/settings",
});
console.log(response);
GET /_security/settings
The configurable settings can be modified using the Update Security index settings API.
当前内容版权归 elasticsearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 elasticsearch .