Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Create Organisation (influxDB v2) #224

Open
CoolZeroNL opened this issue Feb 13, 2024 · 2 comments
Open

Support Create Organisation (influxDB v2) #224

CoolZeroNL opened this issue Feb 13, 2024 · 2 comments

Comments

@CoolZeroNL
Copy link

Proposal:
Create (delete?, find ?) organisation the same way now buckets can be created.

Current behavior:
not supported

Desired behavior:
able to create a organisation if it not exist, the same way now buckets can be created it it does not exist yet.

offcource the API token needs to have the scope: --write-orgs | Grant permission to create and update organizations

API docs: https://docs.influxdata.com/influxdb/v2/api/#operation/PostOrgs

Scope docs: https://docs.influxdata.com/influxdb/cloud/reference/cli/influx/auth/create/

Alternatives considered:
setting up now my own http client to do the api call. it would be nice to use it out of the box with the client.

Use case:
I dont want manual create a new organisations. i want to to isolate the data by organsation (endusers can only see org level). So I want to set the org, bucket, token through the ESP, if the organisation and/or bucket doesnt exist it creates them.

In my case, then a cron script will keep track on the server side for each (new) organisation + buckers, it will map/created these also in grafana. This so the endusers are isolated from each other data.

@CoolZeroNL
Copy link
Author

@vlastahajek
Copy link
Collaborator

You can create a PR and we can discuss details in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants