komminarlabs / pulumi-influxdb Goto Github PK
View Code? Open in Web Editor NEWPulumi provider for InfluxDB
Home Page: https://www.pulumi.com/registry/packages/influxdb
License: Apache License 2.0
Pulumi provider for InfluxDB
Home Page: https://www.pulumi.com/registry/packages/influxdb
License: Apache License 2.0
Hello @thulasirajkomminar,
I'm from the Pulumi team. Would it be possible to create a new point release (e.g. 1.0.2) which contains the fix for this doc file?
c3ccec6#diff-c842590019e88255dcb723f9dfdadc9185e22a2f4fc7010f1ec3c404759e5540
We currently have a 404 in our Registry on the incorrect link.
Using the influx UI, I can create a token that eg, enables read / writing to all telegrafs and some specific buckets; that looks like this:
When I click generate, the request that goes over the wire looks like:
$ curl 'http://localhost:8086/api/v2/authorizations' \
$ -H 'Accept: */*' \
$ -H 'Cookie: influxdb-oss-session=[...] \
$ -H 'DNT: 1' \
$ -H 'Referer: http://localhost:8086/orgs/90a2dbdc3b0ff490/load-data/tokens' \
$ -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36' \
$ -H 'content-type: application/json' \
$ --data-raw '{
$ "orgID": "90a2dbdc3b0ff490",
$ "description": "example for new issue",
$ "permissions": [{
$ "action": "read",
$ "resource": {"orgID": "90a2dbdc3b0ff490", "type": "buckets", "name": "telegraf", "id": "e42561946e0fbc6c"}
$ }, {
$ "action": "write",
$ "resource": {"orgID": "90a2dbdc3b0ff490", "type": "buckets", "name": "telegraf", "id": "e42561946e0fbc6c"}
$ }, {
$ "action": "read",
$ "resource": {"orgID": "90a2dbdc3b0ff490", "type": "telegrafs"}
$ }, {
$ "action": "write",
$ "resource": {"orgID": "90a2dbdc3b0ff490", "type": "telegrafs"}
$ }]
$ }'
{
"id": "0cdd8ff47782f000",
"token": "[...]",
"status": "active",
"description": "example for new issue",
"orgID": "90a2dbdc3b0ff490",
"org": "example",
"userID": "0cdd7d2ab673a000",
"user": "admin",
"permissions": [{
"action": "read",
"resource": {"orgID": "90a2dbdc3b0ff490", "type": "buckets", "name": "telegraf", "id": "e42561946e0fbc6c"}
}, {
"action": "write",
"resource": {"orgID": "90a2dbdc3b0ff490", "type": "buckets", "name": "telegraf", "id": "e42561946e0fbc6c"}
}, {
"action": "read",
"resource": {"orgID": "90a2dbdc3b0ff490", "type": "telegrafs"}
}, {
"action": "write",
"resource": {"orgID": "90a2dbdc3b0ff490", "type": "telegrafs"}
}],
"links": {
"self": "/api/v2/authorizations/0cdd8ff47782f000",
"user": "/api/v2/users/0cdd7d2ab673a000"
},
"createdAt": "2024-04-10T04:27:06.078376348Z",
"updatedAt": "2024-04-10T04:27:06.078376348Z"
}
I'm working with pulumi in python, and I tried using id=None
and id=''
, but both fail a validation before the request is made
Over at https://github.com/komminarlabs/terraform-provider-influxdb/blob/96a4a075c861fa52ec8cc159e01ae11fef9e1b80/internal/provider/authorization_resource.go#L128-L131, the id
needs to be optional to match the influx API, which only declares type
as a required property on Authorization.permissions[].resource
: https://docs.influxdata.com/influxdb/cloud/api/v2/#operation/PostAuthorizations
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.