Set legacy security settings

Sets legacy security (Shield) settings for a 2.x Elasticsearch cluster. Newer (> 2.x) clusters have their Shield settings managed externally via X-Pack in Kibana.

Request

PUT /api/v1/clusters/elasticsearch/{cluster_id}/settings/security/legacy

Path parameters

cluster_id (required)
(string) Identifier for the Elasticsearch cluster

Request body

(LegacySecuritySettings) (required) The legacy security settings

Responses

200
(LegacySecuritySettings) Returns the updated legacy security settings for the specified cluster
404
(BasicFailedReply) The cluster specified at {cluster_id} could not be found (code: 'clusters.cluster_not_found')
449
(BasicFailedReply) elevated permissions are required. (code: '"root.needs_elevated_permissions"')