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