1. Packages
  2. stackit
  3. API Docs
  4. EdgecloudToken
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

    Edge Cloud is in private Beta and not generally available. You can contact support if you are interested in trying it out.

    This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide for how to opt-in to use beta resources.

    Example Usage

    # the instance resource only exists here to illustrate the usage of it's attribute
    resource "stackit_edgecloud_instance" "this" {
      project_id   = local.project_id
      display_name = "example"
      plan_id      = var.plan_id
      description  = "some_description"
    }
    
    resource "stackit_edgecloud_token" "by_name" {
      project_id    = var.project_id
      instance_name = stackit_edgecloud_instance.this.display_name
      expiration    = 3600 # seconds
    }
    
    resource "stackit_edgecloud_token" "by_id" {
      project_id  = var.project_id
      instance_id = stackit_edgecloud_instance.this.instance_id
      expiration  = 3600 # seconds
    }
    

    Create EdgecloudToken Resource

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

    Constructor syntax

    new EdgecloudToken(name: string, args: EdgecloudTokenArgs, opts?: CustomResourceOptions);
    @overload
    def EdgecloudToken(resource_name: str,
                       args: EdgecloudTokenArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def EdgecloudToken(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       project_id: Optional[str] = None,
                       expiration: Optional[int] = None,
                       instance_id: Optional[str] = None,
                       instance_name: Optional[str] = None,
                       recreate_before: Optional[int] = None,
                       region: Optional[str] = None)
    func NewEdgecloudToken(ctx *Context, name string, args EdgecloudTokenArgs, opts ...ResourceOption) (*EdgecloudToken, error)
    public EdgecloudToken(string name, EdgecloudTokenArgs args, CustomResourceOptions? opts = null)
    public EdgecloudToken(String name, EdgecloudTokenArgs args)
    public EdgecloudToken(String name, EdgecloudTokenArgs args, CustomResourceOptions options)
    
    type: stackit:EdgecloudToken
    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 EdgecloudTokenArgs
    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 EdgecloudTokenArgs
    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 EdgecloudTokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EdgecloudTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EdgecloudTokenArgs
    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 edgecloudTokenResource = new Stackit.EdgecloudToken("edgecloudTokenResource", new()
    {
        ProjectId = "string",
        Expiration = 0,
        InstanceId = "string",
        InstanceName = "string",
        RecreateBefore = 0,
        Region = "string",
    });
    
    example, err := stackit.NewEdgecloudToken(ctx, "edgecloudTokenResource", &stackit.EdgecloudTokenArgs{
    	ProjectId:      pulumi.String("string"),
    	Expiration:     pulumi.Int(0),
    	InstanceId:     pulumi.String("string"),
    	InstanceName:   pulumi.String("string"),
    	RecreateBefore: pulumi.Int(0),
    	Region:         pulumi.String("string"),
    })
    
    var edgecloudTokenResource = new EdgecloudToken("edgecloudTokenResource", EdgecloudTokenArgs.builder()
        .projectId("string")
        .expiration(0)
        .instanceId("string")
        .instanceName("string")
        .recreateBefore(0)
        .region("string")
        .build());
    
    edgecloud_token_resource = stackit.EdgecloudToken("edgecloudTokenResource",
        project_id="string",
        expiration=0,
        instance_id="string",
        instance_name="string",
        recreate_before=0,
        region="string")
    
    const edgecloudTokenResource = new stackit.EdgecloudToken("edgecloudTokenResource", {
        projectId: "string",
        expiration: 0,
        instanceId: "string",
        instanceName: "string",
        recreateBefore: 0,
        region: "string",
    });
    
    type: stackit:EdgecloudToken
    properties:
        expiration: 0
        instanceId: string
        instanceName: string
        projectId: string
        recreateBefore: 0
        region: string
    

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

    ProjectId string
    STACKIT project ID to which the Edge Cloud instance is associated.
    Expiration int
    Expiration time of the token, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    InstanceId string
    ID of the Edge Cloud instance.
    InstanceName string
    Name of the Edge Cloud instance.
    RecreateBefore int
    Number of seconds before expiration to trigger recreation of the token at.
    Region string
    The resource region. If not defined, the provider region is used.
    ProjectId string
    STACKIT project ID to which the Edge Cloud instance is associated.
    Expiration int
    Expiration time of the token, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    InstanceId string
    ID of the Edge Cloud instance.
    InstanceName string
    Name of the Edge Cloud instance.
    RecreateBefore int
    Number of seconds before expiration to trigger recreation of the token at.
    Region string
    The resource region. If not defined, the provider region is used.
    projectId String
    STACKIT project ID to which the Edge Cloud instance is associated.
    expiration Integer
    Expiration time of the token, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    instanceId String
    ID of the Edge Cloud instance.
    instanceName String
    Name of the Edge Cloud instance.
    recreateBefore Integer
    Number of seconds before expiration to trigger recreation of the token at.
    region String
    The resource region. If not defined, the provider region is used.
    projectId string
    STACKIT project ID to which the Edge Cloud instance is associated.
    expiration number
    Expiration time of the token, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    instanceId string
    ID of the Edge Cloud instance.
    instanceName string
    Name of the Edge Cloud instance.
    recreateBefore number
    Number of seconds before expiration to trigger recreation of the token at.
    region string
    The resource region. If not defined, the provider region is used.
    project_id str
    STACKIT project ID to which the Edge Cloud instance is associated.
    expiration int
    Expiration time of the token, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    instance_id str
    ID of the Edge Cloud instance.
    instance_name str
    Name of the Edge Cloud instance.
    recreate_before int
    Number of seconds before expiration to trigger recreation of the token at.
    region str
    The resource region. If not defined, the provider region is used.
    projectId String
    STACKIT project ID to which the Edge Cloud instance is associated.
    expiration Number
    Expiration time of the token, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    instanceId String
    ID of the Edge Cloud instance.
    instanceName String
    Name of the Edge Cloud instance.
    recreateBefore Number
    Number of seconds before expiration to trigger recreation of the token at.
    region String
    The resource region. If not defined, the provider region is used.

    Outputs

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

    CreationTime string
    Date-time when the token was created
    ExpiresAt string
    Timestamp when the token expires
    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    Raw token.
    TokenId string
    CreationTime string
    Date-time when the token was created
    ExpiresAt string
    Timestamp when the token expires
    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    Raw token.
    TokenId string
    creationTime String
    Date-time when the token was created
    expiresAt String
    Timestamp when the token expires
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    Raw token.
    tokenId String
    creationTime string
    Date-time when the token was created
    expiresAt string
    Timestamp when the token expires
    id string
    The provider-assigned unique ID for this managed resource.
    token string
    Raw token.
    tokenId string
    creation_time str
    Date-time when the token was created
    expires_at str
    Timestamp when the token expires
    id str
    The provider-assigned unique ID for this managed resource.
    token str
    Raw token.
    token_id str
    creationTime String
    Date-time when the token was created
    expiresAt String
    Timestamp when the token expires
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    Raw token.
    tokenId String

    Look up Existing EdgecloudToken Resource

    Get an existing EdgecloudToken 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?: EdgecloudTokenState, opts?: CustomResourceOptions): EdgecloudToken
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            creation_time: Optional[str] = None,
            expiration: Optional[int] = None,
            expires_at: Optional[str] = None,
            instance_id: Optional[str] = None,
            instance_name: Optional[str] = None,
            project_id: Optional[str] = None,
            recreate_before: Optional[int] = None,
            region: Optional[str] = None,
            token: Optional[str] = None,
            token_id: Optional[str] = None) -> EdgecloudToken
    func GetEdgecloudToken(ctx *Context, name string, id IDInput, state *EdgecloudTokenState, opts ...ResourceOption) (*EdgecloudToken, error)
    public static EdgecloudToken Get(string name, Input<string> id, EdgecloudTokenState? state, CustomResourceOptions? opts = null)
    public static EdgecloudToken get(String name, Output<String> id, EdgecloudTokenState state, CustomResourceOptions options)
    resources:  _:    type: stackit:EdgecloudToken    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:
    CreationTime string
    Date-time when the token was created
    Expiration int
    Expiration time of the token, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    ExpiresAt string
    Timestamp when the token expires
    InstanceId string
    ID of the Edge Cloud instance.
    InstanceName string
    Name of the Edge Cloud instance.
    ProjectId string
    STACKIT project ID to which the Edge Cloud instance is associated.
    RecreateBefore int
    Number of seconds before expiration to trigger recreation of the token at.
    Region string
    The resource region. If not defined, the provider region is used.
    Token string
    Raw token.
    TokenId string
    CreationTime string
    Date-time when the token was created
    Expiration int
    Expiration time of the token, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    ExpiresAt string
    Timestamp when the token expires
    InstanceId string
    ID of the Edge Cloud instance.
    InstanceName string
    Name of the Edge Cloud instance.
    ProjectId string
    STACKIT project ID to which the Edge Cloud instance is associated.
    RecreateBefore int
    Number of seconds before expiration to trigger recreation of the token at.
    Region string
    The resource region. If not defined, the provider region is used.
    Token string
    Raw token.
    TokenId string
    creationTime String
    Date-time when the token was created
    expiration Integer
    Expiration time of the token, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    expiresAt String
    Timestamp when the token expires
    instanceId String
    ID of the Edge Cloud instance.
    instanceName String
    Name of the Edge Cloud instance.
    projectId String
    STACKIT project ID to which the Edge Cloud instance is associated.
    recreateBefore Integer
    Number of seconds before expiration to trigger recreation of the token at.
    region String
    The resource region. If not defined, the provider region is used.
    token String
    Raw token.
    tokenId String
    creationTime string
    Date-time when the token was created
    expiration number
    Expiration time of the token, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    expiresAt string
    Timestamp when the token expires
    instanceId string
    ID of the Edge Cloud instance.
    instanceName string
    Name of the Edge Cloud instance.
    projectId string
    STACKIT project ID to which the Edge Cloud instance is associated.
    recreateBefore number
    Number of seconds before expiration to trigger recreation of the token at.
    region string
    The resource region. If not defined, the provider region is used.
    token string
    Raw token.
    tokenId string
    creation_time str
    Date-time when the token was created
    expiration int
    Expiration time of the token, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    expires_at str
    Timestamp when the token expires
    instance_id str
    ID of the Edge Cloud instance.
    instance_name str
    Name of the Edge Cloud instance.
    project_id str
    STACKIT project ID to which the Edge Cloud instance is associated.
    recreate_before int
    Number of seconds before expiration to trigger recreation of the token at.
    region str
    The resource region. If not defined, the provider region is used.
    token str
    Raw token.
    token_id str
    creationTime String
    Date-time when the token was created
    expiration Number
    Expiration time of the token, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    expiresAt String
    Timestamp when the token expires
    instanceId String
    ID of the Edge Cloud instance.
    instanceName String
    Name of the Edge Cloud instance.
    projectId String
    STACKIT project ID to which the Edge Cloud instance is associated.
    recreateBefore Number
    Number of seconds before expiration to trigger recreation of the token at.
    region String
    The resource region. If not defined, the provider region is used.
    token String
    Raw token.
    tokenId String

    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.