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