Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/reference/redirects.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -498,3 +498,12 @@ guide to the {painless}/index.html[Painless Scripting Language].

See the {painless}/painless-api-reference.html[Painless API Reference] in
the guide to the {painless}/index.html[Painless Scripting Language].

[role="exclude", id="security-api-roles"]
=== Role management APIs

You can use the following APIs to add, remove, and retrieve roles in the native realm:

* <<security-api-put-role,Create role>>, <<security-api-delete-role,Delete role>>
* <<security-api-clear-role-cache,Clear roles cache>>
* <<security-api-get-role,Get roles>>
2 changes: 1 addition & 1 deletion x-pack/docs/en/rest-api/security.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ You can use the following APIs to perform {security} activities.
* <<security-api-users>>

[float]
[[security-role-apis]]
=== Roles

You can use the following APIs to add, remove, and retrieve roles in the native realm:
Expand All @@ -29,7 +30,6 @@ include::security/create-roles.asciidoc[]
include::security/delete-roles.asciidoc[]
include::security/get-roles.asciidoc[]
include::security/privileges.asciidoc[]
include::security/roles.asciidoc[]
include::security/role-mapping.asciidoc[]
include::security/ssl.asciidoc[]
include::security/tokens.asciidoc[]
Expand Down
1 change: 0 additions & 1 deletion x-pack/docs/en/rest-api/security/get-roles.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ role. If the role is not defined in the native realm, the request returns 404.
"grant" : [ "title", "body" ]}
}
],
"applications" : [ ],
"run_as" : [ "other_user" ],
"metadata" : {
"version" : 1
Expand Down
2 changes: 1 addition & 1 deletion x-pack/docs/en/rest-api/security/role-mapping.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Role mappings have _rules_ that identify users and a list of _roles_ that are
granted to those users.

NOTE: This API does not create roles. Rather, it maps users to existing roles.
Roles can be created by using <<security-api-roles, Role Management APIs>> or
Roles can be created by using <<security-role-apis,role management APIs>> or
{xpack-ref}/defining-roles.html#roles-management-file[roles files].

The role mapping rule is a logical condition that is expressed using a JSON DSL.
Expand Down
9 changes: 0 additions & 9 deletions x-pack/docs/en/rest-api/security/roles.asciidoc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ manage roles, log in to {kib} and go to *Management / Elasticsearch / Roles*.
The _Role Management APIs_ enable you to add, update, remove and retrieve roles
dynamically. When you use the APIs to manage roles in the `native` realm, the
roles are stored in an internal {es} index. For more information and examples,
see {ref}/security-api-roles.html[role management APIs].
see {ref}/security-api.html#security-role-apis[role management APIs].

[float]
[[roles-management-file]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ the API, and other roles that are mapped through files.

When you use role-mappings, you assign existing roles to users.
The available roles should either be added using the
{ref}/security-api-roles.html[role management APIs] or defined in the
{ref}/security-api.html#security-role-apis[role management APIs] or defined in the
<<roles-management-file, roles file>>. Either role-mapping method can use
either role management method. For example, when you use the role mapping API,
you are able to map users to both API-managed roles and file-managed roles
Expand Down