1. Packages
  2. Aiven Provider
  3. API Docs
  4. OrganizationApplicationUserToken
Aiven v6.37.0 published on Thursday, Apr 10, 2025 by Pulumi

aiven.OrganizationApplicationUserToken

Explore with Pulumi AI

Creates and manages an application user token. Review the best practices for securing application users and their tokens.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const tfUser = new aiven.OrganizationApplicationUser("tf_user", {
    organizationId: main.id,
    name: "app-terraform",
});
const example = new aiven.OrganizationApplicationUserToken("example", {
    organizationId: main.id,
    userId: tfUser.userId,
    description: "Token for TF access to Aiven.",
});
Copy
import pulumi
import pulumi_aiven as aiven

tf_user = aiven.OrganizationApplicationUser("tf_user",
    organization_id=main["id"],
    name="app-terraform")
example = aiven.OrganizationApplicationUserToken("example",
    organization_id=main["id"],
    user_id=tf_user.user_id,
    description="Token for TF access to Aiven.")
Copy
package main

import (
	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tfUser, err := aiven.NewOrganizationApplicationUser(ctx, "tf_user", &aiven.OrganizationApplicationUserArgs{
			OrganizationId: pulumi.Any(main.Id),
			Name:           pulumi.String("app-terraform"),
		})
		if err != nil {
			return err
		}
		_, err = aiven.NewOrganizationApplicationUserToken(ctx, "example", &aiven.OrganizationApplicationUserTokenArgs{
			OrganizationId: pulumi.Any(main.Id),
			UserId:         tfUser.UserId,
			Description:    pulumi.String("Token for TF access to Aiven."),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;

return await Deployment.RunAsync(() => 
{
    var tfUser = new Aiven.OrganizationApplicationUser("tf_user", new()
    {
        OrganizationId = main.Id,
        Name = "app-terraform",
    });

    var example = new Aiven.OrganizationApplicationUserToken("example", new()
    {
        OrganizationId = main.Id,
        UserId = tfUser.UserId,
        Description = "Token for TF access to Aiven.",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.OrganizationApplicationUser;
import com.pulumi.aiven.OrganizationApplicationUserArgs;
import com.pulumi.aiven.OrganizationApplicationUserToken;
import com.pulumi.aiven.OrganizationApplicationUserTokenArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var tfUser = new OrganizationApplicationUser("tfUser", OrganizationApplicationUserArgs.builder()
            .organizationId(main.id())
            .name("app-terraform")
            .build());

        var example = new OrganizationApplicationUserToken("example", OrganizationApplicationUserTokenArgs.builder()
            .organizationId(main.id())
            .userId(tfUser.userId())
            .description("Token for TF access to Aiven.")
            .build());

    }
}
Copy
resources:
  tfUser:
    type: aiven:OrganizationApplicationUser
    name: tf_user
    properties:
      organizationId: ${main.id}
      name: app-terraform
  example:
    type: aiven:OrganizationApplicationUserToken
    properties:
      organizationId: ${main.id}
      userId: ${tfUser.userId}
      description: Token for TF access to Aiven.
Copy

Create OrganizationApplicationUserToken Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new OrganizationApplicationUserToken(name: string, args: OrganizationApplicationUserTokenArgs, opts?: CustomResourceOptions);
@overload
def OrganizationApplicationUserToken(resource_name: str,
                                     args: OrganizationApplicationUserTokenArgs,
                                     opts: Optional[ResourceOptions] = None)

@overload
def OrganizationApplicationUserToken(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     organization_id: Optional[str] = None,
                                     user_id: Optional[str] = None,
                                     description: Optional[str] = None,
                                     extend_when_used: Optional[bool] = None,
                                     ip_allowlists: Optional[Sequence[str]] = None,
                                     max_age_seconds: Optional[int] = None,
                                     scopes: Optional[Sequence[str]] = None)
func NewOrganizationApplicationUserToken(ctx *Context, name string, args OrganizationApplicationUserTokenArgs, opts ...ResourceOption) (*OrganizationApplicationUserToken, error)
public OrganizationApplicationUserToken(string name, OrganizationApplicationUserTokenArgs args, CustomResourceOptions? opts = null)
public OrganizationApplicationUserToken(String name, OrganizationApplicationUserTokenArgs args)
public OrganizationApplicationUserToken(String name, OrganizationApplicationUserTokenArgs args, CustomResourceOptions options)
type: aiven:OrganizationApplicationUserToken
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. OrganizationApplicationUserTokenArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. OrganizationApplicationUserTokenArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationApplicationUserTokenArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationApplicationUserTokenArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. OrganizationApplicationUserTokenArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var organizationApplicationUserTokenResource = new Aiven.OrganizationApplicationUserToken("organizationApplicationUserTokenResource", new()
{
    OrganizationId = "string",
    UserId = "string",
    Description = "string",
    ExtendWhenUsed = false,
    IpAllowlists = new[]
    {
        "string",
    },
    MaxAgeSeconds = 0,
    Scopes = new[]
    {
        "string",
    },
});
Copy
example, err := aiven.NewOrganizationApplicationUserToken(ctx, "organizationApplicationUserTokenResource", &aiven.OrganizationApplicationUserTokenArgs{
	OrganizationId: pulumi.String("string"),
	UserId:         pulumi.String("string"),
	Description:    pulumi.String("string"),
	ExtendWhenUsed: pulumi.Bool(false),
	IpAllowlists: pulumi.StringArray{
		pulumi.String("string"),
	},
	MaxAgeSeconds: pulumi.Int(0),
	Scopes: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var organizationApplicationUserTokenResource = new OrganizationApplicationUserToken("organizationApplicationUserTokenResource", OrganizationApplicationUserTokenArgs.builder()
    .organizationId("string")
    .userId("string")
    .description("string")
    .extendWhenUsed(false)
    .ipAllowlists("string")
    .maxAgeSeconds(0)
    .scopes("string")
    .build());
Copy
organization_application_user_token_resource = aiven.OrganizationApplicationUserToken("organizationApplicationUserTokenResource",
    organization_id="string",
    user_id="string",
    description="string",
    extend_when_used=False,
    ip_allowlists=["string"],
    max_age_seconds=0,
    scopes=["string"])
Copy
const organizationApplicationUserTokenResource = new aiven.OrganizationApplicationUserToken("organizationApplicationUserTokenResource", {
    organizationId: "string",
    userId: "string",
    description: "string",
    extendWhenUsed: false,
    ipAllowlists: ["string"],
    maxAgeSeconds: 0,
    scopes: ["string"],
});
Copy
type: aiven:OrganizationApplicationUserToken
properties:
    description: string
    extendWhenUsed: false
    ipAllowlists:
        - string
    maxAgeSeconds: 0
    organizationId: string
    scopes:
        - string
    userId: string
Copy

OrganizationApplicationUserToken Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The OrganizationApplicationUserToken resource accepts the following input properties:

OrganizationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the organization the application user belongs to.
UserId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the application user the token is created for.
Description Changes to this property will trigger replacement. string
Description of the token.
ExtendWhenUsed Changes to this property will trigger replacement. bool
Extends the token session duration when the token is used. Only applicable if a value is set for max_age_seconds.
IpAllowlists Changes to this property will trigger replacement. List<string>
List of allowed IP ranges.
MaxAgeSeconds Changes to this property will trigger replacement. int
The number of hours after which a token expires. If not set, it never expires.
Scopes Changes to this property will trigger replacement. List<string>
Limits access to specific resources by granting read or write privileges to them. For example: billing:read. Available scopes are: authentication, billing, payments for payment methods, privatelink, projects, services, static_ips, and user.
OrganizationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the organization the application user belongs to.
UserId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the application user the token is created for.
Description Changes to this property will trigger replacement. string
Description of the token.
ExtendWhenUsed Changes to this property will trigger replacement. bool
Extends the token session duration when the token is used. Only applicable if a value is set for max_age_seconds.
IpAllowlists Changes to this property will trigger replacement. []string
List of allowed IP ranges.
MaxAgeSeconds Changes to this property will trigger replacement. int
The number of hours after which a token expires. If not set, it never expires.
Scopes Changes to this property will trigger replacement. []string
Limits access to specific resources by granting read or write privileges to them. For example: billing:read. Available scopes are: authentication, billing, payments for payment methods, privatelink, projects, services, static_ips, and user.
organizationId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the organization the application user belongs to.
userId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the application user the token is created for.
description Changes to this property will trigger replacement. String
Description of the token.
extendWhenUsed Changes to this property will trigger replacement. Boolean
Extends the token session duration when the token is used. Only applicable if a value is set for max_age_seconds.
ipAllowlists Changes to this property will trigger replacement. List<String>
List of allowed IP ranges.
maxAgeSeconds Changes to this property will trigger replacement. Integer
The number of hours after which a token expires. If not set, it never expires.
scopes Changes to this property will trigger replacement. List<String>
Limits access to specific resources by granting read or write privileges to them. For example: billing:read. Available scopes are: authentication, billing, payments for payment methods, privatelink, projects, services, static_ips, and user.
organizationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the organization the application user belongs to.
userId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the application user the token is created for.
description Changes to this property will trigger replacement. string
Description of the token.
extendWhenUsed Changes to this property will trigger replacement. boolean
Extends the token session duration when the token is used. Only applicable if a value is set for max_age_seconds.
ipAllowlists Changes to this property will trigger replacement. string[]
List of allowed IP ranges.
maxAgeSeconds Changes to this property will trigger replacement. number
The number of hours after which a token expires. If not set, it never expires.
scopes Changes to this property will trigger replacement. string[]
Limits access to specific resources by granting read or write privileges to them. For example: billing:read. Available scopes are: authentication, billing, payments for payment methods, privatelink, projects, services, static_ips, and user.
organization_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the organization the application user belongs to.
user_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the application user the token is created for.
description Changes to this property will trigger replacement. str
Description of the token.
extend_when_used Changes to this property will trigger replacement. bool
Extends the token session duration when the token is used. Only applicable if a value is set for max_age_seconds.
ip_allowlists Changes to this property will trigger replacement. Sequence[str]
List of allowed IP ranges.
max_age_seconds Changes to this property will trigger replacement. int
The number of hours after which a token expires. If not set, it never expires.
scopes Changes to this property will trigger replacement. Sequence[str]
Limits access to specific resources by granting read or write privileges to them. For example: billing:read. Available scopes are: authentication, billing, payments for payment methods, privatelink, projects, services, static_ips, and user.
organizationId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the organization the application user belongs to.
userId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the application user the token is created for.
description Changes to this property will trigger replacement. String
Description of the token.
extendWhenUsed Changes to this property will trigger replacement. Boolean
Extends the token session duration when the token is used. Only applicable if a value is set for max_age_seconds.
ipAllowlists Changes to this property will trigger replacement. List<String>
List of allowed IP ranges.
maxAgeSeconds Changes to this property will trigger replacement. Number
The number of hours after which a token expires. If not set, it never expires.
scopes Changes to this property will trigger replacement. List<String>
Limits access to specific resources by granting read or write privileges to them. For example: billing:read. Available scopes are: authentication, billing, payments for payment methods, privatelink, projects, services, static_ips, and user.

Outputs

All input properties are implicitly available as output properties. Additionally, the OrganizationApplicationUserToken resource produces the following output properties:

CreateTime string
Time when the token was created.
CreatedManually bool
True for tokens explicitly created using the access_tokens API. False for tokens created when a user logs in.
CurrentlyActive bool
True if the API request was made with this token.
ExpiryTime string
Timestamp when the access token will expire unless extended.
FullToken string
Full token.
Id string
The provider-assigned unique ID for this managed resource.
LastIp string
IP address of the last request made with this token.
LastUsedTime string
Timestamp when the access token was last used.
LastUserAgent string
User agent of the last request made with this token.
LastUserAgentHumanReadable string
User agent of the last request made with this token in human-readable format.
TokenPrefix string
Prefix of the token.
CreateTime string
Time when the token was created.
CreatedManually bool
True for tokens explicitly created using the access_tokens API. False for tokens created when a user logs in.
CurrentlyActive bool
True if the API request was made with this token.
ExpiryTime string
Timestamp when the access token will expire unless extended.
FullToken string
Full token.
Id string
The provider-assigned unique ID for this managed resource.
LastIp string
IP address of the last request made with this token.
LastUsedTime string
Timestamp when the access token was last used.
LastUserAgent string
User agent of the last request made with this token.
LastUserAgentHumanReadable string
User agent of the last request made with this token in human-readable format.
TokenPrefix string
Prefix of the token.
createTime String
Time when the token was created.
createdManually Boolean
True for tokens explicitly created using the access_tokens API. False for tokens created when a user logs in.
currentlyActive Boolean
True if the API request was made with this token.
expiryTime String
Timestamp when the access token will expire unless extended.
fullToken String
Full token.
id String
The provider-assigned unique ID for this managed resource.
lastIp String
IP address of the last request made with this token.
lastUsedTime String
Timestamp when the access token was last used.
lastUserAgent String
User agent of the last request made with this token.
lastUserAgentHumanReadable String
User agent of the last request made with this token in human-readable format.
tokenPrefix String
Prefix of the token.
createTime string
Time when the token was created.
createdManually boolean
True for tokens explicitly created using the access_tokens API. False for tokens created when a user logs in.
currentlyActive boolean
True if the API request was made with this token.
expiryTime string
Timestamp when the access token will expire unless extended.
fullToken string
Full token.
id string
The provider-assigned unique ID for this managed resource.
lastIp string
IP address of the last request made with this token.
lastUsedTime string
Timestamp when the access token was last used.
lastUserAgent string
User agent of the last request made with this token.
lastUserAgentHumanReadable string
User agent of the last request made with this token in human-readable format.
tokenPrefix string
Prefix of the token.
create_time str
Time when the token was created.
created_manually bool
True for tokens explicitly created using the access_tokens API. False for tokens created when a user logs in.
currently_active bool
True if the API request was made with this token.
expiry_time str
Timestamp when the access token will expire unless extended.
full_token str
Full token.
id str
The provider-assigned unique ID for this managed resource.
last_ip str
IP address of the last request made with this token.
last_used_time str
Timestamp when the access token was last used.
last_user_agent str
User agent of the last request made with this token.
last_user_agent_human_readable str
User agent of the last request made with this token in human-readable format.
token_prefix str
Prefix of the token.
createTime String
Time when the token was created.
createdManually Boolean
True for tokens explicitly created using the access_tokens API. False for tokens created when a user logs in.
currentlyActive Boolean
True if the API request was made with this token.
expiryTime String
Timestamp when the access token will expire unless extended.
fullToken String
Full token.
id String
The provider-assigned unique ID for this managed resource.
lastIp String
IP address of the last request made with this token.
lastUsedTime String
Timestamp when the access token was last used.
lastUserAgent String
User agent of the last request made with this token.
lastUserAgentHumanReadable String
User agent of the last request made with this token in human-readable format.
tokenPrefix String
Prefix of the token.

Look up Existing OrganizationApplicationUserToken Resource

Get an existing OrganizationApplicationUserToken resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: OrganizationApplicationUserTokenState, opts?: CustomResourceOptions): OrganizationApplicationUserToken
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[str] = None,
        created_manually: Optional[bool] = None,
        currently_active: Optional[bool] = None,
        description: Optional[str] = None,
        expiry_time: Optional[str] = None,
        extend_when_used: Optional[bool] = None,
        full_token: Optional[str] = None,
        ip_allowlists: Optional[Sequence[str]] = None,
        last_ip: Optional[str] = None,
        last_used_time: Optional[str] = None,
        last_user_agent: Optional[str] = None,
        last_user_agent_human_readable: Optional[str] = None,
        max_age_seconds: Optional[int] = None,
        organization_id: Optional[str] = None,
        scopes: Optional[Sequence[str]] = None,
        token_prefix: Optional[str] = None,
        user_id: Optional[str] = None) -> OrganizationApplicationUserToken
func GetOrganizationApplicationUserToken(ctx *Context, name string, id IDInput, state *OrganizationApplicationUserTokenState, opts ...ResourceOption) (*OrganizationApplicationUserToken, error)
public static OrganizationApplicationUserToken Get(string name, Input<string> id, OrganizationApplicationUserTokenState? state, CustomResourceOptions? opts = null)
public static OrganizationApplicationUserToken get(String name, Output<String> id, OrganizationApplicationUserTokenState state, CustomResourceOptions options)
resources:  _:    type: aiven:OrganizationApplicationUserToken    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreateTime string
Time when the token was created.
CreatedManually bool
True for tokens explicitly created using the access_tokens API. False for tokens created when a user logs in.
CurrentlyActive bool
True if the API request was made with this token.
Description Changes to this property will trigger replacement. string
Description of the token.
ExpiryTime string
Timestamp when the access token will expire unless extended.
ExtendWhenUsed Changes to this property will trigger replacement. bool
Extends the token session duration when the token is used. Only applicable if a value is set for max_age_seconds.
FullToken string
Full token.
IpAllowlists Changes to this property will trigger replacement. List<string>
List of allowed IP ranges.
LastIp string
IP address of the last request made with this token.
LastUsedTime string
Timestamp when the access token was last used.
LastUserAgent string
User agent of the last request made with this token.
LastUserAgentHumanReadable string
User agent of the last request made with this token in human-readable format.
MaxAgeSeconds Changes to this property will trigger replacement. int
The number of hours after which a token expires. If not set, it never expires.
OrganizationId Changes to this property will trigger replacement. string
The ID of the organization the application user belongs to.
Scopes Changes to this property will trigger replacement. List<string>
Limits access to specific resources by granting read or write privileges to them. For example: billing:read. Available scopes are: authentication, billing, payments for payment methods, privatelink, projects, services, static_ips, and user.
TokenPrefix string
Prefix of the token.
UserId Changes to this property will trigger replacement. string
The ID of the application user the token is created for.
CreateTime string
Time when the token was created.
CreatedManually bool
True for tokens explicitly created using the access_tokens API. False for tokens created when a user logs in.
CurrentlyActive bool
True if the API request was made with this token.
Description Changes to this property will trigger replacement. string
Description of the token.
ExpiryTime string
Timestamp when the access token will expire unless extended.
ExtendWhenUsed Changes to this property will trigger replacement. bool
Extends the token session duration when the token is used. Only applicable if a value is set for max_age_seconds.
FullToken string
Full token.
IpAllowlists Changes to this property will trigger replacement. []string
List of allowed IP ranges.
LastIp string
IP address of the last request made with this token.
LastUsedTime string
Timestamp when the access token was last used.
LastUserAgent string
User agent of the last request made with this token.
LastUserAgentHumanReadable string
User agent of the last request made with this token in human-readable format.
MaxAgeSeconds Changes to this property will trigger replacement. int
The number of hours after which a token expires. If not set, it never expires.
OrganizationId Changes to this property will trigger replacement. string
The ID of the organization the application user belongs to.
Scopes Changes to this property will trigger replacement. []string
Limits access to specific resources by granting read or write privileges to them. For example: billing:read. Available scopes are: authentication, billing, payments for payment methods, privatelink, projects, services, static_ips, and user.
TokenPrefix string
Prefix of the token.
UserId Changes to this property will trigger replacement. string
The ID of the application user the token is created for.
createTime String
Time when the token was created.
createdManually Boolean
True for tokens explicitly created using the access_tokens API. False for tokens created when a user logs in.
currentlyActive Boolean
True if the API request was made with this token.
description Changes to this property will trigger replacement. String
Description of the token.
expiryTime String
Timestamp when the access token will expire unless extended.
extendWhenUsed Changes to this property will trigger replacement. Boolean
Extends the token session duration when the token is used. Only applicable if a value is set for max_age_seconds.
fullToken String
Full token.
ipAllowlists Changes to this property will trigger replacement. List<String>
List of allowed IP ranges.
lastIp String
IP address of the last request made with this token.
lastUsedTime String
Timestamp when the access token was last used.
lastUserAgent String
User agent of the last request made with this token.
lastUserAgentHumanReadable String
User agent of the last request made with this token in human-readable format.
maxAgeSeconds Changes to this property will trigger replacement. Integer
The number of hours after which a token expires. If not set, it never expires.
organizationId Changes to this property will trigger replacement. String
The ID of the organization the application user belongs to.
scopes Changes to this property will trigger replacement. List<String>
Limits access to specific resources by granting read or write privileges to them. For example: billing:read. Available scopes are: authentication, billing, payments for payment methods, privatelink, projects, services, static_ips, and user.
tokenPrefix String
Prefix of the token.
userId Changes to this property will trigger replacement. String
The ID of the application user the token is created for.
createTime string
Time when the token was created.
createdManually boolean
True for tokens explicitly created using the access_tokens API. False for tokens created when a user logs in.
currentlyActive boolean
True if the API request was made with this token.
description Changes to this property will trigger replacement. string
Description of the token.
expiryTime string
Timestamp when the access token will expire unless extended.
extendWhenUsed Changes to this property will trigger replacement. boolean
Extends the token session duration when the token is used. Only applicable if a value is set for max_age_seconds.
fullToken string
Full token.
ipAllowlists Changes to this property will trigger replacement. string[]
List of allowed IP ranges.
lastIp string
IP address of the last request made with this token.
lastUsedTime string
Timestamp when the access token was last used.
lastUserAgent string
User agent of the last request made with this token.
lastUserAgentHumanReadable string
User agent of the last request made with this token in human-readable format.
maxAgeSeconds Changes to this property will trigger replacement. number
The number of hours after which a token expires. If not set, it never expires.
organizationId Changes to this property will trigger replacement. string
The ID of the organization the application user belongs to.
scopes Changes to this property will trigger replacement. string[]
Limits access to specific resources by granting read or write privileges to them. For example: billing:read. Available scopes are: authentication, billing, payments for payment methods, privatelink, projects, services, static_ips, and user.
tokenPrefix string
Prefix of the token.
userId Changes to this property will trigger replacement. string
The ID of the application user the token is created for.
create_time str
Time when the token was created.
created_manually bool
True for tokens explicitly created using the access_tokens API. False for tokens created when a user logs in.
currently_active bool
True if the API request was made with this token.
description Changes to this property will trigger replacement. str
Description of the token.
expiry_time str
Timestamp when the access token will expire unless extended.
extend_when_used Changes to this property will trigger replacement. bool
Extends the token session duration when the token is used. Only applicable if a value is set for max_age_seconds.
full_token str
Full token.
ip_allowlists Changes to this property will trigger replacement. Sequence[str]
List of allowed IP ranges.
last_ip str
IP address of the last request made with this token.
last_used_time str
Timestamp when the access token was last used.
last_user_agent str
User agent of the last request made with this token.
last_user_agent_human_readable str
User agent of the last request made with this token in human-readable format.
max_age_seconds Changes to this property will trigger replacement. int
The number of hours after which a token expires. If not set, it never expires.
organization_id Changes to this property will trigger replacement. str
The ID of the organization the application user belongs to.
scopes Changes to this property will trigger replacement. Sequence[str]
Limits access to specific resources by granting read or write privileges to them. For example: billing:read. Available scopes are: authentication, billing, payments for payment methods, privatelink, projects, services, static_ips, and user.
token_prefix str
Prefix of the token.
user_id Changes to this property will trigger replacement. str
The ID of the application user the token is created for.
createTime String
Time when the token was created.
createdManually Boolean
True for tokens explicitly created using the access_tokens API. False for tokens created when a user logs in.
currentlyActive Boolean
True if the API request was made with this token.
description Changes to this property will trigger replacement. String
Description of the token.
expiryTime String
Timestamp when the access token will expire unless extended.
extendWhenUsed Changes to this property will trigger replacement. Boolean
Extends the token session duration when the token is used. Only applicable if a value is set for max_age_seconds.
fullToken String
Full token.
ipAllowlists Changes to this property will trigger replacement. List<String>
List of allowed IP ranges.
lastIp String
IP address of the last request made with this token.
lastUsedTime String
Timestamp when the access token was last used.
lastUserAgent String
User agent of the last request made with this token.
lastUserAgentHumanReadable String
User agent of the last request made with this token in human-readable format.
maxAgeSeconds Changes to this property will trigger replacement. Number
The number of hours after which a token expires. If not set, it never expires.
organizationId Changes to this property will trigger replacement. String
The ID of the organization the application user belongs to.
scopes Changes to this property will trigger replacement. List<String>
Limits access to specific resources by granting read or write privileges to them. For example: billing:read. Available scopes are: authentication, billing, payments for payment methods, privatelink, projects, services, static_ips, and user.
tokenPrefix String
Prefix of the token.
userId Changes to this property will trigger replacement. String
The ID of the application user the token is created for.

Import

$ pulumi import aiven:index/organizationApplicationUserToken:OrganizationApplicationUserToken example ORGANIZATION_ID/USER_ID/TOKEN_PREFIX
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Aiven pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.