mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 18:27:59 -04:00
* use api-extractor generate command with api-documenter config * update docs Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
831 B
831 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>) => ICustomClusterClient;
Example
const client = elasticsearch.createCluster('my-app-name', config);
const data = await client.callAsInternalUser();