InfluxDB 2.0 JavaScript client
Home > @influxdata/influxdb-client-apis > SetupAPI
Setup API
Signature:
declare class SetupAPI
Constructor | Modifiers | Description |
---|---|---|
[(constructor)(influxDB)](/influxdb-client-js/influxdb-client-apis.setupapi._constructor_.html) | Creates SetupAPI |
Method | Modifiers | Description |
---|---|---|
[getSetup(request, requestOptions)](/influxdb-client-js/influxdb-client-apis.setupapi.getsetup.html) | Check if database has default user, org, bucket. See [https://docs.influxdata.com/influxdb/v2.4/api/\#operation/GetSetup](https://docs.influxdata.com/influxdb/v2.4/api/#operation/GetSetup) | |
[postSetup(request, requestOptions)](/influxdb-client-js/influxdb-client-apis.setupapi.postsetup.html) | Set up initial user, org and bucket. See [https://docs.influxdata.com/influxdb/v2.4/api/\#operation/PostSetup](https://docs.influxdata.com/influxdb/v2.4/api/#operation/PostSetup) |