Skip to content

Reference

InfluxDB

Connect InfluxDB to Alter Vault for secure API access

Use InfluxDB credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Provider IDinfluxdb
CategoryDatabase
Credential TypeAPI Token

Log in to InfluxDB Cloud

Log in to InfluxDB Cloud.

Open API Tokens

Go to Load Data > API Tokens.

Generate a token

Generate an All Access or custom (bucket-scoped) token and copy it — it is only shown once.

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add InfluxDB

Go to Managed Secrets > Add Provider > InfluxDB.

Enter credentials

Paste your API Token into the credential field.

Save

Click Save. You’ll receive a grant_id to use with the SDK.

response = await alter_app.request(
HttpMethod.POST,
"https://YOUR-REGION.cloud2.influxdata.com/api/v2/query",
grant_id="YOUR_GRANT_ID",
query_params={"org": "YOUR-ORG"},
json={
"query": 'from(bucket: "metrics") |> range(start: -1h) |> limit(n: 5)',
"type": "flux",
},
)
  • The token is injected as Authorization: Token <token>; InfluxDB 3 endpoints also accept Bearer.

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider path
PostQueryread, writePOST/query
PostWritewritePOST/write
PostDeletedeletePOST/delete
GetBucketsreadGET/buckets
GetBucketsIDreadGET/buckets/{bucketID}
PostBucketswritePOST/buckets
PatchBucketsIDwritePATCH/buckets/{bucketID}
DeleteBucketsIDdeleteDELETE/buckets/{bucketID}
GetTasksreadGET/tasks
GetTasksIDreadGET/tasks/{taskID}
PostTaskswritePOST/tasks
PatchTasksIDwritePATCH/tasks/{taskID}
DeleteTasksIDdeleteDELETE/tasks/{taskID}
GetDashboardsreadGET/dashboards
PostDashboardswritePOST/dashboards
PatchDashboardsIDwritePATCH/dashboards/{dashboardID}
DeleteDashboardsIDdeleteDELETE/dashboards/{dashboardID}
GetOrgsreadGET/orgs
PostOrgsadminPOST/orgs
PatchOrgsIDadminPATCH/orgs/{orgID}
DeleteOrgsIDadmin, deleteDELETE/orgs/{orgID}
GetUsersreadGET/users
PostUsersadminPOST/users
PatchUsersIDadminPATCH/users/{userID}
DeleteUsersIDadmin, deleteDELETE/users/{userID}
GetAuthorizationsreadGET/authorizations
PostAuthorizationsadminPOST/authorizations
PatchAuthorizationsIDadminPATCH/authorizations/{authID}
DeleteAuthorizationsIDadmin, deleteDELETE/authorizations/{authID}
GetMereadGET/me
GetPingreadGET/ping

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.