published on Friday, Feb 20, 2026 by stackitcloud
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:
- Project
Id 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 - Instance
Id string - ID of the Edge Cloud instance.
- Instance
Name string - Name of the Edge Cloud instance.
- Recreate
Before 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.
- Project
Id 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 - Instance
Id string - ID of the Edge Cloud instance.
- Instance
Name string - Name of the Edge Cloud instance.
- Recreate
Before 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.
- project
Id 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 - instance
Id String - ID of the Edge Cloud instance.
- instance
Name String - Name of the Edge Cloud instance.
- recreate
Before 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.
- project
Id 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 - instance
Id string - ID of the Edge Cloud instance.
- instance
Name string - Name of the Edge Cloud instance.
- recreate
Before 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.
- project
Id 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 - instance
Id String - ID of the Edge Cloud instance.
- instance
Name String - Name of the Edge Cloud instance.
- recreate
Before 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:
- Creation
Time string - Date-time when the token was created
- Expires
At string - Timestamp when the token expires
- Id string
- The provider-assigned unique ID for this managed resource.
- Token string
- Raw token.
- Token
Id string
- Creation
Time string - Date-time when the token was created
- Expires
At string - Timestamp when the token expires
- Id string
- The provider-assigned unique ID for this managed resource.
- Token string
- Raw token.
- Token
Id string
- creation
Time String - Date-time when the token was created
- expires
At String - Timestamp when the token expires
- id String
- The provider-assigned unique ID for this managed resource.
- token String
- Raw token.
- token
Id String
- creation
Time string - Date-time when the token was created
- expires
At string - Timestamp when the token expires
- id string
- The provider-assigned unique ID for this managed resource.
- token string
- Raw token.
- token
Id 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
- creation
Time String - Date-time when the token was created
- expires
At String - Timestamp when the token expires
- id String
- The provider-assigned unique ID for this managed resource.
- token String
- Raw token.
- token
Id 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) -> EdgecloudTokenfunc 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.
- Creation
Time 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 - Expires
At string - Timestamp when the token expires
- Instance
Id string - ID of the Edge Cloud instance.
- Instance
Name string - Name of the Edge Cloud instance.
- Project
Id string - 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 string
- The resource region. If not defined, the provider region is used.
- Token string
- Raw token.
- Token
Id string
- Creation
Time 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 - Expires
At string - Timestamp when the token expires
- Instance
Id string - ID of the Edge Cloud instance.
- Instance
Name string - Name of the Edge Cloud instance.
- Project
Id string - 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 string
- The resource region. If not defined, the provider region is used.
- Token string
- Raw token.
- Token
Id string
- creation
Time 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 - expires
At String - Timestamp when the token expires
- instance
Id String - ID of the Edge Cloud instance.
- instance
Name String - Name of the Edge Cloud instance.
- project
Id String - STACKIT project ID to which the Edge Cloud instance is associated.
- recreate
Before 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.
- token
Id String
- creation
Time 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 - expires
At string - Timestamp when the token expires
- instance
Id string - ID of the Edge Cloud instance.
- instance
Name string - Name of the Edge Cloud instance.
- project
Id string - STACKIT project ID to which the Edge Cloud instance is associated.
- recreate
Before 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.
- token
Id 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
- creation
Time 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 - expires
At String - Timestamp when the token expires
- instance
Id String - ID of the Edge Cloud instance.
- instance
Name String - Name of the Edge Cloud instance.
- project
Id String - STACKIT project ID to which the Edge Cloud instance is associated.
- recreate
Before 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.
- token
Id String
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
published on Friday, Feb 20, 2026 by stackitcloud
