1. Packages
  2. InfluxDB V3
  3. API Docs
  4. getTokens
InfluxDB3 v1.3.0 published on Tuesday, Mar 11, 2025 by komminarlabs

influxdb3.getTokens

Explore with Pulumi AI

InfluxDB3 v1.3.0 published on Tuesday, Mar 11, 2025 by komminarlabs

Gets all database tokens for a cluster.

Using getTokens

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getTokens(opts?: InvokeOptions): Promise<GetTokensResult>
function getTokensOutput(opts?: InvokeOptions): Output<GetTokensResult>
Copy
def get_tokens(opts: Optional[InvokeOptions] = None) -> GetTokensResult
def get_tokens_output(opts: Optional[InvokeOptions] = None) -> Output[GetTokensResult]
Copy
func GetTokens(ctx *Context, opts ...InvokeOption) (*GetTokensResult, error)
func GetTokensOutput(ctx *Context, opts ...InvokeOption) GetTokensResultOutput
Copy

> Note: This function is named GetTokens in the Go SDK.

public static class GetTokens 
{
    public static Task<GetTokensResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetTokensResult> Invoke(InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTokensResult> getTokens(InvokeOptions options)
public static Output<GetTokensResult> getTokens(InvokeOptions options)
Copy
fn::invoke:
  function: influxdb3:index/getTokens:getTokens
  arguments:
    # arguments dictionary
Copy

getTokens Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Tokens List<KomminarLabs.InfluxDB3.Outputs.GetTokensToken>
Id string
The provider-assigned unique ID for this managed resource.
Tokens []GetTokensToken
id String
The provider-assigned unique ID for this managed resource.
tokens List<GetTokensToken>
id string
The provider-assigned unique ID for this managed resource.
tokens GetTokensToken[]
id str
The provider-assigned unique ID for this managed resource.
tokens Sequence[GetTokensToken]
id String
The provider-assigned unique ID for this managed resource.
tokens List<Property Map>

Supporting Types

GetTokensToken

AccessToken This property is required. string
The access token that can be used to authenticate query and write requests to the cluster. The access token is never stored by InfluxDB and is only returned once when the token is created. If the access token is lost, a new token must be created.
AccountId This property is required. string
The ID of the account that the database token belongs to.
ClusterId This property is required. string
The ID of the cluster that the database token belongs to.
CreatedAt This property is required. string
The date and time that the database token was created. Uses RFC3339 format.
Description This property is required. string
The description of the database token.
Id This property is required. string
The ID of the database token.
Permissions This property is required. List<KomminarLabs.InfluxDB3.Inputs.GetTokensTokenPermission>
The list of permissions the database token allows.
AccessToken This property is required. string
The access token that can be used to authenticate query and write requests to the cluster. The access token is never stored by InfluxDB and is only returned once when the token is created. If the access token is lost, a new token must be created.
AccountId This property is required. string
The ID of the account that the database token belongs to.
ClusterId This property is required. string
The ID of the cluster that the database token belongs to.
CreatedAt This property is required. string
The date and time that the database token was created. Uses RFC3339 format.
Description This property is required. string
The description of the database token.
Id This property is required. string
The ID of the database token.
Permissions This property is required. []GetTokensTokenPermission
The list of permissions the database token allows.
accessToken This property is required. String
The access token that can be used to authenticate query and write requests to the cluster. The access token is never stored by InfluxDB and is only returned once when the token is created. If the access token is lost, a new token must be created.
accountId This property is required. String
The ID of the account that the database token belongs to.
clusterId This property is required. String
The ID of the cluster that the database token belongs to.
createdAt This property is required. String
The date and time that the database token was created. Uses RFC3339 format.
description This property is required. String
The description of the database token.
id This property is required. String
The ID of the database token.
permissions This property is required. List<GetTokensTokenPermission>
The list of permissions the database token allows.
accessToken This property is required. string
The access token that can be used to authenticate query and write requests to the cluster. The access token is never stored by InfluxDB and is only returned once when the token is created. If the access token is lost, a new token must be created.
accountId This property is required. string
The ID of the account that the database token belongs to.
clusterId This property is required. string
The ID of the cluster that the database token belongs to.
createdAt This property is required. string
The date and time that the database token was created. Uses RFC3339 format.
description This property is required. string
The description of the database token.
id This property is required. string
The ID of the database token.
permissions This property is required. GetTokensTokenPermission[]
The list of permissions the database token allows.
access_token This property is required. str
The access token that can be used to authenticate query and write requests to the cluster. The access token is never stored by InfluxDB and is only returned once when the token is created. If the access token is lost, a new token must be created.
account_id This property is required. str
The ID of the account that the database token belongs to.
cluster_id This property is required. str
The ID of the cluster that the database token belongs to.
created_at This property is required. str
The date and time that the database token was created. Uses RFC3339 format.
description This property is required. str
The description of the database token.
id This property is required. str
The ID of the database token.
permissions This property is required. Sequence[GetTokensTokenPermission]
The list of permissions the database token allows.
accessToken This property is required. String
The access token that can be used to authenticate query and write requests to the cluster. The access token is never stored by InfluxDB and is only returned once when the token is created. If the access token is lost, a new token must be created.
accountId This property is required. String
The ID of the account that the database token belongs to.
clusterId This property is required. String
The ID of the cluster that the database token belongs to.
createdAt This property is required. String
The date and time that the database token was created. Uses RFC3339 format.
description This property is required. String
The description of the database token.
id This property is required. String
The ID of the database token.
permissions This property is required. List<Property Map>
The list of permissions the database token allows.

GetTokensTokenPermission

Action This property is required. string
The action the database token permission allows.
Resource This property is required. string
The resource the database token permission applies to. * refers to all databases.
Action This property is required. string
The action the database token permission allows.
Resource This property is required. string
The resource the database token permission applies to. * refers to all databases.
action This property is required. String
The action the database token permission allows.
resource This property is required. String
The resource the database token permission applies to. * refers to all databases.
action This property is required. string
The action the database token permission allows.
resource This property is required. string
The resource the database token permission applies to. * refers to all databases.
action This property is required. str
The action the database token permission allows.
resource This property is required. str
The resource the database token permission applies to. * refers to all databases.
action This property is required. String
The action the database token permission allows.
resource This property is required. String
The resource the database token permission applies to. * refers to all databases.

Package Details

Repository
influxdb3 komminarlabs/pulumi-influxdb3
License
Apache-2.0
Notes
This Pulumi package is based on the influxdb3 Terraform Provider.
InfluxDB3 v1.3.0 published on Tuesday, Mar 11, 2025 by komminarlabs