1. Packages
  2. stackit
  3. API Docs
  4. LogsAccessToken
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud

    Logs access token resource schema. Uses the default_region 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"
    }
    
    # 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}"
    }
    

    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)
    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.
    
    

    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",
    });
    
    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"),
    })
    
    var logsAccessTokenResource = new LogsAccessToken("logsAccessTokenResource", LogsAccessTokenArgs.builder()
        .displayName("string")
        .instanceId("string")
        .permissions("string")
        .projectId("string")
        .description("string")
        .lifetime(0)
        .region("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")
    
    const logsAccessTokenResource = new stackit.LogsAccessToken("logsAccessTokenResource", {
        displayName: "string",
        instanceId: "string",
        permissions: ["string"],
        projectId: "string",
        description: "string",
        lifetime: 0,
        region: "string",
    });
    
    type: stackit:LogsAccessToken
    properties:
        description: string
        displayName: string
        instanceId: string
        lifetime: 0
        permissions:
            - string
        projectId: string
        region: 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:

    DisplayName string
    The displayed name of the access token
    InstanceId 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.
    ProjectId 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.
    DisplayName string
    The displayed name of the access token
    InstanceId string
    The Logs instance ID associated with the access token
    Permissions []string
    The access permissions granted to the access token. Possible values: read, write.
    ProjectId 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.
    displayName String
    The displayed name of the access token
    instanceId 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.
    projectId 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.
    displayName string
    The displayed name of the access token
    instanceId string
    The Logs instance ID associated with the access token
    permissions string[]
    The access permissions granted to the access token. Possible values: read, write.
    projectId 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.
    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.
    displayName String
    The displayed name of the access token
    instanceId 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.
    projectId 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.

    Outputs

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

    AccessToken string
    The generated access token
    AccessTokenId string
    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.
    ValidUntil string
    The date and time until an access token is valid to (inclusively)
    AccessToken string
    The generated access token
    AccessTokenId string
    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.
    ValidUntil string
    The date and time until an access token is valid to (inclusively)
    accessToken String
    The generated access token
    accessTokenId String
    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.
    validUntil String
    The date and time until an access token is valid to (inclusively)
    accessToken string
    The generated access token
    accessTokenId string
    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.
    validUntil string
    The date and time until an access token is valid to (inclusively)
    access_token str
    The generated access token
    access_token_id str
    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)
    accessToken String
    The generated access token
    accessTokenId String
    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.
    validUntil 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,
            status: Optional[str] = None,
            valid_until: Optional[str] = None) -> LogsAccessToken
    func 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}
    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.
    The following state arguments are supported:
    AccessToken string
    The generated access token
    AccessTokenId string
    The access token ID
    Creator string
    The user who created the access token
    Description string
    The description of the access token
    DisplayName string
    The displayed name of the access token
    Expires bool
    Indicates if the access token can expire
    InstanceId 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.
    ProjectId 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.
    Status string
    The status of the access token. Possible values are: active, expired.
    ValidUntil string
    The date and time until an access token is valid to (inclusively)
    AccessToken string
    The generated access token
    AccessTokenId string
    The access token ID
    Creator string
    The user who created the access token
    Description string
    The description of the access token
    DisplayName string
    The displayed name of the access token
    Expires bool
    Indicates if the access token can expire
    InstanceId 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.
    ProjectId 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.
    Status string
    The status of the access token. Possible values are: active, expired.
    ValidUntil string
    The date and time until an access token is valid to (inclusively)
    accessToken String
    The generated access token
    accessTokenId String
    The access token ID
    creator String
    The user who created the access token
    description String
    The description of the access token
    displayName String
    The displayed name of the access token
    expires Boolean
    Indicates if the access token can expire
    instanceId 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.
    projectId 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.
    status String
    The status of the access token. Possible values are: active, expired.
    validUntil String
    The date and time until an access token is valid to (inclusively)
    accessToken string
    The generated access token
    accessTokenId string
    The access token ID
    creator string
    The user who created the access token
    description string
    The description of the access token
    displayName string
    The displayed name of the access token
    expires boolean
    Indicates if the access token can expire
    instanceId 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.
    projectId 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.
    status string
    The status of the access token. Possible values are: active, expired.
    validUntil string
    The date and time until an access token is valid to (inclusively)
    access_token str
    The generated access token
    access_token_id str
    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.
    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)
    accessToken String
    The generated access token
    accessTokenId String
    The access token ID
    creator String
    The user who created the access token
    description String
    The description of the access token
    displayName String
    The displayed name of the access token
    expires Boolean
    Indicates if the access token can expire
    instanceId 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.
    projectId 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.
    status String
    The status of the access token. Possible values are: active, expired.
    validUntil String
    The date and time until an access token is valid to (inclusively)

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.