influxdb-client-js

InfluxDB 2.0 JavaScript client

View the Project on GitHub influxdata/influxdb-client-js

Home > @influxdata/influxdb-client-apis > SetupAPI > getSetup

SetupAPI.getSetup() method

Check if database has default user, org, bucket. See https://docs.influxdata.com/influxdb/v2.4/api/#operation/GetSetup

Signature:

getSetup(request?: GetSetupRequest, requestOptions?: RequestOptions): Promise<IsOnboarding>;

Parameters

Parameter Type Description
request [GetSetupRequest](/influxdb-client-js/influxdb-client-apis.getsetuprequest.html) _(Optional)_ request parameters and body (if supported)
requestOptions [RequestOptions](/influxdb-client-js/influxdb-client-apis.requestoptions.html) _(Optional)_ optional transport options

Returns:

Promise<IsOnboarding>

promise of response