-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCS Query Roles #110473
DOCS Query Roles #110473
Conversation
Documentation preview: |
Pinging @elastic/es-docs (Team:Docs) |
Pinging @elastic/es-security (Team:Security) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just some non-blocking nits.
[%collapsible%open] | ||
==== | ||
`name`:: | ||
The <<security-api-put-role-path-params,name>> of the role, which is internally indexed as a keyword. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit (optional): not sure if the ", which is internally indexed as a keyword." is needed. Maybe use the (type)
prefix instead, so:
(keyword) The <<security-api-put-role-path-params,name>> of the role
Same comment for all the fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, thanks!
role. | ||
role. The returned role format is a simple extension of the <<defining-roles,role definition>> format, | ||
only adding an extra field `transient_metadata.enabled`. | ||
This field is `false` in case the role is automatically disabled, for e.g. in case the license |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field is `false` in case the role is automatically disabled, for e.g. in case the license | |
This field is `false` in case the role is automatically disabled, for example when the license |
The following request lists all roles, sorted by the role name. | ||
This assumes you have the `read_security` <<privileges-list-cluster,privilege>>: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following request lists all roles, sorted by the role name. | |
This assumes you have the `read_security` <<privileges-list-cluster,privilege>>: | |
The following request lists all roles, sorted by the role name: |
@@ -93,6 +86,12 @@ In addition, sort can also be applied to the `_doc` field to sort by index order | |||
`search_after`:: | |||
(Optional, array) <<search-after,Search after>> definition. | |||
|
|||
[[security-api-query-user-query-params]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the bonus updates!
<titleabbrev>Query Role</titleabbrev> | ||
++++ | ||
|
||
Retrieves roles with <<query-dsl,Query DSL>> in a <<paginate-search-results,paginated>> fashion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@albertzaharovits For completeness sake wondering if we should mention that you can't query reserved roles, only native ones somewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 looks great
💚 Backport successful
|
These are the docs changes in relation to elastic#108733
These are the docs changes in relation to #108733