[[reference-security-saml_invalidate]]

////////
===========================================================================================================================
||                                                                                                                       ||
||                                                                                                                       ||
||                                                                                                                       ||
||        ██████╗ ███████╗ █████╗ ██████╗ ███╗   ███╗███████╗                                                            ||
||        ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝                                                            ||
||        ██████╔╝█████╗  ███████║██║  ██║██╔████╔██║█████╗                                                              ||
||        ██╔══██╗██╔══╝  ██╔══██║██║  ██║██║╚██╔╝██║██╔══╝                                                              ||
||        ██║  ██║███████╗██║  ██║██████╔╝██║ ╚═╝ ██║███████╗                                                            ||
||        ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝ ╚═╝     ╚═╝╚══════╝                                                            ||
||                                                                                                                       ||
||                                                                                                                       ||
||    This file is autogenerated, DO NOT send pull requests that changes this file directly.                             ||
||    You should update the script that does the generation, which can be found in:                                      ||
||    https://github.com/elastic/elastic-client-generator-js                                                             ||
||                                                                                                                       ||
||    You can run the script with the following command:                                                                 ||
||       npm run elasticsearch -- --version <version>                                                                    ||
||                                                                                                                       ||
||                                                                                                                       ||
||                                                                                                                       ||
===========================================================================================================================
////////

[discrete]
=== client.security.samlInvalidate

Invalidate SAML. Submits a SAML LogoutRequest message to Elasticsearch for consumption.

{ref}/security-api-saml-invalidate.html[{es} documentation]

[discrete]
==== Function signature

[source,ts]
----
(SecuritySamlInvalidateRequest, options?): Promise<SecuritySamlInvalidateResponse>
----

[discrete]
===== `SecuritySamlInvalidateRequest`

[source,ts]
----
interface SecuritySamlInvalidateRequest extends <<RequestBase>> {
  acs?: string
  query_string: string
  realm?: string
}
----

[discrete]
===== `SecuritySamlInvalidateResponse`

[source,ts]
----
interface SecuritySamlInvalidateResponse {
  invalidated: <<integer>>
  realm: string
  redirect: string
}
----

