97 KiB
97 KiB
Security
Constructor
::: new Security(transport: Transport); :::
Properties
| Name | Type | Description |
|---|---|---|
acceptedParams |
Record<string, { path: string[]; body: string[]; query: string[]; }> | |
transport |
Transport |
Methods
| Name | Signature | Description |
|---|---|---|
activateUserProfile |
activateUserProfile(this: [That](./That.md), params: [SecurityActivateUserProfileRequest](./SecurityActivateUserProfileRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityActivateUserProfileResponse](./SecurityActivateUserProfileResponse.md)>; |
Activate a user profile. Create or update a user profile on behalf of another user. NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. The calling application must have either an access_token or a combination of username and password for the user that the profile document is intended for. Elastic reserves the right to change or remove this feature in future releases without prior notice. This API creates or updates a profile document for end users with information that is extracted from the user's authentication object including username, full_name, roles, and the authentication realm. For example, in the JWT access_token case, the profile user's username is extracted from the JWT token claim pointed to by the claims.principal setting of the JWT realm that authenticated the token. When updating a profile document, the API enables the document if it was disabled. Any updates do not change existing content for either the labels or data fields. |
activateUserProfile |
activateUserProfile(this: [That](./That.md), params: [SecurityActivateUserProfileRequest](./SecurityActivateUserProfileRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityActivateUserProfileResponse](./SecurityActivateUserProfileResponse.md), unknown>>; |
|
activateUserProfile |
activateUserProfile(this: [That](./That.md), params: [SecurityActivateUserProfileRequest](./SecurityActivateUserProfileRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityActivateUserProfileResponse](./SecurityActivateUserProfileResponse.md)>; |
|
authenticate |
authenticate(this: [That](./That.md), params?: [SecurityAuthenticateRequest](./SecurityAuthenticateRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityAuthenticateResponse](./SecurityAuthenticateResponse.md)>; |
Authenticate a user. Authenticates a user and returns information about the authenticated user. Include the user information in a basic auth header. 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. If the user cannot be authenticated, this API returns a 401 status code. |
authenticate |
authenticate(this: [That](./That.md), params?: [SecurityAuthenticateRequest](./SecurityAuthenticateRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityAuthenticateResponse](./SecurityAuthenticateResponse.md), unknown>>; |
|
authenticate |
authenticate(this: [That](./That.md), params?: [SecurityAuthenticateRequest](./SecurityAuthenticateRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityAuthenticateResponse](./SecurityAuthenticateResponse.md)>; |
|
bulkDeleteRole |
bulkDeleteRole(this: [That](./That.md), params: [SecurityBulkDeleteRoleRequest](./SecurityBulkDeleteRoleRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityBulkDeleteRoleResponse](./SecurityBulkDeleteRoleResponse.md)>; |
Bulk delete roles. The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The bulk delete roles API cannot delete roles that are defined in roles files. |
bulkDeleteRole |
bulkDeleteRole(this: [That](./That.md), params: [SecurityBulkDeleteRoleRequest](./SecurityBulkDeleteRoleRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityBulkDeleteRoleResponse](./SecurityBulkDeleteRoleResponse.md), unknown>>; |
|
bulkDeleteRole |
bulkDeleteRole(this: [That](./That.md), params: [SecurityBulkDeleteRoleRequest](./SecurityBulkDeleteRoleRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityBulkDeleteRoleResponse](./SecurityBulkDeleteRoleResponse.md)>; |
|
bulkPutRole |
bulkPutRole(this: [That](./That.md), params: [SecurityBulkPutRoleRequest](./SecurityBulkPutRoleRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityBulkPutRoleResponse](./SecurityBulkPutRoleResponse.md)>; |
Bulk create or update roles. The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The bulk create or update roles API cannot update roles that are defined in roles files. |
bulkPutRole |
bulkPutRole(this: [That](./That.md), params: [SecurityBulkPutRoleRequest](./SecurityBulkPutRoleRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityBulkPutRoleResponse](./SecurityBulkPutRoleResponse.md), unknown>>; |
|
bulkPutRole |
bulkPutRole(this: [That](./That.md), params: [SecurityBulkPutRoleRequest](./SecurityBulkPutRoleRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityBulkPutRoleResponse](./SecurityBulkPutRoleResponse.md)>; |
|
bulkUpdateApiKeys |
bulkUpdateApiKeys(this: [That](./That.md), params: [SecurityBulkUpdateApiKeysRequest](./SecurityBulkUpdateApiKeysRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityBulkUpdateApiKeysResponse](./SecurityBulkUpdateApiKeysResponse.md)>; |
Bulk update API keys. Update the attributes for multiple API keys. IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. It is not possible to update expired or invalidated API keys. This API supports updates to API key access scope, metadata and expiration. The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. The snapshot of the owner's permissions is updated automatically on every call. IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. |
bulkUpdateApiKeys |
bulkUpdateApiKeys(this: [That](./That.md), params: [SecurityBulkUpdateApiKeysRequest](./SecurityBulkUpdateApiKeysRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityBulkUpdateApiKeysResponse](./SecurityBulkUpdateApiKeysResponse.md), unknown>>; |
|
bulkUpdateApiKeys |
bulkUpdateApiKeys(this: [That](./That.md), params: [SecurityBulkUpdateApiKeysRequest](./SecurityBulkUpdateApiKeysRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityBulkUpdateApiKeysResponse](./SecurityBulkUpdateApiKeysResponse.md)>; |
|
changePassword |
changePassword(this: [That](./That.md), params?: [SecurityChangePasswordRequest](./SecurityChangePasswordRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityChangePasswordResponse](./SecurityChangePasswordResponse.md)>; |
Change passwords. Change the passwords of users in the native realm and built-in users. |
changePassword |
changePassword(this: [That](./That.md), params?: [SecurityChangePasswordRequest](./SecurityChangePasswordRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityChangePasswordResponse](./SecurityChangePasswordResponse.md), unknown>>; |
|
changePassword |
changePassword(this: [That](./That.md), params?: [SecurityChangePasswordRequest](./SecurityChangePasswordRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityChangePasswordResponse](./SecurityChangePasswordResponse.md)>; |
|
clearApiKeyCache |
clearApiKeyCache(this: [That](./That.md), params: [SecurityClearApiKeyCacheRequest](./SecurityClearApiKeyCacheRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityClearApiKeyCacheResponse](./SecurityClearApiKeyCacheResponse.md)>; |
Clear the API key cache. Evict a subset of all entries from the API key cache. The cache is also automatically cleared on state changes of the security index. |
clearApiKeyCache |
clearApiKeyCache(this: [That](./That.md), params: [SecurityClearApiKeyCacheRequest](./SecurityClearApiKeyCacheRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityClearApiKeyCacheResponse](./SecurityClearApiKeyCacheResponse.md), unknown>>; |
|
clearApiKeyCache |
clearApiKeyCache(this: [That](./That.md), params: [SecurityClearApiKeyCacheRequest](./SecurityClearApiKeyCacheRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityClearApiKeyCacheResponse](./SecurityClearApiKeyCacheResponse.md)>; |
|
clearCachedPrivileges |
clearCachedPrivileges(this: [That](./That.md), params: [SecurityClearCachedPrivilegesRequest](./SecurityClearCachedPrivilegesRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityClearCachedPrivilegesResponse](./SecurityClearCachedPrivilegesResponse.md)>; |
Clear the privileges cache. Evict privileges from the native application privilege cache. The cache is also automatically cleared for applications that have their privileges updated. |
clearCachedPrivileges |
clearCachedPrivileges(this: [That](./That.md), params: [SecurityClearCachedPrivilegesRequest](./SecurityClearCachedPrivilegesRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityClearCachedPrivilegesResponse](./SecurityClearCachedPrivilegesResponse.md), unknown>>; |
|
clearCachedPrivileges |
clearCachedPrivileges(this: [That](./That.md), params: [SecurityClearCachedPrivilegesRequest](./SecurityClearCachedPrivilegesRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityClearCachedPrivilegesResponse](./SecurityClearCachedPrivilegesResponse.md)>; |
|
clearCachedRealms |
clearCachedRealms(this: [That](./That.md), params: [SecurityClearCachedRealmsRequest](./SecurityClearCachedRealmsRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityClearCachedRealmsResponse](./SecurityClearCachedRealmsResponse.md)>; |
Clear the user cache. Evict users from the user cache. You can completely clear the cache or evict specific users. User credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request. There are realm settings that you can use to configure the user cache. For more information, refer to the documentation about controlling the user cache. |
clearCachedRealms |
clearCachedRealms(this: [That](./That.md), params: [SecurityClearCachedRealmsRequest](./SecurityClearCachedRealmsRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityClearCachedRealmsResponse](./SecurityClearCachedRealmsResponse.md), unknown>>; |
|
clearCachedRealms |
clearCachedRealms(this: [That](./That.md), params: [SecurityClearCachedRealmsRequest](./SecurityClearCachedRealmsRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityClearCachedRealmsResponse](./SecurityClearCachedRealmsResponse.md)>; |
|
clearCachedRoles |
clearCachedRoles(this: [That](./That.md), params: [SecurityClearCachedRolesRequest](./SecurityClearCachedRolesRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityClearCachedRolesResponse](./SecurityClearCachedRolesResponse.md)>; |
Clear the roles cache. Evict roles from the native role cache. |
clearCachedRoles |
clearCachedRoles(this: [That](./That.md), params: [SecurityClearCachedRolesRequest](./SecurityClearCachedRolesRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityClearCachedRolesResponse](./SecurityClearCachedRolesResponse.md), unknown>>; |
|
clearCachedRoles |
clearCachedRoles(this: [That](./That.md), params: [SecurityClearCachedRolesRequest](./SecurityClearCachedRolesRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityClearCachedRolesResponse](./SecurityClearCachedRolesResponse.md)>; |
|
clearCachedServiceTokens |
clearCachedServiceTokens(this: [That](./That.md), params: [SecurityClearCachedServiceTokensRequest](./SecurityClearCachedServiceTokensRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityClearCachedServiceTokensResponse](./SecurityClearCachedServiceTokensResponse.md)>; |
Clear service account token caches. Evict a subset of all entries from the service account token caches. Two separate caches exist for service account tokens: one cache for tokens backed by the service_tokens file, and another for tokens backed by the .security index. This API clears matching entries from both caches. The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. The cache for tokens backed by the service_tokens file is cleared automatically on file changes. |
clearCachedServiceTokens |
clearCachedServiceTokens(this: [That](./That.md), params: [SecurityClearCachedServiceTokensRequest](./SecurityClearCachedServiceTokensRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityClearCachedServiceTokensResponse](./SecurityClearCachedServiceTokensResponse.md), unknown>>; |
|
clearCachedServiceTokens |
clearCachedServiceTokens(this: [That](./That.md), params: [SecurityClearCachedServiceTokensRequest](./SecurityClearCachedServiceTokensRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityClearCachedServiceTokensResponse](./SecurityClearCachedServiceTokensResponse.md)>; |
|
createApiKey |
createApiKey(this: [That](./That.md), params?: [SecurityCreateApiKeyRequest](./SecurityCreateApiKeyRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityCreateApiKeyResponse](./SecurityCreateApiKeyResponse.md)>; |
Create an API key. Create an API key for access without requiring basic authentication. IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. If you specify privileges, the API returns an error. A successful request returns a JSON structure that contains the API key, its unique id, and its name. If applicable, it also returns expiration information for the API key in milliseconds. NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. The API keys are created by the Elasticsearch API key service, which is automatically enabled. To configure or turn off the API key service, refer to API key service setting documentation. |
createApiKey |
createApiKey(this: [That](./That.md), params?: [SecurityCreateApiKeyRequest](./SecurityCreateApiKeyRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityCreateApiKeyResponse](./SecurityCreateApiKeyResponse.md), unknown>>; |
|
createApiKey |
createApiKey(this: [That](./That.md), params?: [SecurityCreateApiKeyRequest](./SecurityCreateApiKeyRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityCreateApiKeyResponse](./SecurityCreateApiKeyResponse.md)>; |
|
createCrossClusterApiKey |
createCrossClusterApiKey(this: [That](./That.md), params: [SecurityCreateCrossClusterApiKeyRequest](./SecurityCreateCrossClusterApiKeyRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityCreateCrossClusterApiKeyResponse](./SecurityCreateCrossClusterApiKeyResponse.md)>; |
Create a cross-cluster API key. Create an API key of the cross_cluster type for the API key based remote cluster access. A cross_cluster API key cannot be used to authenticate through the REST interface. IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. By default, API keys never expire. You can specify expiration information when you create the API keys. Cross-cluster API keys can only be updated with the update cross-cluster API key API. Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. |
createCrossClusterApiKey |
createCrossClusterApiKey(this: [That](./That.md), params: [SecurityCreateCrossClusterApiKeyRequest](./SecurityCreateCrossClusterApiKeyRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityCreateCrossClusterApiKeyResponse](./SecurityCreateCrossClusterApiKeyResponse.md), unknown>>; |
|
createCrossClusterApiKey |
createCrossClusterApiKey(this: [That](./That.md), params: [SecurityCreateCrossClusterApiKeyRequest](./SecurityCreateCrossClusterApiKeyRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityCreateCrossClusterApiKeyResponse](./SecurityCreateCrossClusterApiKeyResponse.md)>; |
|
createServiceToken |
createServiceToken(this: [That](./That.md), params: [SecurityCreateServiceTokenRequest](./SecurityCreateServiceTokenRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityCreateServiceTokenResponse](./SecurityCreateServiceTokenResponse.md)>; |
Create a service account token. Create a service accounts token for access without requiring basic authentication. NOTE: Service account tokens never expire. You must actively delete them if they are no longer needed. |
createServiceToken |
createServiceToken(this: [That](./That.md), params: [SecurityCreateServiceTokenRequest](./SecurityCreateServiceTokenRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityCreateServiceTokenResponse](./SecurityCreateServiceTokenResponse.md), unknown>>; |
|
createServiceToken |
createServiceToken(this: [That](./That.md), params: [SecurityCreateServiceTokenRequest](./SecurityCreateServiceTokenRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityCreateServiceTokenResponse](./SecurityCreateServiceTokenResponse.md)>; |
|
delegatePki |
delegatePki(this: [That](./That.md), params: [SecurityDelegatePkiRequest](./SecurityDelegatePkiRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityDelegatePkiResponse](./SecurityDelegatePkiResponse.md)>; |
Delegate PKI authentication. This API implements the exchange of an X509Certificate chain for an Elasticsearch access token. The certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has delegation.enabled set to true. A successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw username_pattern of the respective realm. This API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-as if the user connected directly to Elasticsearch. IMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated. This is part of the TLS authentication process and it is delegated to the proxy that calls this API. The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. |
delegatePki |
delegatePki(this: [That](./That.md), params: [SecurityDelegatePkiRequest](./SecurityDelegatePkiRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityDelegatePkiResponse](./SecurityDelegatePkiResponse.md), unknown>>; |
|
delegatePki |
delegatePki(this: [That](./That.md), params: [SecurityDelegatePkiRequest](./SecurityDelegatePkiRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityDelegatePkiResponse](./SecurityDelegatePkiResponse.md)>; |
|
deletePrivileges |
deletePrivileges(this: [That](./That.md), params: [SecurityDeletePrivilegesRequest](./SecurityDeletePrivilegesRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityDeletePrivilegesResponse](./SecurityDeletePrivilegesResponse.md)>; |
Delete application privileges. To use this API, you must have one of the following privileges: * The manage_security cluster privilege (or a greater privilege such as all). * The "Manage Application Privileges" global privilege for the application being referenced in the request. |
deletePrivileges |
deletePrivileges(this: [That](./That.md), params: [SecurityDeletePrivilegesRequest](./SecurityDeletePrivilegesRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityDeletePrivilegesResponse](./SecurityDeletePrivilegesResponse.md), unknown>>; |
|
deletePrivileges |
deletePrivileges(this: [That](./That.md), params: [SecurityDeletePrivilegesRequest](./SecurityDeletePrivilegesRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityDeletePrivilegesResponse](./SecurityDeletePrivilegesResponse.md)>; |
|
deleteRole |
deleteRole(this: [That](./That.md), params: [SecurityDeleteRoleRequest](./SecurityDeleteRoleRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityDeleteRoleResponse](./SecurityDeleteRoleResponse.md)>; |
Delete roles. Delete roles in the native realm. The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The delete roles API cannot remove roles that are defined in roles files. |
deleteRole |
deleteRole(this: [That](./That.md), params: [SecurityDeleteRoleRequest](./SecurityDeleteRoleRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityDeleteRoleResponse](./SecurityDeleteRoleResponse.md), unknown>>; |
|
deleteRole |
deleteRole(this: [That](./That.md), params: [SecurityDeleteRoleRequest](./SecurityDeleteRoleRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityDeleteRoleResponse](./SecurityDeleteRoleResponse.md)>; |
|
deleteRoleMapping |
deleteRoleMapping(this: [That](./That.md), params: [SecurityDeleteRoleMappingRequest](./SecurityDeleteRoleMappingRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityDeleteRoleMappingResponse](./SecurityDeleteRoleMappingResponse.md)>; |
Delete role mappings. Role mappings define which roles are assigned to each user. The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The delete role mappings API cannot remove role mappings that are defined in role mapping files. |
deleteRoleMapping |
deleteRoleMapping(this: [That](./That.md), params: [SecurityDeleteRoleMappingRequest](./SecurityDeleteRoleMappingRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityDeleteRoleMappingResponse](./SecurityDeleteRoleMappingResponse.md), unknown>>; |
|
deleteRoleMapping |
deleteRoleMapping(this: [That](./That.md), params: [SecurityDeleteRoleMappingRequest](./SecurityDeleteRoleMappingRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityDeleteRoleMappingResponse](./SecurityDeleteRoleMappingResponse.md)>; |
|
deleteServiceToken |
deleteServiceToken(this: [That](./That.md), params: [SecurityDeleteServiceTokenRequest](./SecurityDeleteServiceTokenRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityDeleteServiceTokenResponse](./SecurityDeleteServiceTokenResponse.md)>; |
Delete service account tokens. Delete service account tokens for a service in a specified namespace. |
deleteServiceToken |
deleteServiceToken(this: [That](./That.md), params: [SecurityDeleteServiceTokenRequest](./SecurityDeleteServiceTokenRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityDeleteServiceTokenResponse](./SecurityDeleteServiceTokenResponse.md), unknown>>; |
|
deleteServiceToken |
deleteServiceToken(this: [That](./That.md), params: [SecurityDeleteServiceTokenRequest](./SecurityDeleteServiceTokenRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityDeleteServiceTokenResponse](./SecurityDeleteServiceTokenResponse.md)>; |
|
deleteUser |
deleteUser(this: [That](./That.md), params: [SecurityDeleteUserRequest](./SecurityDeleteUserRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityDeleteUserResponse](./SecurityDeleteUserResponse.md)>; |
Delete users. Delete users from the native realm. |
deleteUser |
deleteUser(this: [That](./That.md), params: [SecurityDeleteUserRequest](./SecurityDeleteUserRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityDeleteUserResponse](./SecurityDeleteUserResponse.md), unknown>>; |
|
deleteUser |
deleteUser(this: [That](./That.md), params: [SecurityDeleteUserRequest](./SecurityDeleteUserRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityDeleteUserResponse](./SecurityDeleteUserResponse.md)>; |
|
disableUser |
disableUser(this: [That](./That.md), params: [SecurityDisableUserRequest](./SecurityDisableUserRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityDisableUserResponse](./SecurityDisableUserResponse.md)>; |
Disable users. Disable users in the native realm. By default, when you create users, they are enabled. You can use this API to revoke a user's access to Elasticsearch. |
disableUser |
disableUser(this: [That](./That.md), params: [SecurityDisableUserRequest](./SecurityDisableUserRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityDisableUserResponse](./SecurityDisableUserResponse.md), unknown>>; |
|
disableUser |
disableUser(this: [That](./That.md), params: [SecurityDisableUserRequest](./SecurityDisableUserRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityDisableUserResponse](./SecurityDisableUserResponse.md)>; |
|
disableUserProfile |
disableUserProfile(this: [That](./That.md), params: [SecurityDisableUserProfileRequest](./SecurityDisableUserProfileRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityDisableUserProfileResponse](./SecurityDisableUserProfileResponse.md)>; |
Disable a user profile. Disable user profiles so that they are not visible in user profile searches. NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. Elastic reserves the right to change or remove this feature in future releases without prior notice. When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. To re-enable a disabled user profile, use the enable user profile API . |
disableUserProfile |
disableUserProfile(this: [That](./That.md), params: [SecurityDisableUserProfileRequest](./SecurityDisableUserProfileRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityDisableUserProfileResponse](./SecurityDisableUserProfileResponse.md), unknown>>; |
|
disableUserProfile |
disableUserProfile(this: [That](./That.md), params: [SecurityDisableUserProfileRequest](./SecurityDisableUserProfileRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityDisableUserProfileResponse](./SecurityDisableUserProfileResponse.md)>; |
|
enableUser |
enableUser(this: [That](./That.md), params: [SecurityEnableUserRequest](./SecurityEnableUserRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityEnableUserResponse](./SecurityEnableUserResponse.md)>; |
Enable users. Enable users in the native realm. By default, when you create users, they are enabled. |
enableUser |
enableUser(this: [That](./That.md), params: [SecurityEnableUserRequest](./SecurityEnableUserRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityEnableUserResponse](./SecurityEnableUserResponse.md), unknown>>; |
|
enableUser |
enableUser(this: [That](./That.md), params: [SecurityEnableUserRequest](./SecurityEnableUserRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityEnableUserResponse](./SecurityEnableUserResponse.md)>; |
|
enableUserProfile |
enableUserProfile(this: [That](./That.md), params: [SecurityEnableUserProfileRequest](./SecurityEnableUserProfileRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityEnableUserProfileResponse](./SecurityEnableUserProfileResponse.md)>; |
Enable a user profile. Enable user profiles to make them visible in user profile searches. NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. Elastic reserves the right to change or remove this feature in future releases without prior notice. When you activate a user profile, it's automatically enabled and visible in user profile searches. If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. |
enableUserProfile |
enableUserProfile(this: [That](./That.md), params: [SecurityEnableUserProfileRequest](./SecurityEnableUserProfileRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityEnableUserProfileResponse](./SecurityEnableUserProfileResponse.md), unknown>>; |
|
enableUserProfile |
enableUserProfile(this: [That](./That.md), params: [SecurityEnableUserProfileRequest](./SecurityEnableUserProfileRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityEnableUserProfileResponse](./SecurityEnableUserProfileResponse.md)>; |
|
enrollKibana |
enrollKibana(this: [That](./That.md), params?: [SecurityEnrollKibanaRequest](./SecurityEnrollKibanaRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityEnrollKibanaResponse](./SecurityEnrollKibanaResponse.md)>; |
Enroll Kibana. Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. NOTE: This API is currently intended for internal use only by Kibana. Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. |
enrollKibana |
enrollKibana(this: [That](./That.md), params?: [SecurityEnrollKibanaRequest](./SecurityEnrollKibanaRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityEnrollKibanaResponse](./SecurityEnrollKibanaResponse.md), unknown>>; |
|
enrollKibana |
enrollKibana(this: [That](./That.md), params?: [SecurityEnrollKibanaRequest](./SecurityEnrollKibanaRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityEnrollKibanaResponse](./SecurityEnrollKibanaResponse.md)>; |
|
enrollNode |
enrollNode(this: [That](./That.md), params?: [SecurityEnrollNodeRequest](./SecurityEnrollNodeRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityEnrollNodeResponse](./SecurityEnrollNodeResponse.md)>; |
Enroll a node. Enroll a new node to allow it to join an existing cluster with security features enabled. The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. |
enrollNode |
enrollNode(this: [That](./That.md), params?: [SecurityEnrollNodeRequest](./SecurityEnrollNodeRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityEnrollNodeResponse](./SecurityEnrollNodeResponse.md), unknown>>; |
|
enrollNode |
enrollNode(this: [That](./That.md), params?: [SecurityEnrollNodeRequest](./SecurityEnrollNodeRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityEnrollNodeResponse](./SecurityEnrollNodeResponse.md)>; |
|
getApiKey |
getApiKey(this: [That](./That.md), params?: [SecurityGetApiKeyRequest](./SecurityGetApiKeyRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityGetApiKeyResponse](./SecurityGetApiKeyResponse.md)>; |
Get API key information. Retrieves information for one or more API keys. NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. |
getApiKey |
getApiKey(this: [That](./That.md), params?: [SecurityGetApiKeyRequest](./SecurityGetApiKeyRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityGetApiKeyResponse](./SecurityGetApiKeyResponse.md), unknown>>; |
|
getApiKey |
getApiKey(this: [That](./That.md), params?: [SecurityGetApiKeyRequest](./SecurityGetApiKeyRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityGetApiKeyResponse](./SecurityGetApiKeyResponse.md)>; |
|
getBuiltinPrivileges |
getBuiltinPrivileges(this: [That](./That.md), params?: [SecurityGetBuiltinPrivilegesRequest](./SecurityGetBuiltinPrivilegesRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityGetBuiltinPrivilegesResponse](./SecurityGetBuiltinPrivilegesResponse.md)>; |
Get builtin privileges. Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. |
getBuiltinPrivileges |
getBuiltinPrivileges(this: [That](./That.md), params?: [SecurityGetBuiltinPrivilegesRequest](./SecurityGetBuiltinPrivilegesRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityGetBuiltinPrivilegesResponse](./SecurityGetBuiltinPrivilegesResponse.md), unknown>>; |
|
getBuiltinPrivileges |
getBuiltinPrivileges(this: [That](./That.md), params?: [SecurityGetBuiltinPrivilegesRequest](./SecurityGetBuiltinPrivilegesRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityGetBuiltinPrivilegesResponse](./SecurityGetBuiltinPrivilegesResponse.md)>; |
|
getPrivileges |
getPrivileges(this: [That](./That.md), params?: [SecurityGetPrivilegesRequest](./SecurityGetPrivilegesRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityGetPrivilegesResponse](./SecurityGetPrivilegesResponse.md)>; |
Get application privileges. To use this API, you must have one of the following privileges: * The read_security cluster privilege (or a greater privilege such as manage_security or all). * The "Manage Application Privileges" global privilege for the application being referenced in the request. |
getPrivileges |
getPrivileges(this: [That](./That.md), params?: [SecurityGetPrivilegesRequest](./SecurityGetPrivilegesRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityGetPrivilegesResponse](./SecurityGetPrivilegesResponse.md), unknown>>; |
|
getPrivileges |
getPrivileges(this: [That](./That.md), params?: [SecurityGetPrivilegesRequest](./SecurityGetPrivilegesRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityGetPrivilegesResponse](./SecurityGetPrivilegesResponse.md)>; |
|
getRole |
getRole(this: [That](./That.md), params?: [SecurityGetRoleRequest](./SecurityGetRoleRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityGetRoleResponse](./SecurityGetRoleResponse.md)>; |
Get roles. Get roles in the native realm. The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The get roles API cannot retrieve roles that are defined in roles files. |
getRole |
getRole(this: [That](./That.md), params?: [SecurityGetRoleRequest](./SecurityGetRoleRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityGetRoleResponse](./SecurityGetRoleResponse.md), unknown>>; |
|
getRole |
getRole(this: [That](./That.md), params?: [SecurityGetRoleRequest](./SecurityGetRoleRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityGetRoleResponse](./SecurityGetRoleResponse.md)>; |
|
getRoleMapping |
getRoleMapping(this: [That](./That.md), params?: [SecurityGetRoleMappingRequest](./SecurityGetRoleMappingRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityGetRoleMappingResponse](./SecurityGetRoleMappingResponse.md)>; |
Get role mappings. Role mappings define which roles are assigned to each user. The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The get role mappings API cannot retrieve role mappings that are defined in role mapping files. |
getRoleMapping |
getRoleMapping(this: [That](./That.md), params?: [SecurityGetRoleMappingRequest](./SecurityGetRoleMappingRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityGetRoleMappingResponse](./SecurityGetRoleMappingResponse.md), unknown>>; |
|
getRoleMapping |
getRoleMapping(this: [That](./That.md), params?: [SecurityGetRoleMappingRequest](./SecurityGetRoleMappingRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityGetRoleMappingResponse](./SecurityGetRoleMappingResponse.md)>; |
|
getServiceAccounts |
getServiceAccounts(this: [That](./That.md), params?: [SecurityGetServiceAccountsRequest](./SecurityGetServiceAccountsRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityGetServiceAccountsResponse](./SecurityGetServiceAccountsResponse.md)>; |
Get service accounts. Get a list of service accounts that match the provided path parameters. NOTE: Currently, only the elastic/fleet-server service account is available. |
getServiceAccounts |
getServiceAccounts(this: [That](./That.md), params?: [SecurityGetServiceAccountsRequest](./SecurityGetServiceAccountsRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityGetServiceAccountsResponse](./SecurityGetServiceAccountsResponse.md), unknown>>; |
|
getServiceAccounts |
getServiceAccounts(this: [That](./That.md), params?: [SecurityGetServiceAccountsRequest](./SecurityGetServiceAccountsRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityGetServiceAccountsResponse](./SecurityGetServiceAccountsResponse.md)>; |
|
getServiceCredentials |
getServiceCredentials(this: [That](./That.md), params: [SecurityGetServiceCredentialsRequest](./SecurityGetServiceCredentialsRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityGetServiceCredentialsResponse](./SecurityGetServiceCredentialsResponse.md)>; |
Get service account credentials. To use this API, you must have at least the read_security cluster privilege (or a greater privilege such as manage_service_account or manage_security). The response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster. NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. |
getServiceCredentials |
getServiceCredentials(this: [That](./That.md), params: [SecurityGetServiceCredentialsRequest](./SecurityGetServiceCredentialsRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityGetServiceCredentialsResponse](./SecurityGetServiceCredentialsResponse.md), unknown>>; |
|
getServiceCredentials |
getServiceCredentials(this: [That](./That.md), params: [SecurityGetServiceCredentialsRequest](./SecurityGetServiceCredentialsRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityGetServiceCredentialsResponse](./SecurityGetServiceCredentialsResponse.md)>; |
|
getSettings |
getSettings(this: [That](./That.md), params?: [SecurityGetSettingsRequest](./SecurityGetSettingsRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityGetSettingsResponse](./SecurityGetSettingsResponse.md)>; |
Get security index settings. Get 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 |
getSettings |
getSettings(this: [That](./That.md), params?: [SecurityGetSettingsRequest](./SecurityGetSettingsRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityGetSettingsResponse](./SecurityGetSettingsResponse.md), unknown>>; |
|
getSettings |
getSettings(this: [That](./That.md), params?: [SecurityGetSettingsRequest](./SecurityGetSettingsRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityGetSettingsResponse](./SecurityGetSettingsResponse.md)>; |
|
getToken |
getToken(this: [That](./That.md), params?: [SecurityGetTokenRequest](./SecurityGetTokenRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityGetTokenResponse](./SecurityGetTokenResponse.md)>; |
Get a token. Create a bearer token for access without requiring basic authentication. The tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface. Alternatively, you can explicitly enable the xpack.security.authc.token.enabled setting. When you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface. The get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body. A successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available. The tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used. That time period is defined by the xpack.security.authc.token.timeout setting. If you want to invalidate a token immediately, you can do so by using the invalidate token API. |
getToken |
getToken(this: [That](./That.md), params?: [SecurityGetTokenRequest](./SecurityGetTokenRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityGetTokenResponse](./SecurityGetTokenResponse.md), unknown>>; |
|
getToken |
getToken(this: [That](./That.md), params?: [SecurityGetTokenRequest](./SecurityGetTokenRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityGetTokenResponse](./SecurityGetTokenResponse.md)>; |
|
getUser |
getUser(this: [That](./That.md), params?: [SecurityGetUserRequest](./SecurityGetUserRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityGetUserResponse](./SecurityGetUserResponse.md)>; |
Get users. Get information about users in the native realm and built-in users. |
getUser |
getUser(this: [That](./That.md), params?: [SecurityGetUserRequest](./SecurityGetUserRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityGetUserResponse](./SecurityGetUserResponse.md), unknown>>; |
|
getUser |
getUser(this: [That](./That.md), params?: [SecurityGetUserRequest](./SecurityGetUserRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityGetUserResponse](./SecurityGetUserResponse.md)>; |
|
getUserPrivileges |
getUserPrivileges(this: [That](./That.md), params?: [SecurityGetUserPrivilegesRequest](./SecurityGetUserPrivilegesRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityGetUserPrivilegesResponse](./SecurityGetUserPrivilegesResponse.md)>; |
Get user privileges. Get the security privileges for the logged in user. All users can use this API, but only to determine their own privileges. To check the privileges of other users, you must use the run as feature. To check whether a user has a specific list of privileges, use the has privileges API. |
getUserPrivileges |
getUserPrivileges(this: [That](./That.md), params?: [SecurityGetUserPrivilegesRequest](./SecurityGetUserPrivilegesRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityGetUserPrivilegesResponse](./SecurityGetUserPrivilegesResponse.md), unknown>>; |
|
getUserPrivileges |
getUserPrivileges(this: [That](./That.md), params?: [SecurityGetUserPrivilegesRequest](./SecurityGetUserPrivilegesRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityGetUserPrivilegesResponse](./SecurityGetUserPrivilegesResponse.md)>; |
|
getUserProfile |
getUserProfile(this: [That](./That.md), params: [SecurityGetUserProfileRequest](./SecurityGetUserProfileRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityGetUserProfileResponse](./SecurityGetUserProfileResponse.md)>; |
Get a user profile. Get a user's profile using the unique profile ID. NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. Elastic reserves the right to change or remove this feature in future releases without prior notice. |
getUserProfile |
getUserProfile(this: [That](./That.md), params: [SecurityGetUserProfileRequest](./SecurityGetUserProfileRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityGetUserProfileResponse](./SecurityGetUserProfileResponse.md), unknown>>; |
|
getUserProfile |
getUserProfile(this: [That](./That.md), params: [SecurityGetUserProfileRequest](./SecurityGetUserProfileRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityGetUserProfileResponse](./SecurityGetUserProfileResponse.md)>; |
|
grantApiKey |
grantApiKey(this: [That](./That.md), params: [SecurityGrantApiKeyRequest](./SecurityGrantApiKeyRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityGrantApiKeyResponse](./SecurityGrantApiKeyResponse.md)>; |
Grant an API key. Create an API key on behalf of another user. This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. The caller must have authentication credentials for the user on whose behalf the API key will be created. It is not possible to use this API to create an API key without that user's credentials. The supported user authentication credential types are: * username and password * Elasticsearch access tokens * JWTs The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. In this case, the API key will be created on behalf of the impersonated user. This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. The API keys are created by the Elasticsearch API key service, which is automatically enabled. A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. If applicable, it also returns expiration information for the API key in milliseconds. By default, API keys never expire. You can specify expiration information when you create the API keys. |
grantApiKey |
grantApiKey(this: [That](./That.md), params: [SecurityGrantApiKeyRequest](./SecurityGrantApiKeyRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityGrantApiKeyResponse](./SecurityGrantApiKeyResponse.md), unknown>>; |
|
grantApiKey |
grantApiKey(this: [That](./That.md), params: [SecurityGrantApiKeyRequest](./SecurityGrantApiKeyRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityGrantApiKeyResponse](./SecurityGrantApiKeyResponse.md)>; |
|
hasPrivileges |
hasPrivileges(this: [That](./That.md), params?: [SecurityHasPrivilegesRequest](./SecurityHasPrivilegesRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityHasPrivilegesResponse](./SecurityHasPrivilegesResponse.md)>; |
Check user privileges. Determine whether the specified user has a specified list of privileges. All users can use this API, but only to determine their own privileges. To check the privileges of other users, you must use the run as feature. |
hasPrivileges |
hasPrivileges(this: [That](./That.md), params?: [SecurityHasPrivilegesRequest](./SecurityHasPrivilegesRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityHasPrivilegesResponse](./SecurityHasPrivilegesResponse.md), unknown>>; |
|
hasPrivileges |
hasPrivileges(this: [That](./That.md), params?: [SecurityHasPrivilegesRequest](./SecurityHasPrivilegesRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityHasPrivilegesResponse](./SecurityHasPrivilegesResponse.md)>; |
|
hasPrivilegesUserProfile |
hasPrivilegesUserProfile(this: [That](./That.md), params: [SecurityHasPrivilegesUserProfileRequest](./SecurityHasPrivilegesUserProfileRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityHasPrivilegesUserProfileResponse](./SecurityHasPrivilegesUserProfileResponse.md)>; |
Check user profile privileges. Determine whether the users associated with the specified user profile IDs have all the requested privileges. NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. Elastic reserves the right to change or remove this feature in future releases without prior notice. |
hasPrivilegesUserProfile |
hasPrivilegesUserProfile(this: [That](./That.md), params: [SecurityHasPrivilegesUserProfileRequest](./SecurityHasPrivilegesUserProfileRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityHasPrivilegesUserProfileResponse](./SecurityHasPrivilegesUserProfileResponse.md), unknown>>; |
|
hasPrivilegesUserProfile |
hasPrivilegesUserProfile(this: [That](./That.md), params: [SecurityHasPrivilegesUserProfileRequest](./SecurityHasPrivilegesUserProfileRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityHasPrivilegesUserProfileResponse](./SecurityHasPrivilegesUserProfileResponse.md)>; |
|
invalidateApiKey |
invalidateApiKey(this: [That](./That.md), params?: [SecurityInvalidateApiKeyRequest](./SecurityInvalidateApiKeyRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityInvalidateApiKeyResponse](./SecurityInvalidateApiKeyResponse.md)>; |
Invalidate API keys. This API invalidates API keys created by the create API key or grant API key APIs. Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. To use this API, you must have at least the manage_security, manage_api_key, or manage_own_api_key cluster privileges. The manage_security privilege allows deleting any API key, including both REST and cross cluster API keys. The manage_api_key privilege allows deleting any REST API key, but not cross cluster API keys. The manage_own_api_key only allows deleting REST API keys that are owned by the user. In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: - Set the parameter owner=true. - Or, set both username and realm_name to match the user's identity. - Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. |
invalidateApiKey |
invalidateApiKey(this: [That](./That.md), params?: [SecurityInvalidateApiKeyRequest](./SecurityInvalidateApiKeyRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityInvalidateApiKeyResponse](./SecurityInvalidateApiKeyResponse.md), unknown>>; |
|
invalidateApiKey |
invalidateApiKey(this: [That](./That.md), params?: [SecurityInvalidateApiKeyRequest](./SecurityInvalidateApiKeyRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityInvalidateApiKeyResponse](./SecurityInvalidateApiKeyResponse.md)>; |
|
invalidateToken |
invalidateToken(this: [That](./That.md), params?: [SecurityInvalidateTokenRequest](./SecurityInvalidateTokenRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityInvalidateTokenResponse](./SecurityInvalidateTokenResponse.md)>; |
Invalidate a token. The access tokens returned by the get token API have a finite period of time for which they are valid. After that time period, they can no longer be used. The time period is defined by the xpack.security.authc.token.timeout setting. The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. NOTE: While all parameters are optional, at least one of them is required. More specifically, either one of token or refresh_token parameters is required. If none of these two are specified, then realm_name and/or username need to be specified. |
invalidateToken |
invalidateToken(this: [That](./That.md), params?: [SecurityInvalidateTokenRequest](./SecurityInvalidateTokenRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityInvalidateTokenResponse](./SecurityInvalidateTokenResponse.md), unknown>>; |
|
invalidateToken |
invalidateToken(this: [That](./That.md), params?: [SecurityInvalidateTokenRequest](./SecurityInvalidateTokenRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityInvalidateTokenResponse](./SecurityInvalidateTokenResponse.md)>; |
|
oidcAuthenticate |
oidcAuthenticate(this: [That](./That.md), params: [SecurityOidcAuthenticateRequest](./SecurityOidcAuthenticateRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityOidcAuthenticateResponse](./SecurityOidcAuthenticateResponse.md)>; |
Authenticate OpenID Connect. Exchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. |
oidcAuthenticate |
oidcAuthenticate(this: [That](./That.md), params: [SecurityOidcAuthenticateRequest](./SecurityOidcAuthenticateRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityOidcAuthenticateResponse](./SecurityOidcAuthenticateResponse.md), unknown>>; |
|
oidcAuthenticate |
oidcAuthenticate(this: [That](./That.md), params: [SecurityOidcAuthenticateRequest](./SecurityOidcAuthenticateRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityOidcAuthenticateResponse](./SecurityOidcAuthenticateResponse.md)>; |
|
oidcLogout |
oidcLogout(this: [That](./That.md), params: [SecurityOidcLogoutRequest](./SecurityOidcLogoutRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityOidcLogoutResponse](./SecurityOidcLogoutResponse.md)>; |
Logout of OpenID Connect. Invalidate an access token and a refresh token that were generated as a response to the /_security/oidc/authenticate API. If the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout. Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. |
oidcLogout |
oidcLogout(this: [That](./That.md), params: [SecurityOidcLogoutRequest](./SecurityOidcLogoutRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityOidcLogoutResponse](./SecurityOidcLogoutResponse.md), unknown>>; |
|
oidcLogout |
oidcLogout(this: [That](./That.md), params: [SecurityOidcLogoutRequest](./SecurityOidcLogoutRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityOidcLogoutResponse](./SecurityOidcLogoutResponse.md)>; |
|
oidcPrepareAuthentication |
oidcPrepareAuthentication(this: [That](./That.md), params?: [SecurityOidcPrepareAuthenticationRequest](./SecurityOidcPrepareAuthenticationRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityOidcPrepareAuthenticationResponse](./SecurityOidcPrepareAuthenticationResponse.md)>; |
Prepare OpenID connect authentication. Create an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch. The response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process. Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. |
oidcPrepareAuthentication |
oidcPrepareAuthentication(this: [That](./That.md), params?: [SecurityOidcPrepareAuthenticationRequest](./SecurityOidcPrepareAuthenticationRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityOidcPrepareAuthenticationResponse](./SecurityOidcPrepareAuthenticationResponse.md), unknown>>; |
|
oidcPrepareAuthentication |
oidcPrepareAuthentication(this: [That](./That.md), params?: [SecurityOidcPrepareAuthenticationRequest](./SecurityOidcPrepareAuthenticationRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityOidcPrepareAuthenticationResponse](./SecurityOidcPrepareAuthenticationResponse.md)>; |
|
putPrivileges |
putPrivileges(this: [That](./That.md), params: [SecurityPutPrivilegesRequest](./SecurityPutPrivilegesRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityPutPrivilegesResponse](./SecurityPutPrivilegesResponse.md)>; |
Create or update application privileges. To use this API, you must have one of the following privileges: * The manage_security cluster privilege (or a greater privilege such as all). * The "Manage Application Privileges" global privilege for the application being referenced in the request. Application names are formed from a prefix, with an optional suffix that conform to the following rules: * The prefix must begin with a lowercase ASCII letter. * The prefix must contain only ASCII letters or digits. * The prefix must be at least 3 characters long. * If the suffix exists, it must begin with either a dash - or _. * The suffix cannot contain any of the following characters: \, /, *, ?, ", <, >, ` |
putPrivileges |
putPrivileges(this: [That](./That.md), params: [SecurityPutPrivilegesRequest](./SecurityPutPrivilegesRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityPutPrivilegesResponse](./SecurityPutPrivilegesResponse.md), unknown>>; |
|
putPrivileges |
putPrivileges(this: [That](./That.md), params: [SecurityPutPrivilegesRequest](./SecurityPutPrivilegesRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityPutPrivilegesResponse](./SecurityPutPrivilegesResponse.md)>; |
|
putRole |
putRole(this: [That](./That.md), params: [SecurityPutRoleRequest](./SecurityPutRoleRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityPutRoleResponse](./SecurityPutRoleResponse.md)>; |
Create or update roles. The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. The create or update roles API cannot update roles that are defined in roles files. File-based role management is not available in Elastic Serverless. |
putRole |
putRole(this: [That](./That.md), params: [SecurityPutRoleRequest](./SecurityPutRoleRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityPutRoleResponse](./SecurityPutRoleResponse.md), unknown>>; |
|
putRole |
putRole(this: [That](./That.md), params: [SecurityPutRoleRequest](./SecurityPutRoleRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityPutRoleResponse](./SecurityPutRoleResponse.md)>; |
|
putRoleMapping |
putRoleMapping(this: [That](./That.md), params: [SecurityPutRoleMappingRequest](./SecurityPutRoleMappingRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityPutRoleMappingResponse](./SecurityPutRoleMappingResponse.md)>; |
Create or update role mappings. Role mappings define which roles are assigned to each user. Each mapping has rules that identify users and a list of roles that are granted to those users. The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. NOTE: This API does not create roles. Rather, it maps users to existing roles. Roles can be created by using the create or update roles API or roles files. Role templates The most common use for role mappings is to create a mapping from a known value on the user to a fixed role name. For example, all users in the cn=admin,dc=example,dc=com LDAP group should be given the superuser role in Elasticsearch. The roles field is used for this purpose. For more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user. The role_templates field is used for this purpose. NOTE: To use role templates successfully, the relevant scripting feature must be enabled. Otherwise, all attempts to create a role mapping with role templates fail. All of the user fields that are available in the role mapping rules are also available in the role templates. Thus it is possible to assign a user to a role that reflects their username, their groups, or the name of the realm to which they authenticated. By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. |
putRoleMapping |
putRoleMapping(this: [That](./That.md), params: [SecurityPutRoleMappingRequest](./SecurityPutRoleMappingRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityPutRoleMappingResponse](./SecurityPutRoleMappingResponse.md), unknown>>; |
|
putRoleMapping |
putRoleMapping(this: [That](./That.md), params: [SecurityPutRoleMappingRequest](./SecurityPutRoleMappingRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityPutRoleMappingResponse](./SecurityPutRoleMappingResponse.md)>; |
|
putUser |
putUser(this: [That](./That.md), params: [SecurityPutUserRequest](./SecurityPutUserRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityPutUserResponse](./SecurityPutUserResponse.md)>; |
Create or update users. Add and update users in the native realm. A password is required for adding a new user but is optional when updating an existing user. To change a user's password without updating any other fields, use the change password API. |
putUser |
putUser(this: [That](./That.md), params: [SecurityPutUserRequest](./SecurityPutUserRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityPutUserResponse](./SecurityPutUserResponse.md), unknown>>; |
|
putUser |
putUser(this: [That](./That.md), params: [SecurityPutUserRequest](./SecurityPutUserRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityPutUserResponse](./SecurityPutUserResponse.md)>; |
|
queryApiKeys |
queryApiKeys(this: [That](./That.md), params?: [SecurityQueryApiKeysRequest](./SecurityQueryApiKeysRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityQueryApiKeysResponse](./SecurityQueryApiKeysResponse.md)>; |
Find API keys with a query. Get a paginated list of API keys and their information. You can optionally filter the results with a query. To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. |
queryApiKeys |
queryApiKeys(this: [That](./That.md), params?: [SecurityQueryApiKeysRequest](./SecurityQueryApiKeysRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityQueryApiKeysResponse](./SecurityQueryApiKeysResponse.md), unknown>>; |
|
queryApiKeys |
queryApiKeys(this: [That](./That.md), params?: [SecurityQueryApiKeysRequest](./SecurityQueryApiKeysRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityQueryApiKeysResponse](./SecurityQueryApiKeysResponse.md)>; |
|
queryRole |
queryRole(this: [That](./That.md), params?: [SecurityQueryRoleRequest](./SecurityQueryRoleRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityQueryRoleResponse](./SecurityQueryRoleResponse.md)>; |
Find roles with a query. Get roles in a paginated manner. The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. You can optionally filter the results with a query. Also, the results can be paginated and sorted. |
queryRole |
queryRole(this: [That](./That.md), params?: [SecurityQueryRoleRequest](./SecurityQueryRoleRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityQueryRoleResponse](./SecurityQueryRoleResponse.md), unknown>>; |
|
queryRole |
queryRole(this: [That](./That.md), params?: [SecurityQueryRoleRequest](./SecurityQueryRoleRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityQueryRoleResponse](./SecurityQueryRoleResponse.md)>; |
|
queryUser |
queryUser(this: [That](./That.md), params?: [SecurityQueryUserRequest](./SecurityQueryUserRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityQueryUserResponse](./SecurityQueryUserResponse.md)>; |
Find users with a query. Get information for users in a paginated manner. You can optionally filter the results with a query. NOTE: As opposed to the get user API, built-in users are excluded from the result. This API is only for native users. |
queryUser |
queryUser(this: [That](./That.md), params?: [SecurityQueryUserRequest](./SecurityQueryUserRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityQueryUserResponse](./SecurityQueryUserResponse.md), unknown>>; |
|
queryUser |
queryUser(this: [That](./That.md), params?: [SecurityQueryUserRequest](./SecurityQueryUserRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityQueryUserResponse](./SecurityQueryUserResponse.md)>; |
|
samlAuthenticate |
samlAuthenticate(this: [That](./That.md), params: [SecuritySamlAuthenticateRequest](./SecuritySamlAuthenticateRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecuritySamlAuthenticateResponse](./SecuritySamlAuthenticateResponse.md)>; |
Authenticate SAML. Submit a SAML response message to Elasticsearch for consumption. NOTE: This API is intended for use by custom web applications other than Kibana. If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. The SAML message that is submitted can be: * A response to a SAML authentication request that was previously created using the SAML prepare authentication API. * An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow. In either case, the SAML message needs to be a base64 encoded XML document with a root element of <Response>. After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. |
samlAuthenticate |
samlAuthenticate(this: [That](./That.md), params: [SecuritySamlAuthenticateRequest](./SecuritySamlAuthenticateRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecuritySamlAuthenticateResponse](./SecuritySamlAuthenticateResponse.md), unknown>>; |
|
samlAuthenticate |
samlAuthenticate(this: [That](./That.md), params: [SecuritySamlAuthenticateRequest](./SecuritySamlAuthenticateRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecuritySamlAuthenticateResponse](./SecuritySamlAuthenticateResponse.md)>; |
|
samlCompleteLogout |
samlCompleteLogout(this: [That](./That.md), params: [SecuritySamlCompleteLogoutRequest](./SecuritySamlCompleteLogoutRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecuritySamlCompleteLogoutResponse](./SecuritySamlCompleteLogoutResponse.md)>; |
Logout of SAML completely. Verifies the logout response sent from the SAML IdP. NOTE: This API is intended for use by custom web applications other than Kibana. If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. The SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout. This API verifies the response by ensuring the content is relevant and validating its signature. An empty response is returned if the verification process is successful. The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. The caller of this API must prepare the request accordingly so that this API can handle either of them. |
samlCompleteLogout |
samlCompleteLogout(this: [That](./That.md), params: [SecuritySamlCompleteLogoutRequest](./SecuritySamlCompleteLogoutRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecuritySamlCompleteLogoutResponse](./SecuritySamlCompleteLogoutResponse.md), unknown>>; |
|
samlCompleteLogout |
samlCompleteLogout(this: [That](./That.md), params: [SecuritySamlCompleteLogoutRequest](./SecuritySamlCompleteLogoutRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecuritySamlCompleteLogoutResponse](./SecuritySamlCompleteLogoutResponse.md)>; |
|
samlInvalidate |
samlInvalidate(this: [That](./That.md), params: [SecuritySamlInvalidateRequest](./SecuritySamlInvalidateRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecuritySamlInvalidateResponse](./SecuritySamlInvalidateResponse.md)>; |
Invalidate SAML. Submit a SAML LogoutRequest message to Elasticsearch for consumption. NOTE: This API is intended for use by custom web applications other than Kibana. If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. The logout request comes from the SAML IdP during an IdP initiated Single Logout. The custom web application can use this API to have Elasticsearch process the LogoutRequest. After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. Thus the user can be redirected back to their IdP. |
samlInvalidate |
samlInvalidate(this: [That](./That.md), params: [SecuritySamlInvalidateRequest](./SecuritySamlInvalidateRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecuritySamlInvalidateResponse](./SecuritySamlInvalidateResponse.md), unknown>>; |
|
samlInvalidate |
samlInvalidate(this: [That](./That.md), params: [SecuritySamlInvalidateRequest](./SecuritySamlInvalidateRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecuritySamlInvalidateResponse](./SecuritySamlInvalidateResponse.md)>; |
|
samlLogout |
samlLogout(this: [That](./That.md), params: [SecuritySamlLogoutRequest](./SecuritySamlLogoutRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecuritySamlLogoutResponse](./SecuritySamlLogoutResponse.md)>; |
Logout of SAML. Submits a request to invalidate an access token and refresh token. NOTE: This API is intended for use by custom web applications other than Kibana. If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. This API invalidates the tokens that were generated for a user by the SAML authenticate API. If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). |
samlLogout |
samlLogout(this: [That](./That.md), params: [SecuritySamlLogoutRequest](./SecuritySamlLogoutRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecuritySamlLogoutResponse](./SecuritySamlLogoutResponse.md), unknown>>; |
|
samlLogout |
samlLogout(this: [That](./That.md), params: [SecuritySamlLogoutRequest](./SecuritySamlLogoutRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecuritySamlLogoutResponse](./SecuritySamlLogoutResponse.md)>; |
|
samlPrepareAuthentication |
samlPrepareAuthentication(this: [That](./That.md), params?: [SecuritySamlPrepareAuthenticationRequest](./SecuritySamlPrepareAuthenticationRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecuritySamlPrepareAuthenticationResponse](./SecuritySamlPrepareAuthenticationResponse.md)>; |
Prepare SAML authentication. Create a SAML authentication request ( <AuthnRequest>) as a URL string based on the configuration of the respective SAML realm in Elasticsearch. NOTE: This API is intended for use by custom web applications other than Kibana. If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. This API returns a URL pointing to the SAML Identity Provider. You can use the URL to redirect the browser of the user in order to continue the authentication process. The URL includes a single parameter named SAMLRequest, which contains a SAML Authentication request that is deflated and Base64 encoded. If the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named SigAlg and Signature. These parameters contain the algorithm used for the signature and the signature value itself. It also returns a random string that uniquely identifies this SAML Authentication request. The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. |
samlPrepareAuthentication |
samlPrepareAuthentication(this: [That](./That.md), params?: [SecuritySamlPrepareAuthenticationRequest](./SecuritySamlPrepareAuthenticationRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecuritySamlPrepareAuthenticationResponse](./SecuritySamlPrepareAuthenticationResponse.md), unknown>>; |
|
samlPrepareAuthentication |
samlPrepareAuthentication(this: [That](./That.md), params?: [SecuritySamlPrepareAuthenticationRequest](./SecuritySamlPrepareAuthenticationRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecuritySamlPrepareAuthenticationResponse](./SecuritySamlPrepareAuthenticationResponse.md)>; |
|
samlServiceProviderMetadata |
samlServiceProviderMetadata(this: [That](./That.md), params: [SecuritySamlServiceProviderMetadataRequest](./SecuritySamlServiceProviderMetadataRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecuritySamlServiceProviderMetadataResponse](./SecuritySamlServiceProviderMetadataResponse.md)>; |
Create SAML service provider metadata. Generate SAML metadata for a SAML 2.0 Service Provider. The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. |
samlServiceProviderMetadata |
samlServiceProviderMetadata(this: [That](./That.md), params: [SecuritySamlServiceProviderMetadataRequest](./SecuritySamlServiceProviderMetadataRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecuritySamlServiceProviderMetadataResponse](./SecuritySamlServiceProviderMetadataResponse.md), unknown>>; |
|
samlServiceProviderMetadata |
samlServiceProviderMetadata(this: [That](./That.md), params: [SecuritySamlServiceProviderMetadataRequest](./SecuritySamlServiceProviderMetadataRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecuritySamlServiceProviderMetadataResponse](./SecuritySamlServiceProviderMetadataResponse.md)>; |
|
suggestUserProfiles |
suggestUserProfiles(this: [That](./That.md), params?: [SecuritySuggestUserProfilesRequest](./SecuritySuggestUserProfilesRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecuritySuggestUserProfilesResponse](./SecuritySuggestUserProfilesResponse.md)>; |
Suggest a user profile. Get suggestions for user profiles that match specified search criteria. NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. Elastic reserves the right to change or remove this feature in future releases without prior notice. |
suggestUserProfiles |
suggestUserProfiles(this: [That](./That.md), params?: [SecuritySuggestUserProfilesRequest](./SecuritySuggestUserProfilesRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecuritySuggestUserProfilesResponse](./SecuritySuggestUserProfilesResponse.md), unknown>>; |
|
suggestUserProfiles |
suggestUserProfiles(this: [That](./That.md), params?: [SecuritySuggestUserProfilesRequest](./SecuritySuggestUserProfilesRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecuritySuggestUserProfilesResponse](./SecuritySuggestUserProfilesResponse.md)>; |
|
updateApiKey |
updateApiKey(this: [That](./That.md), params: [SecurityUpdateApiKeyRequest](./SecurityUpdateApiKeyRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityUpdateApiKeyResponse](./SecurityUpdateApiKeyResponse.md)>; |
Update an API key. Update attributes of an existing API key. This API supports updates to an API key's access scope, expiration, and metadata. To use this API, you must have at least the manage_own_api_key cluster privilege. Users can only update API keys that they created or that were granted to them. To update another user’s API key, use the run_as feature to submit a request on behalf of another user. IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. Use this API to update API keys created by the create API key or grant API Key APIs. If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. The snapshot of the owner's permissions is updated automatically on every call. IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. |
updateApiKey |
updateApiKey(this: [That](./That.md), params: [SecurityUpdateApiKeyRequest](./SecurityUpdateApiKeyRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityUpdateApiKeyResponse](./SecurityUpdateApiKeyResponse.md), unknown>>; |
|
updateApiKey |
updateApiKey(this: [That](./That.md), params: [SecurityUpdateApiKeyRequest](./SecurityUpdateApiKeyRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityUpdateApiKeyResponse](./SecurityUpdateApiKeyResponse.md)>; |
|
updateCrossClusterApiKey |
updateCrossClusterApiKey(this: [That](./That.md), params: [SecurityUpdateCrossClusterApiKeyRequest](./SecurityUpdateCrossClusterApiKeyRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityUpdateCrossClusterApiKeyResponse](./SecurityUpdateCrossClusterApiKeyResponse.md)>; |
Update a cross-cluster API key. Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. To use this API, you must have at least the manage_security cluster privilege. Users can only update API keys that they created. To update another user's API key, use the run_as feature to submit a request on behalf of another user. IMPORTANT: It's not possible to use an API key as the authentication credential for this API. To update an API key, the owner user's credentials are required. It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. This API supports updates to an API key's access scope, metadata, and expiration. The owner user's information, such as the username and realm, is also updated automatically on every call. NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. |
updateCrossClusterApiKey |
updateCrossClusterApiKey(this: [That](./That.md), params: [SecurityUpdateCrossClusterApiKeyRequest](./SecurityUpdateCrossClusterApiKeyRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityUpdateCrossClusterApiKeyResponse](./SecurityUpdateCrossClusterApiKeyResponse.md), unknown>>; |
|
updateCrossClusterApiKey |
updateCrossClusterApiKey(this: [That](./That.md), params: [SecurityUpdateCrossClusterApiKeyRequest](./SecurityUpdateCrossClusterApiKeyRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityUpdateCrossClusterApiKeyResponse](./SecurityUpdateCrossClusterApiKeyResponse.md)>; |
|
updateSettings |
updateSettings(this: [That](./That.md), params?: [SecurityUpdateSettingsRequest](./SecurityUpdateSettingsRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityUpdateSettingsResponse](./SecurityUpdateSettingsResponse.md)>; |
Update security index settings. Update the user-configurable settings for the security internal index ( .security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. If a specific index is not in use on the system and settings are provided for it, the request will be rejected. This API does not yet support configuring the settings for indices before they are in use. |
updateSettings |
updateSettings(this: [That](./That.md), params?: [SecurityUpdateSettingsRequest](./SecurityUpdateSettingsRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityUpdateSettingsResponse](./SecurityUpdateSettingsResponse.md), unknown>>; |
|
updateSettings |
updateSettings(this: [That](./That.md), params?: [SecurityUpdateSettingsRequest](./SecurityUpdateSettingsRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityUpdateSettingsResponse](./SecurityUpdateSettingsResponse.md)>; |
|
updateUserProfileData |
updateUserProfileData(this: [That](./That.md), params: [SecurityUpdateUserProfileDataRequest](./SecurityUpdateUserProfileDataRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[SecurityUpdateUserProfileDataResponse](./SecurityUpdateUserProfileDataResponse.md)>; |
Update user profile data. Update specific data for the user profile that is associated with a unique ID. NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. Elastic reserves the right to change or remove this feature in future releases without prior notice. To use this API, you must have one of the following privileges: * The manage_user_profile cluster privilege. * The update_profile_data global privilege for the namespaces that are referenced in the request. This API updates the labels and data fields of an existing user profile document with JSON objects. New keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request. For both labels and data, content is namespaced by the top-level fields. The update_profile_data global privilege grants privileges for updating only the allowed namespaces. |
updateUserProfileData |
updateUserProfileData(this: [That](./That.md), params: [SecurityUpdateUserProfileDataRequest](./SecurityUpdateUserProfileDataRequest.md), options?: [TransportRequestOptionsWithMeta](./TransportRequestOptionsWithMeta.md)): Promise<[TransportResult](./TransportResult.md)<[SecurityUpdateUserProfileDataResponse](./SecurityUpdateUserProfileDataResponse.md), unknown>>; |
|
updateUserProfileData |
updateUserProfileData(this: [That](./That.md), params: [SecurityUpdateUserProfileDataRequest](./SecurityUpdateUserProfileDataRequest.md), options?: [TransportRequestOptions](./TransportRequestOptions.md)): Promise<[SecurityUpdateUserProfileDataResponse](./SecurityUpdateUserProfileDataResponse.md)>; |