Skip to content

Commit 704c416

Browse files
authored
[8.x][OpenAPI] Edit summaries for security APIs (#3035) (#3046)
1 parent fe3cffe commit 704c416

File tree

36 files changed

+346
-160
lines changed

36 files changed

+346
-160
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 134 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 114 additions & 96 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_doc_ids/table.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ lowercase-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{bra
258258
mapping-date-format,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-date-format.html
259259
mapping-meta-field,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-meta-field.html
260260
mapping-metadata,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-fields.html
261+
mapping-roles,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-roles.html
261262
mapping-settings-limit,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-settings-limit.html
262263
mapping-source-field,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-source-field.html
263264
mapping,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping.html
@@ -569,6 +570,8 @@ security-api-saml-logout,https://www.elastic.co/guide/en/elasticsearch/reference
569570
security-api-saml-prepare-authentication,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/security-api-saml-prepare-authentication.html
570571
security-api-saml-sp-metadata,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/security-api-saml-sp-metadata.html
571572
security-api-ssl,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/security-api-ssl.html
573+
security-privileges,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/security-privileges.html
574+
service-accounts,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/service-accounts.html
572575
set-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/set-processor.html
573576
shape,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/shape.html
574577
simulate-pipeline-api,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/simulate-pipeline-api.html

specification/security/activate_user_profile/Request.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ import { GrantType } from '@security/_types/GrantType'
2121
import { RequestBase } from '@_types/Base'
2222

2323
/**
24-
* Creates or updates a user profile on behalf of another user.
24+
* Activate a user profile.
25+
*
26+
* Create or update a user profile on behalf of another user.
2527
* @rest_spec_name security.activate_user_profile
2628
* @availability stack since=8.2.0 stability=stable
2729
* @availability serverless stability=stable visibility=private

specification/security/authenticate/SecurityAuthenticateRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base'
2121

2222
/**
2323
* Authenticate a user.
24+
*
2425
* Authenticates a user and returns information about the authenticated user.
2526
* Include the user information in a [basic auth header](https://en.wikipedia.org/wiki/Basic_access_authentication).
2627
* A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user.

specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import { RequestBase } from '@_types/Base'
2121
import { Refresh } from '@_types/common'
2222

2323
/**
24+
* Bulk delete roles.
25+
*
2426
* The role management APIs are generally the preferred way to manage roles, rather than using file-based role management.
2527
* The bulk delete roles API cannot delete roles that are defined in roles files.
2628
* @rest_spec_name security.bulk_delete_role

specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ import { RequestBase } from '@_types/Base'
2323
import { Refresh } from '@_types/common'
2424

2525
/**
26+
* Bulk create or update roles.
27+
*
2628
* The role management APIs are generally the preferred way to manage roles, rather than using file-based role management.
2729
* The bulk create or update roles API cannot update roles that are defined in roles files.
2830
* @rest_spec_name security.bulk_put_role

specification/security/change_password/SecurityChangePasswordRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ import { RequestBase } from '@_types/Base'
2121
import { Password, Refresh, Username } from '@_types/common'
2222

2323
/**
24+
* Change passwords.
25+
*
26+
* Change the passwords of users in the native realm and built-in users.
2427
* @rest_spec_name security.change_password
2528
* @availability stack stability=stable
2629
*/

specification/security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ import { RequestBase } from '@_types/Base'
2121
import { Ids } from '@_types/common'
2222

2323
/**
24-
* Evicts a subset of all entries from the API key cache.
24+
* Clear the API key cache.
25+
*
26+
* Evict a subset of all entries from the API key cache.
2527
* The cache is also automatically cleared on state changes of the security index.
2628
* @rest_spec_name security.clear_api_key_cache
2729
* @availability stack since=7.10.0 stability=stable

specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ import { RequestBase } from '@_types/Base'
2121
import { Name } from '@_types/common'
2222

2323
/**
24+
* Clear the privileges cache.
25+
*
26+
* Evict privileges from the native application privilege cache.
27+
* The cache is also automatically cleared for applications that have their privileges updated.
2428
* @rest_spec_name security.clear_cached_privileges
2529
* @availability stack since=7.9.0 stability=stable
2630
* @availability serverless stability=stable visibility=private

specification/security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ import { RequestBase } from '@_types/Base'
2121
import { Names } from '@_types/common'
2222

2323
/**
24+
* Clear the user cache.
25+
*
26+
* Evict users from the user cache. You can completely clear the cache or evict specific users.
2427
* @rest_spec_name security.clear_cached_realms
2528
* @availability stack stability=stable
2629
* @availability serverless stability=stable visibility=private

specification/security/clear_cached_roles/ClearCachedRolesRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ import { RequestBase } from '@_types/Base'
2121
import { Names } from '@_types/common'
2222

2323
/**
24+
* Clear the roles cache.
25+
*
26+
* Evict roles from the native role cache.
2427
* @rest_spec_name security.clear_cached_roles
2528
* @availability stack stability=stable
2629
* @availability serverless stability=stable visibility=private

specification/security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ import { RequestBase } from '@_types/Base'
2121
import { Names, Namespace, Service } from '@_types/common'
2222

2323
/**
24+
* Clear service account token caches.
25+
*
26+
* Evict a subset of all entries from the service account token caches.
2427
* @rest_spec_name security.clear_cached_service_tokens
2528
* @availability stack stability=stable
2629
* @availability serverless stability=stable visibility=private
30+
* @ext_doc_id service-accounts
2731
*/
2832
export interface Request extends RequestBase {
2933
path_parts: {

specification/security/create_api_key/SecurityCreateApiKeyRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ import { Duration } from '@_types/Time'
2525

2626
/**
2727
* Create an API key.
28-
* Creates an API key for access without requiring basic authentication.
28+
*
29+
* Create an API key for access without requiring basic authentication.
2930
* A successful request returns a JSON structure that contains the API key, its unique id, and its name.
3031
* If applicable, it also returns expiration information for the API key in milliseconds.
3132
* NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys.

specification/security/create_service_token/CreateServiceTokenRequest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ import { RequestBase } from '@_types/Base'
2121
import { Name, Namespace, Refresh, Service } from '@_types/common'
2222

2323
/**
24-
* Creates a service accounts token for access without requiring basic authentication.
24+
* Create a service account token.
25+
*
26+
* Create a service accounts token for access without requiring basic authentication.
2527
* @rest_spec_name security.create_service_token
2628
* @availability stack stability=stable
2729
* @availability serverless stability=stable visibility=private
30+
* @ext_doc_id service-accounts
2831
*/
2932
export interface Request extends RequestBase {
3033
path_parts: {

specification/security/delete_privileges/SecurityDeletePrivilegesRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ import { RequestBase } from '@_types/Base'
2121
import { Name, Names, Refresh } from '@_types/common'
2222

2323
/**
24+
* Delete application privileges.
2425
* @rest_spec_name security.delete_privileges
2526
* @availability stack since=6.4.0 stability=stable
2627
* @availability serverless stability=stable visibility=private
28+
* @ext_doc_id security-privileges
2729
*/
2830
export interface Request extends RequestBase {
2931
path_parts: {

specification/security/delete_role/SecurityDeleteRoleRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ import { RequestBase } from '@_types/Base'
2121
import { Name, Refresh } from '@_types/common'
2222

2323
/**
24+
* Delete roles.
25+
*
26+
* Delete roles in the native realm.
2427
* @rest_spec_name security.delete_role
2528
* @availability stack stability=stable
2629
* @availability serverless stability=stable visibility=private

specification/security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base'
2121
import { Name, Refresh } from '@_types/common'
2222

2323
/**
24+
* Delete role mappings.
2425
* @rest_spec_name security.delete_role_mapping
2526
* @availability stack since=5.5.0 stability=stable
2627
* @availability serverless stability=stable visibility=private

specification/security/delete_service_token/DeleteServiceTokenRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ import { RequestBase } from '@_types/Base'
2121
import { Name, Namespace, Refresh, Service } from '@_types/common'
2222

2323
/**
24+
* Delete service account tokens.
25+
*
26+
* Delete service account tokens for a service in a specified namespace.
2427
* @rest_spec_name security.delete_service_token
2528
* @availability stack since=5.5.0 stability=stable
2629
* @availability serverless stability=stable visibility=private
30+
* @ext_doc_id service-accounts
2731
*/
2832
export interface Request extends RequestBase {
2933
path_parts: {

specification/security/delete_user/SecurityDeleteUserRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ import { RequestBase } from '@_types/Base'
2121
import { Refresh, Username } from '@_types/common'
2222

2323
/**
24+
* Delete users.
25+
*
26+
* Delete users from the native realm.
2427
* @rest_spec_name security.delete_user
2528
* @availability stack stability=stable
2629
*/

specification/security/disable_user/SecurityDisableUserRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ import { RequestBase } from '@_types/Base'
2121
import { Refresh, Username } from '@_types/common'
2222

2323
/**
24+
* Disable users.
25+
*
26+
* Disable users in the native realm.
2427
* @rest_spec_name security.disable_user
2528
* @availability stack stability=stable
2629
*/

specification/security/disable_user_profile/Request.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ import { RequestBase } from '@_types/Base'
2222
import { Refresh } from '@_types/common'
2323

2424
/**
25-
* Disables a user profile so it's not visible in user profile searches.
25+
* Disable a user profile.
26+
*
27+
* Disable user profiles so that they are not visible in user profile searches.
2628
* @rest_spec_name security.disable_user_profile
2729
* @availability stack since=8.2.0 stability=stable
2830
* @availability serverless stability=stable visibility=private

specification/security/enable_user/SecurityEnableUserRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ import { RequestBase } from '@_types/Base'
2121
import { Refresh, Username } from '@_types/common'
2222

2323
/**
24+
* Enable users.
25+
*
26+
* Enable users in the native realm.
2427
* @rest_spec_name security.enable_user
2528
* @availability stack stability=stable
2629
*/

specification/security/enable_user_profile/Request.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ import { RequestBase } from '@_types/Base'
2222
import { Refresh } from '@_types/common'
2323

2424
/**
25-
* Enables a user profile so it's visible in user profile searches.
25+
* Enable a user profile.
26+
*
27+
* Enable user profiles to make them visible in user profile searches.
2628
* @rest_spec_name security.enable_user_profile
2729
* @availability stack since=8.2.0 stability=stable
2830
* @availability serverless stability=stable visibility=private

specification/security/enroll_kibana/Request.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
import { RequestBase } from '@_types/Base'
2121

2222
/**
23-
* Enables a Kibana instance to configure itself for communication with a secured Elasticsearch cluster.
23+
* Enroll Kibana.
24+
*
25+
* Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster.
2426
* @rest_spec_name security.enroll_kibana
2527
* @availability stack since=8.0.0 stability=stable
2628
*/

specification/security/enroll_node/Request.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
import { RequestBase } from '@_types/Base'
2121

2222
/**
23-
* Allows a new node to join an existing cluster with security features enabled.
23+
* Enroll a node.
24+
*
25+
* Enroll a new node to allow it to join an existing cluster with security features enabled.
2426
* @rest_spec_name security.enroll_node
2527
* @availability stack since=8.0.0 stability=stable
2628
*/

specification/security/get_api_key/SecurityGetApiKeyRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { Id, Name, Username } from '@_types/common'
2222

2323
/**
2424
* Get API key information.
25+
*
2526
* Retrieves information for one or more API keys.
2627
* NOTE: If you have only the `manage_own_api_key` privilege, this API returns only the API keys that you own.
2728
* If you have `read_security`, `manage_api_key` or greater privileges (including `manage_security`), this API returns all API keys regardless of ownership.

specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@
2020
import { RequestBase } from '@_types/Base'
2121

2222
/**
23+
* Get builtin privileges.
24+
*
25+
* Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch.
2326
* @rest_spec_name security.get_builtin_privileges
2427
* @availability stack since=7.3.0 stability=stable
2528
* @availability serverless stability=stable visibility=private
2629
* @cluster_privileges manage_security
30+
* @ext_doc_id security-privileges
2731
*/
2832
export interface Request extends RequestBase {}

specification/security/get_privileges/SecurityGetPrivilegesRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ import { RequestBase } from '@_types/Base'
2121
import { Name, Names } from '@_types/common'
2222

2323
/**
24+
* Get application privileges.
2425
* @rest_spec_name security.get_privileges
2526
* @availability stack since=6.4.0 stability=stable
2627
* @availability serverless stability=stable visibility=private
28+
* @ext_doc_id security-privileges
2729
*/
2830
export interface Request extends RequestBase {
2931
path_parts: {

specification/security/get_role/SecurityGetRoleRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ import { RequestBase } from '@_types/Base'
2121
import { Names } from '@_types/common'
2222

2323
/**
24+
* Get roles.
25+
*
26+
* Get roles in the native realm.
2427
* The role management APIs are generally the preferred way to manage roles, rather than using file-based role management.
2528
* The get roles API cannot retrieve roles that are defined in roles files.
2629
* @rest_spec_name security.get_role

specification/security/get_role_mapping/SecurityGetRoleMappingRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,16 @@ import { RequestBase } from '@_types/Base'
2121
import { Names } from '@_types/common'
2222

2323
/**
24+
* Get role mappings.
25+
*
26+
* Role mappings define which roles are assigned to each user.
27+
* The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files.
28+
* The get role mappings API cannot retrieve role mappings that are defined in role mapping files.
2429
* @rest_spec_name security.get_role_mapping
2530
* @availability stack since=5.5.0 stability=stable
2631
* @availability serverless stability=stable visibility=private
2732
* @cluster_privileges manage_security
33+
* @ext_doc_id mapping-roles
2834
*/
2935
export interface Request extends RequestBase {
3036
path_parts: {

specification/security/get_service_accounts/GetServiceAccountsRequest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@ import { RequestBase } from '@_types/Base'
2121
import { Namespace, Service } from '@_types/common'
2222

2323
/**
24-
* This API returns a list of service accounts that match the provided path parameter(s).
24+
* Get service accounts.
25+
*
26+
* Get a list of service accounts that match the provided path parameters.
2527
* @rest_spec_name security.get_service_accounts
2628
* @availability stack since=7.13.0 stability=stable
2729
* @availability serverless stability=stable visibility=private
2830
* @cluster_privileges manage_service_account
31+
* @ext_doc_id service-accounts
2932
*/
3033
export interface Request extends RequestBase {
3134
path_parts: {

specification/security/get_service_credentials/GetServiceCredentialsRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ import { RequestBase } from '@_types/Base'
2121
import { Name, Namespace } from '@_types/common'
2222

2323
/**
24+
* Get service account credentials.
2425
* @rest_spec_name security.get_service_credentials
2526
* @availability stack since=7.13.0 stability=stable
2627
* @availability serverless stability=stable visibility=private
28+
* @ext_doc_id service-accounts
2729
*/
2830
export interface Request extends RequestBase {
2931
path_parts: {

specification/security/get_token/GetUserAccessTokenRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ import { Password, Username } from '@_types/common'
2323
import { AccessTokenGrantType } from './types'
2424

2525
/**
26+
* Get a token.
27+
*
28+
* Create a bearer token for access without requiring basic authentication.
2629
* @rest_spec_name security.get_token
2730
* @availability stack since=5.5.0 stability=stable
2831
* @availability serverless stability=stable visibility=private

specification/security/get_user/SecurityGetUserRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ import { RequestBase } from '@_types/Base'
2121
import { Username } from '@_types/common'
2222

2323
/**
24+
* Get users.
25+
*
26+
* Get information about users in the native realm and built-in users.
2427
* @rest_spec_name security.get_user
2528
* @availability stack stability=stable
2629
*/

0 commit comments

Comments
 (0)