1. Registry
  2. Packages
  3. stackit
  4. API Docs
  5. ModelexperimentsToken
Viewing docs for stackit v0.0.7
published on Monday, Aug 17, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.7
published on Monday, Aug 17, 2026 by stackitcloud

    Manages a STACKIT AI Model Experiments instance tokens.

    Example Usage

    resource "stackit_modelexperiments_instance" "example" {
      project_id                   = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      region                       = "eu01"
      name                         = "Example name"
      description                  = "Example description"
      deleted_experiment_retention = "30d"
      labels = {
        label = "ExampleLabel"
      }
    }
    
    resource "time_rotating" "rotate" {
      rotation_days = 80
    }
    
    resource "stackit_modelexperiments_token" "token" {
      project_id   = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name         = "Example token nane"
      region       = "eu01"
      instance_id  = stackit_modelexperiments_instance.example.instance_id
      description  = "Example token description"
      ttl_duration = "80d"
      labels = {
        label = "ExampleLlabel"
      }
      rotate_when_changed = {
        rotation = time_rotating.rotate.id
      }
    }
    

    Create ModelexperimentsToken Resource

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

    Constructor syntax

    new ModelexperimentsToken(name: string, args: ModelexperimentsTokenArgs, opts?: CustomResourceOptions);
    @overload
    def ModelexperimentsToken(resource_name: str,
                              args: ModelexperimentsTokenArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ModelexperimentsToken(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              instance_id: Optional[str] = None,
                              project_id: Optional[str] = None,
                              description: Optional[str] = None,
                              labels: Optional[Mapping[str, str]] = None,
                              name: Optional[str] = None,
                              region: Optional[str] = None,
                              rotate_when_changed: Optional[Mapping[str, str]] = None,
                              ttl_duration: Optional[str] = None)
    func NewModelexperimentsToken(ctx *Context, name string, args ModelexperimentsTokenArgs, opts ...ResourceOption) (*ModelexperimentsToken, error)
    public ModelexperimentsToken(string name, ModelexperimentsTokenArgs args, CustomResourceOptions? opts = null)
    public ModelexperimentsToken(String name, ModelexperimentsTokenArgs args)
    public ModelexperimentsToken(String name, ModelexperimentsTokenArgs args, CustomResourceOptions options)
    
    type: stackit:ModelexperimentsToken
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "stackit_modelexperiments_token" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ModelexperimentsTokenArgs
    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 ModelexperimentsTokenArgs
    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 ModelexperimentsTokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ModelexperimentsTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ModelexperimentsTokenArgs
    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 modelexperimentsTokenResource = new Stackit.ModelexperimentsToken("modelexperimentsTokenResource", new()
    {
        InstanceId = "string",
        ProjectId = "string",
        Description = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Name = "string",
        Region = "string",
        RotateWhenChanged = 
        {
            { "string", "string" },
        },
        TtlDuration = "string",
    });
    
    example, err := stackit.NewModelexperimentsToken(ctx, "modelexperimentsTokenResource", &stackit.ModelexperimentsTokenArgs{
    	InstanceId:  pulumi.String("string"),
    	ProjectId:   pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:   pulumi.String("string"),
    	Region: pulumi.String("string"),
    	RotateWhenChanged: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TtlDuration: pulumi.String("string"),
    })
    
    resource "stackit_modelexperiments_token" "modelexperimentsTokenResource" {
      lifecycle {
        create_before_destroy = true
      }
      instance_id = "string"
      project_id  = "string"
      description = "string"
      labels = {
        "string" = "string"
      }
      name   = "string"
      region = "string"
      rotate_when_changed = {
        "string" = "string"
      }
      ttl_duration = "string"
    }
    
    var modelexperimentsTokenResource = new ModelexperimentsToken("modelexperimentsTokenResource", ModelexperimentsTokenArgs.builder()
        .instanceId("string")
        .projectId("string")
        .description("string")
        .labels(Map.of("string", "string"))
        .name("string")
        .region("string")
        .rotateWhenChanged(Map.of("string", "string"))
        .ttlDuration("string")
        .build());
    
    modelexperiments_token_resource = stackit.ModelexperimentsToken("modelexperimentsTokenResource",
        instance_id="string",
        project_id="string",
        description="string",
        labels={
            "string": "string",
        },
        name="string",
        region="string",
        rotate_when_changed={
            "string": "string",
        },
        ttl_duration="string")
    
    const modelexperimentsTokenResource = new stackit.ModelexperimentsToken("modelexperimentsTokenResource", {
        instanceId: "string",
        projectId: "string",
        description: "string",
        labels: {
            string: "string",
        },
        name: "string",
        region: "string",
        rotateWhenChanged: {
            string: "string",
        },
        ttlDuration: "string",
    });
    
    type: stackit:ModelexperimentsToken
    properties:
        description: string
        instanceId: string
        labels:
            string: string
        name: string
        projectId: string
        region: string
        rotateWhenChanged:
            string: string
        ttlDuration: string
    

    ModelexperimentsToken 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 ModelexperimentsToken resource accepts the following input properties:

    InstanceId string
    The AI Model Experiments instance ID.
    ProjectId string
    STACKIT Project ID to which the resource is associated.
    Description string
    The description is a longer text chosen by the user to provide more context for the resource.
    Labels Dictionary<string, string>
    A map of arbitrary key/value pairs that can be attached to the resource
    Name string
    The display name is a short name chosen by the user to identify the resource.
    Region string
    The STACKIT region name the resource is located in. If not defined, the provider region is used.
    RotateWhenChanged Dictionary<string, string>
    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.
    TtlDuration string
    The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s
    InstanceId string
    The AI Model Experiments instance ID.
    ProjectId string
    STACKIT Project ID to which the resource is associated.
    Description string
    The description is a longer text chosen by the user to provide more context for the resource.
    Labels map[string]string
    A map of arbitrary key/value pairs that can be attached to the resource
    Name string
    The display name is a short name chosen by the user to identify the resource.
    Region string
    The STACKIT region name the resource is located in. If not defined, the provider region is used.
    RotateWhenChanged map[string]string
    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.
    TtlDuration string
    The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s
    instance_id string
    The AI Model Experiments instance ID.
    project_id string
    STACKIT Project ID to which the resource is associated.
    description string
    The description is a longer text chosen by the user to provide more context for the resource.
    labels map(string)
    A map of arbitrary key/value pairs that can be attached to the resource
    name string
    The display name is a short name chosen by the user to identify the resource.
    region string
    The STACKIT region name the resource is located in. If not defined, the provider region is used.
    rotate_when_changed map(string)
    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.
    ttl_duration string
    The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s
    instanceId String
    The AI Model Experiments instance ID.
    projectId String
    STACKIT Project ID to which the resource is associated.
    description String
    The description is a longer text chosen by the user to provide more context for the resource.
    labels Map<String,String>
    A map of arbitrary key/value pairs that can be attached to the resource
    name String
    The display name is a short name chosen by the user to identify the resource.
    region String
    The STACKIT region name the resource is located in. If not defined, the provider region is used.
    rotateWhenChanged Map<String,String>
    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.
    ttlDuration String
    The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s
    instanceId string
    The AI Model Experiments instance ID.
    projectId string
    STACKIT Project ID to which the resource is associated.
    description string
    The description is a longer text chosen by the user to provide more context for the resource.
    labels {[key: string]: string}
    A map of arbitrary key/value pairs that can be attached to the resource
    name string
    The display name is a short name chosen by the user to identify the resource.
    region string
    The STACKIT region name the resource is located in. If not defined, the provider region is used.
    rotateWhenChanged {[key: string]: string}
    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.
    ttlDuration string
    The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s
    instance_id str
    The AI Model Experiments instance ID.
    project_id str
    STACKIT Project ID to which the resource is associated.
    description str
    The description is a longer text chosen by the user to provide more context for the resource.
    labels Mapping[str, str]
    A map of arbitrary key/value pairs that can be attached to the resource
    name str
    The display name is a short name chosen by the user to identify the resource.
    region str
    The STACKIT region name the resource is located in. If not defined, the provider region is used.
    rotate_when_changed Mapping[str, str]
    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.
    ttl_duration str
    The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s
    instanceId String
    The AI Model Experiments instance ID.
    projectId String
    STACKIT Project ID to which the resource is associated.
    description String
    The description is a longer text chosen by the user to provide more context for the resource.
    labels Map<String>
    A map of arbitrary key/value pairs that can be attached to the resource
    name String
    The display name is a short name chosen by the user to identify the resource.
    region String
    The STACKIT region name the resource is located in. If not defined, the provider region is used.
    rotateWhenChanged Map<String>
    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.
    ttlDuration String
    The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    The content of the AI Model Experiments instance token.
    TokenId string
    The AI Model Experiments instance token ID.
    ValidUntil string
    The time until the AI Model Experiments instance token is valid.
    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    The content of the AI Model Experiments instance token.
    TokenId string
    The AI Model Experiments instance token ID.
    ValidUntil string
    The time until the AI Model Experiments instance token is valid.
    id string
    The provider-assigned unique ID for this managed resource.
    token string
    The content of the AI Model Experiments instance token.
    token_id string
    The AI Model Experiments instance token ID.
    valid_until string
    The time until the AI Model Experiments instance token is valid.
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    The content of the AI Model Experiments instance token.
    tokenId String
    The AI Model Experiments instance token ID.
    validUntil String
    The time until the AI Model Experiments instance token is valid.
    id string
    The provider-assigned unique ID for this managed resource.
    token string
    The content of the AI Model Experiments instance token.
    tokenId string
    The AI Model Experiments instance token ID.
    validUntil string
    The time until the AI Model Experiments instance token is valid.
    id str
    The provider-assigned unique ID for this managed resource.
    token str
    The content of the AI Model Experiments instance token.
    token_id str
    The AI Model Experiments instance token ID.
    valid_until str
    The time until the AI Model Experiments instance token is valid.
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    The content of the AI Model Experiments instance token.
    tokenId String
    The AI Model Experiments instance token ID.
    validUntil String
    The time until the AI Model Experiments instance token is valid.

    Look up Existing ModelexperimentsToken Resource

    Get an existing ModelexperimentsToken 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?: ModelexperimentsTokenState, opts?: CustomResourceOptions): ModelexperimentsToken
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            instance_id: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            rotate_when_changed: Optional[Mapping[str, str]] = None,
            token: Optional[str] = None,
            token_id: Optional[str] = None,
            ttl_duration: Optional[str] = None,
            valid_until: Optional[str] = None) -> ModelexperimentsToken
    func GetModelexperimentsToken(ctx *Context, name string, id IDInput, state *ModelexperimentsTokenState, opts ...ResourceOption) (*ModelexperimentsToken, error)
    public static ModelexperimentsToken Get(string name, Input<string> id, ModelexperimentsTokenState? state, CustomResourceOptions? opts = null)
    public static ModelexperimentsToken get(String name, Output<String> id, ModelexperimentsTokenState state, CustomResourceOptions options)
    resources:  _:    type: stackit:ModelexperimentsToken    get:      id: ${id}
    import {
      to = stackit_modelexperiments_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.
    The following state arguments are supported:
    Description string
    The description is a longer text chosen by the user to provide more context for the resource.
    InstanceId string
    The AI Model Experiments instance ID.
    Labels Dictionary<string, string>
    A map of arbitrary key/value pairs that can be attached to the resource
    Name string
    The display name is a short name chosen by the user to identify the resource.
    ProjectId string
    STACKIT Project ID to which the resource is associated.
    Region string
    The STACKIT region name the resource is located in. If not defined, the provider region is used.
    RotateWhenChanged Dictionary<string, string>
    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.
    Token string
    The content of the AI Model Experiments instance token.
    TokenId string
    The AI Model Experiments instance token ID.
    TtlDuration string
    The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s
    ValidUntil string
    The time until the AI Model Experiments instance token is valid.
    Description string
    The description is a longer text chosen by the user to provide more context for the resource.
    InstanceId string
    The AI Model Experiments instance ID.
    Labels map[string]string
    A map of arbitrary key/value pairs that can be attached to the resource
    Name string
    The display name is a short name chosen by the user to identify the resource.
    ProjectId string
    STACKIT Project ID to which the resource is associated.
    Region string
    The STACKIT region name the resource is located in. If not defined, the provider region is used.
    RotateWhenChanged map[string]string
    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.
    Token string
    The content of the AI Model Experiments instance token.
    TokenId string
    The AI Model Experiments instance token ID.
    TtlDuration string
    The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s
    ValidUntil string
    The time until the AI Model Experiments instance token is valid.
    description string
    The description is a longer text chosen by the user to provide more context for the resource.
    instance_id string
    The AI Model Experiments instance ID.
    labels map(string)
    A map of arbitrary key/value pairs that can be attached to the resource
    name string
    The display name is a short name chosen by the user to identify the resource.
    project_id string
    STACKIT Project ID to which the resource is associated.
    region string
    The STACKIT region name the resource is located in. If not defined, the provider region is used.
    rotate_when_changed map(string)
    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.
    token string
    The content of the AI Model Experiments instance token.
    token_id string
    The AI Model Experiments instance token ID.
    ttl_duration string
    The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s
    valid_until string
    The time until the AI Model Experiments instance token is valid.
    description String
    The description is a longer text chosen by the user to provide more context for the resource.
    instanceId String
    The AI Model Experiments instance ID.
    labels Map<String,String>
    A map of arbitrary key/value pairs that can be attached to the resource
    name String
    The display name is a short name chosen by the user to identify the resource.
    projectId String
    STACKIT Project ID to which the resource is associated.
    region String
    The STACKIT region name the resource is located in. If not defined, the provider region is used.
    rotateWhenChanged Map<String,String>
    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.
    token String
    The content of the AI Model Experiments instance token.
    tokenId String
    The AI Model Experiments instance token ID.
    ttlDuration String
    The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s
    validUntil String
    The time until the AI Model Experiments instance token is valid.
    description string
    The description is a longer text chosen by the user to provide more context for the resource.
    instanceId string
    The AI Model Experiments instance ID.
    labels {[key: string]: string}
    A map of arbitrary key/value pairs that can be attached to the resource
    name string
    The display name is a short name chosen by the user to identify the resource.
    projectId string
    STACKIT Project ID to which the resource is associated.
    region string
    The STACKIT region name the resource is located in. If not defined, the provider region is used.
    rotateWhenChanged {[key: string]: string}
    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.
    token string
    The content of the AI Model Experiments instance token.
    tokenId string
    The AI Model Experiments instance token ID.
    ttlDuration string
    The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s
    validUntil string
    The time until the AI Model Experiments instance token is valid.
    description str
    The description is a longer text chosen by the user to provide more context for the resource.
    instance_id str
    The AI Model Experiments instance ID.
    labels Mapping[str, str]
    A map of arbitrary key/value pairs that can be attached to the resource
    name str
    The display name is a short name chosen by the user to identify the resource.
    project_id str
    STACKIT Project ID to which the resource is associated.
    region str
    The STACKIT region name the resource is located in. If not defined, the provider region is used.
    rotate_when_changed Mapping[str, str]
    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.
    token str
    The content of the AI Model Experiments instance token.
    token_id str
    The AI Model Experiments instance token ID.
    ttl_duration str
    The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s
    valid_until str
    The time until the AI Model Experiments instance token is valid.
    description String
    The description is a longer text chosen by the user to provide more context for the resource.
    instanceId String
    The AI Model Experiments instance ID.
    labels Map<String>
    A map of arbitrary key/value pairs that can be attached to the resource
    name String
    The display name is a short name chosen by the user to identify the resource.
    projectId String
    STACKIT Project ID to which the resource is associated.
    region String
    The STACKIT region name the resource is located in. If not defined, the provider region is used.
    rotateWhenChanged Map<String>
    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.
    token String
    The content of the AI Model Experiments instance token.
    tokenId String
    The AI Model Experiments instance token ID.
    ttlDuration String
    The TTL duration of the AI Model Experiments instance token. E.g. 5h30m40s,5h,5h30m,30m,30s
    validUntil String
    The time until the AI Model Experiments instance token is valid.

    Import

    In Terraform v1.5.0 and later, the + "" + import + “" + block can be used with the + "” + id + “" + attribute, for example:

    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 stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.7
    published on Monday, Aug 17, 2026 by stackitcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial