kibana/docs/development/core/server/kibana-plugin-server.elasticsearchservicesetup.createclient.md
Mikhail Shustov aa695ec637
Normalize EOL symbol in platform docs (#56021)
* use api-extractor generate command with api-documenter config

* update docs

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-27 18:42:45 +01:00

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();