How to use the @influxdata/influxdb-client-apis.AuthorizationsAPI function in @influxdata/influxdb-client-apis

To help you get started, we’ve selected a few @influxdata/influxdb-client-apis examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github influxdata / influxdb / e2e / src / utils / influxUtils.js View on Github external
const getAuthorizations = async(userName) => {

    let user = getUser(userName);

    let authsAPI = new AuthorizationsAPI(new InfluxDB({url: __config.influx_url, token: user.token, timeout: 20000}));

    return await authsAPI.getAuthorizations();
};