mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
775 B
775 B
Home > kibana-plugin-server > ElasticsearchServiceSetup > createClient
ElasticsearchServiceSetup.createClient property
Create application specific Elasticsearch cluster API client with customized config.
Signature:
readonly createClient: (type: string, clientConfig?: Partial<ElasticsearchClientConfig>) => ClusterClient;
Example
const client = elasticsearch.createCluster('my-app-name', config);
const data = await client.callAsInternalUser();