Opensearch dashboards.ilegacyscopedclusterclient
Home > opensearch-dashboards > ILegacyScopedClusterClient
ILegacyScopedClusterClient type
Warning: This API is now obsolete.
Use IScopedClusterClient.
Serves the same purpose as "normal" ClusterClient but exposes additional callAsCurrentUser method that doesn't use credentials of the OpenSearch Dashboards internal user (as callAsInternalUser does) to request OpenSearch API, but rather passes HTTP headers extracted from the current user request to the API.
See LegacyScopedClusterClient.
Signature:
export declare type ILegacyScopedClusterClient = Pick<LegacyScopedClusterClient, 'callAsCurrentUser' | 'callAsInternalUser'>;
References: LegacyScopedClusterClient