Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 1.04 KB

kibana-plugin-core-server.savedobjectsservicestart.getscopedclient.md

File metadata and controls

15 lines (9 loc) · 1.04 KB

Home > kibana-plugin-core-server > SavedObjectsServiceStart > getScopedClient

SavedObjectsServiceStart.getScopedClient property

Creates a Saved Objects client that uses the credentials from the passed in request to authenticate with Elasticsearch. If other plugins have registered Saved Objects client wrappers, these will be applied to extend the functionality of the client.

A client that is already scoped to the incoming request is also exposed from the route handler context see RequestHandlerContext.

Signature:

getScopedClient: (req: KibanaRequest, options?: SavedObjectsClientProviderOptions) => SavedObjectsClientContract;