published on Monday, Aug 17, 2026 by stackitcloud
published on Monday, Aug 17, 2026 by stackitcloud
Logs access token resource schema. Uses the defaultRegion specified in the provider configuration as a fallback in case no region is defined on resource level.
Example Usage
resource "stackit_logs_access_token" "accessToken" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
display_name = "logs-access-token-example"
permissions = [
"read"
]
}
resource "stackit_logs_access_token" "accessToken2" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
display_name = "logs-access-token-example"
lifetime = 30
permissions = [
"write"
]
description = "Example description"
}
resource "time_rotating" "rotate" {
rotation_days = 10
}
resource "stackit_logs_access_token" "accessToken_rotate" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
display_name = "logs-access-token-example"
lifetime = 30
permissions = [
"write"
]
description = "Example description"
rotate_when_changed = {
rotation = time_rotating.rotate.id
}
}
Create LogsAccessToken Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogsAccessToken(name: string, args: LogsAccessTokenArgs, opts?: CustomResourceOptions);@overload
def LogsAccessToken(resource_name: str,
args: LogsAccessTokenArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogsAccessToken(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
instance_id: Optional[str] = None,
permissions: Optional[Sequence[str]] = None,
project_id: Optional[str] = None,
description: Optional[str] = None,
lifetime: Optional[int] = None,
region: Optional[str] = None,
rotate_when_changed: Optional[Mapping[str, str]] = None)func NewLogsAccessToken(ctx *Context, name string, args LogsAccessTokenArgs, opts ...ResourceOption) (*LogsAccessToken, error)public LogsAccessToken(string name, LogsAccessTokenArgs args, CustomResourceOptions? opts = null)
public LogsAccessToken(String name, LogsAccessTokenArgs args)
public LogsAccessToken(String name, LogsAccessTokenArgs args, CustomResourceOptions options)
type: stackit:LogsAccessToken
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "stackit_logs_access_token" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args LogsAccessTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LogsAccessTokenArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LogsAccessTokenArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogsAccessTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogsAccessTokenArgs
- 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 logsAccessTokenResource = new Stackit.LogsAccessToken("logsAccessTokenResource", new()
{
DisplayName = "string",
InstanceId = "string",
Permissions = new[]
{
"string",
},
ProjectId = "string",
Description = "string",
Lifetime = 0,
Region = "string",
RotateWhenChanged =
{
{ "string", "string" },
},
});
example, err := stackit.NewLogsAccessToken(ctx, "logsAccessTokenResource", &stackit.LogsAccessTokenArgs{
DisplayName: pulumi.String("string"),
InstanceId: pulumi.String("string"),
Permissions: pulumi.StringArray{
pulumi.String("string"),
},
ProjectId: pulumi.String("string"),
Description: pulumi.String("string"),
Lifetime: pulumi.Int(0),
Region: pulumi.String("string"),
RotateWhenChanged: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
resource "stackit_logs_access_token" "logsAccessTokenResource" {
lifecycle {
create_before_destroy = true
}
display_name = "string"
instance_id = "string"
permissions = ["string"]
project_id = "string"
description = "string"
lifetime = 0
region = "string"
rotate_when_changed = {
"string" = "string"
}
}
var logsAccessTokenResource = new LogsAccessToken("logsAccessTokenResource", LogsAccessTokenArgs.builder()
.displayName("string")
.instanceId("string")
.permissions("string")
.projectId("string")
.description("string")
.lifetime(0)
.region("string")
.rotateWhenChanged(Map.of("string", "string"))
.build());
logs_access_token_resource = stackit.LogsAccessToken("logsAccessTokenResource",
display_name="string",
instance_id="string",
permissions=["string"],
project_id="string",
description="string",
lifetime=0,
region="string",
rotate_when_changed={
"string": "string",
})
const logsAccessTokenResource = new stackit.LogsAccessToken("logsAccessTokenResource", {
displayName: "string",
instanceId: "string",
permissions: ["string"],
projectId: "string",
description: "string",
lifetime: 0,
region: "string",
rotateWhenChanged: {
string: "string",
},
});
type: stackit:LogsAccessToken
properties:
description: string
displayName: string
instanceId: string
lifetime: 0
permissions:
- string
projectId: string
region: string
rotateWhenChanged:
string: string
LogsAccessToken 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 LogsAccessToken resource accepts the following input properties:
- Display
Name string - The displayed name of the access token
- Instance
Id string - The Logs instance ID associated with the access token
- Permissions List<string>
- The access permissions granted to the access token. Possible values:
read,write. - Project
Id string - STACKIT project ID associated with the Logs access token
- Description string
- The description of the access token
- Lifetime int
- A lifetime period for an access token in days. If unset the token will not expire.
- Region string
- STACKIT region name the resource is located in. If not defined, the provider region is used.
- Rotate
When Dictionary<string, string>Changed - A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- Display
Name string - The displayed name of the access token
- Instance
Id string - The Logs instance ID associated with the access token
- Permissions []string
- The access permissions granted to the access token. Possible values:
read,write. - Project
Id string - STACKIT project ID associated with the Logs access token
- Description string
- The description of the access token
- Lifetime int
- A lifetime period for an access token in days. If unset the token will not expire.
- Region string
- STACKIT region name the resource is located in. If not defined, the provider region is used.
- Rotate
When map[string]stringChanged - A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- display_
name string - The displayed name of the access token
- instance_
id string - The Logs instance ID associated with the access token
- permissions list(string)
- The access permissions granted to the access token. Possible values:
read,write. - project_
id string - STACKIT project ID associated with the Logs access token
- description string
- The description of the access token
- lifetime number
- A lifetime period for an access token in days. If unset the token will not expire.
- region string
- STACKIT region name the resource is located in. If not defined, the provider region is used.
- rotate_
when_ map(string)changed - A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- display
Name String - The displayed name of the access token
- instance
Id String - The Logs instance ID associated with the access token
- permissions List<String>
- The access permissions granted to the access token. Possible values:
read,write. - project
Id String - STACKIT project ID associated with the Logs access token
- description String
- The description of the access token
- lifetime Integer
- A lifetime period for an access token in days. If unset the token will not expire.
- region String
- STACKIT region name the resource is located in. If not defined, the provider region is used.
- rotate
When Map<String,String>Changed - A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- display
Name string - The displayed name of the access token
- instance
Id string - The Logs instance ID associated with the access token
- permissions string[]
- The access permissions granted to the access token. Possible values:
read,write. - project
Id string - STACKIT project ID associated with the Logs access token
- description string
- The description of the access token
- lifetime number
- A lifetime period for an access token in days. If unset the token will not expire.
- region string
- STACKIT region name the resource is located in. If not defined, the provider region is used.
- rotate
When {[key: string]: string}Changed - A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- display_
name str - The displayed name of the access token
- instance_
id str - The Logs instance ID associated with the access token
- permissions Sequence[str]
- The access permissions granted to the access token. Possible values:
read,write. - project_
id str - STACKIT project ID associated with the Logs access token
- description str
- The description of the access token
- lifetime int
- A lifetime period for an access token in days. If unset the token will not expire.
- region str
- STACKIT region name the resource is located in. If not defined, the provider region is used.
- rotate_
when_ Mapping[str, str]changed - A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- display
Name String - The displayed name of the access token
- instance
Id String - The Logs instance ID associated with the access token
- permissions List<String>
- The access permissions granted to the access token. Possible values:
read,write. - project
Id String - STACKIT project ID associated with the Logs access token
- description String
- The description of the access token
- lifetime Number
- A lifetime period for an access token in days. If unset the token will not expire.
- region String
- STACKIT region name the resource is located in. If not defined, the provider region is used.
- rotate
When Map<String>Changed - A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the LogsAccessToken resource produces the following output properties:
- Access
Token string - The generated access token
- Access
Token stringId - The access token ID
- Creator string
- The user who created the access token
- Expires bool
- Indicates if the access token can expire
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the access token. Possible values are:
active,expired. - Valid
Until string - The date and time until an access token is valid to (inclusively)
- Access
Token string - The generated access token
- Access
Token stringId - The access token ID
- Creator string
- The user who created the access token
- Expires bool
- Indicates if the access token can expire
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the access token. Possible values are:
active,expired. - Valid
Until string - The date and time until an access token is valid to (inclusively)
- access_
token string - The generated access token
- access_
token_ stringid - The access token ID
- creator string
- The user who created the access token
- expires bool
- Indicates if the access token can expire
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The status of the access token. Possible values are:
active,expired. - valid_
until string - The date and time until an access token is valid to (inclusively)
- access
Token String - The generated access token
- access
Token StringId - The access token ID
- creator String
- The user who created the access token
- expires Boolean
- Indicates if the access token can expire
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the access token. Possible values are:
active,expired. - valid
Until String - The date and time until an access token is valid to (inclusively)
- access
Token string - The generated access token
- access
Token stringId - The access token ID
- creator string
- The user who created the access token
- expires boolean
- Indicates if the access token can expire
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The status of the access token. Possible values are:
active,expired. - valid
Until string - The date and time until an access token is valid to (inclusively)
- access_
token str - The generated access token
- access_
token_ strid - The access token ID
- creator str
- The user who created the access token
- expires bool
- Indicates if the access token can expire
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The status of the access token. Possible values are:
active,expired. - valid_
until str - The date and time until an access token is valid to (inclusively)
- access
Token String - The generated access token
- access
Token StringId - The access token ID
- creator String
- The user who created the access token
- expires Boolean
- Indicates if the access token can expire
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the access token. Possible values are:
active,expired. - valid
Until String - The date and time until an access token is valid to (inclusively)
Look up Existing LogsAccessToken Resource
Get an existing LogsAccessToken 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?: LogsAccessTokenState, opts?: CustomResourceOptions): LogsAccessToken@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_token: Optional[str] = None,
access_token_id: Optional[str] = None,
creator: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
expires: Optional[bool] = None,
instance_id: Optional[str] = None,
lifetime: Optional[int] = None,
permissions: Optional[Sequence[str]] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
rotate_when_changed: Optional[Mapping[str, str]] = None,
status: Optional[str] = None,
valid_until: Optional[str] = None) -> LogsAccessTokenfunc GetLogsAccessToken(ctx *Context, name string, id IDInput, state *LogsAccessTokenState, opts ...ResourceOption) (*LogsAccessToken, error)public static LogsAccessToken Get(string name, Input<string> id, LogsAccessTokenState? state, CustomResourceOptions? opts = null)public static LogsAccessToken get(String name, Output<String> id, LogsAccessTokenState state, CustomResourceOptions options)resources: _: type: stackit:LogsAccessToken get: id: ${id}import {
to = stackit_logs_access_token.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Access
Token string - The generated access token
- Access
Token stringId - The access token ID
- Creator string
- The user who created the access token
- Description string
- The description of the access token
- Display
Name string - The displayed name of the access token
- Expires bool
- Indicates if the access token can expire
- Instance
Id string - The Logs instance ID associated with the access token
- Lifetime int
- A lifetime period for an access token in days. If unset the token will not expire.
- Permissions List<string>
- The access permissions granted to the access token. Possible values:
read,write. - Project
Id string - STACKIT project ID associated with the Logs access token
- Region string
- STACKIT region name the resource is located in. If not defined, the provider region is used.
- Rotate
When Dictionary<string, string>Changed - A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- Status string
- The status of the access token. Possible values are:
active,expired. - Valid
Until string - The date and time until an access token is valid to (inclusively)
- Access
Token string - The generated access token
- Access
Token stringId - The access token ID
- Creator string
- The user who created the access token
- Description string
- The description of the access token
- Display
Name string - The displayed name of the access token
- Expires bool
- Indicates if the access token can expire
- Instance
Id string - The Logs instance ID associated with the access token
- Lifetime int
- A lifetime period for an access token in days. If unset the token will not expire.
- Permissions []string
- The access permissions granted to the access token. Possible values:
read,write. - Project
Id string - STACKIT project ID associated with the Logs access token
- Region string
- STACKIT region name the resource is located in. If not defined, the provider region is used.
- Rotate
When map[string]stringChanged - A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- Status string
- The status of the access token. Possible values are:
active,expired. - Valid
Until string - The date and time until an access token is valid to (inclusively)
- access_
token string - The generated access token
- access_
token_ stringid - The access token ID
- creator string
- The user who created the access token
- description string
- The description of the access token
- display_
name string - The displayed name of the access token
- expires bool
- Indicates if the access token can expire
- instance_
id string - The Logs instance ID associated with the access token
- lifetime number
- A lifetime period for an access token in days. If unset the token will not expire.
- permissions list(string)
- The access permissions granted to the access token. Possible values:
read,write. - project_
id string - STACKIT project ID associated with the Logs access token
- region string
- STACKIT region name the resource is located in. If not defined, the provider region is used.
- rotate_
when_ map(string)changed - A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- status string
- The status of the access token. Possible values are:
active,expired. - valid_
until string - The date and time until an access token is valid to (inclusively)
- access
Token String - The generated access token
- access
Token StringId - The access token ID
- creator String
- The user who created the access token
- description String
- The description of the access token
- display
Name String - The displayed name of the access token
- expires Boolean
- Indicates if the access token can expire
- instance
Id String - The Logs instance ID associated with the access token
- lifetime Integer
- A lifetime period for an access token in days. If unset the token will not expire.
- permissions List<String>
- The access permissions granted to the access token. Possible values:
read,write. - project
Id String - STACKIT project ID associated with the Logs access token
- region String
- STACKIT region name the resource is located in. If not defined, the provider region is used.
- rotate
When Map<String,String>Changed - A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- status String
- The status of the access token. Possible values are:
active,expired. - valid
Until String - The date and time until an access token is valid to (inclusively)
- access
Token string - The generated access token
- access
Token stringId - The access token ID
- creator string
- The user who created the access token
- description string
- The description of the access token
- display
Name string - The displayed name of the access token
- expires boolean
- Indicates if the access token can expire
- instance
Id string - The Logs instance ID associated with the access token
- lifetime number
- A lifetime period for an access token in days. If unset the token will not expire.
- permissions string[]
- The access permissions granted to the access token. Possible values:
read,write. - project
Id string - STACKIT project ID associated with the Logs access token
- region string
- STACKIT region name the resource is located in. If not defined, the provider region is used.
- rotate
When {[key: string]: string}Changed - A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- status string
- The status of the access token. Possible values are:
active,expired. - valid
Until string - The date and time until an access token is valid to (inclusively)
- access_
token str - The generated access token
- access_
token_ strid - The access token ID
- creator str
- The user who created the access token
- description str
- The description of the access token
- display_
name str - The displayed name of the access token
- expires bool
- Indicates if the access token can expire
- instance_
id str - The Logs instance ID associated with the access token
- lifetime int
- A lifetime period for an access token in days. If unset the token will not expire.
- permissions Sequence[str]
- The access permissions granted to the access token. Possible values:
read,write. - project_
id str - STACKIT project ID associated with the Logs access token
- region str
- STACKIT region name the resource is located in. If not defined, the provider region is used.
- rotate_
when_ Mapping[str, str]changed - A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- status str
- The status of the access token. Possible values are:
active,expired. - valid_
until str - The date and time until an access token is valid to (inclusively)
- access
Token String - The generated access token
- access
Token StringId - The access token ID
- creator String
- The user who created the access token
- description String
- The description of the access token
- display
Name String - The displayed name of the access token
- expires Boolean
- Indicates if the access token can expire
- instance
Id String - The Logs instance ID associated with the access token
- lifetime Number
- A lifetime period for an access token in days. If unset the token will not expire.
- permissions List<String>
- The access permissions granted to the access token. Possible values:
read,write. - project
Id String - STACKIT project ID associated with the Logs access token
- region String
- STACKIT region name the resource is located in. If not defined, the provider region is used.
- rotate
When Map<String>Changed - A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- status String
- The status of the access token. Possible values are:
active,expired. - valid
Until String - The date and time until an access token is valid to (inclusively)
Import
In Terraform v1.5.0 and later, the + "" + import + “" + block can be used with the + "” + id + “" + attribute, for example:
# Only use the import statement, if you want to import an existing logs access token
# Note: The generated access token is only available upon creation.
# Since this attribute is not fetched from the API call, to prevent the conflicts, you need to add:
# lifecycle {
# ignore_changes = [ lifetime ]
# }
import {
to = stackit_logs_access_token.import-example
id = "${var.project_id},${var.region},${var.logs_instance_id},${var.logs_access_token_id}"
}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
published on Monday, Aug 17, 2026 by stackitcloud