Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.79 KB

kibana-plugin-core-server.scopedclusterclient.md

File metadata and controls

29 lines (18 loc) · 1.79 KB

Home > kibana-plugin-core-server > ScopedClusterClient

ScopedClusterClient class

Serves the same purpose as "normal" ClusterClient but exposes additional callAsCurrentUser method that doesn't use credentials of the Kibana internal user (as callAsInternalUser does) to request Elasticsearch API, but rather passes HTTP headers extracted from the current user request to the API.

See ScopedClusterClient.

Signature:

export declare class ScopedClusterClient implements IScopedClusterClient 

Constructors

Constructor Modifiers Description
(constructor)(internalAPICaller, scopedAPICaller, headers) Constructs a new instance of the ScopedClusterClient class

Methods

Method Modifiers Description
callAsCurrentUser(endpoint, clientParams, options) Calls specified endpoint with provided clientParams on behalf of the user initiated request to the Kibana server (via HTTP request headers). See APICaller.
callAsInternalUser(endpoint, clientParams, options) Calls specified endpoint with provided clientParams on behalf of the Kibana internal user. See APICaller.