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

    SKE kubeconfig resource schema. Must have a region specified in the provider configuration.

    Example Usage

    resource "stackit_ske_kubeconfig" "example" {
      project_id   = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      cluster_name = "example-cluster"
    
      refresh        = true
      expiration     = 7200 # 2 hours
      refresh_before = 3600 # 1 hour
    }
    

    Create SkeKubeconfig Resource

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

    Constructor syntax

    new SkeKubeconfig(name: string, args: SkeKubeconfigArgs, opts?: CustomResourceOptions);
    @overload
    def SkeKubeconfig(resource_name: str,
                      args: SkeKubeconfigArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def SkeKubeconfig(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      cluster_name: Optional[str] = None,
                      project_id: Optional[str] = None,
                      expiration: Optional[int] = None,
                      refresh: Optional[bool] = None,
                      refresh_before: Optional[int] = None,
                      region: Optional[str] = None)
    func NewSkeKubeconfig(ctx *Context, name string, args SkeKubeconfigArgs, opts ...ResourceOption) (*SkeKubeconfig, error)
    public SkeKubeconfig(string name, SkeKubeconfigArgs args, CustomResourceOptions? opts = null)
    public SkeKubeconfig(String name, SkeKubeconfigArgs args)
    public SkeKubeconfig(String name, SkeKubeconfigArgs args, CustomResourceOptions options)
    
    type: stackit:SkeKubeconfig
    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 SkeKubeconfigArgs
    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 SkeKubeconfigArgs
    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 SkeKubeconfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SkeKubeconfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SkeKubeconfigArgs
    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 skeKubeconfigResource = new Stackit.SkeKubeconfig("skeKubeconfigResource", new()
    {
        ClusterName = "string",
        ProjectId = "string",
        Expiration = 0,
        Refresh = false,
        RefreshBefore = 0,
        Region = "string",
    });
    
    example, err := stackit.NewSkeKubeconfig(ctx, "skeKubeconfigResource", &stackit.SkeKubeconfigArgs{
    	ClusterName:   pulumi.String("string"),
    	ProjectId:     pulumi.String("string"),
    	Expiration:    pulumi.Int(0),
    	Refresh:       pulumi.Bool(false),
    	RefreshBefore: pulumi.Int(0),
    	Region:        pulumi.String("string"),
    })
    
    var skeKubeconfigResource = new SkeKubeconfig("skeKubeconfigResource", SkeKubeconfigArgs.builder()
        .clusterName("string")
        .projectId("string")
        .expiration(0)
        .refresh(false)
        .refreshBefore(0)
        .region("string")
        .build());
    
    ske_kubeconfig_resource = stackit.SkeKubeconfig("skeKubeconfigResource",
        cluster_name="string",
        project_id="string",
        expiration=0,
        refresh=False,
        refresh_before=0,
        region="string")
    
    const skeKubeconfigResource = new stackit.SkeKubeconfig("skeKubeconfigResource", {
        clusterName: "string",
        projectId: "string",
        expiration: 0,
        refresh: false,
        refreshBefore: 0,
        region: "string",
    });
    
    type: stackit:SkeKubeconfig
    properties:
        clusterName: string
        expiration: 0
        projectId: string
        refresh: false
        refreshBefore: 0
        region: string
    

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

    ClusterName string
    Name of the SKE cluster.
    ProjectId string
    STACKIT project ID to which the cluster is associated.
    Expiration int
    Expiration time of the kubeconfig, in seconds. Defaults to 3600
    Refresh bool
    If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
    RefreshBefore int
    Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
    Region string
    The resource region. If not defined, the provider region is used.
    ClusterName string
    Name of the SKE cluster.
    ProjectId string
    STACKIT project ID to which the cluster is associated.
    Expiration int
    Expiration time of the kubeconfig, in seconds. Defaults to 3600
    Refresh bool
    If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
    RefreshBefore int
    Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
    Region string
    The resource region. If not defined, the provider region is used.
    clusterName String
    Name of the SKE cluster.
    projectId String
    STACKIT project ID to which the cluster is associated.
    expiration Integer
    Expiration time of the kubeconfig, in seconds. Defaults to 3600
    refresh Boolean
    If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
    refreshBefore Integer
    Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
    region String
    The resource region. If not defined, the provider region is used.
    clusterName string
    Name of the SKE cluster.
    projectId string
    STACKIT project ID to which the cluster is associated.
    expiration number
    Expiration time of the kubeconfig, in seconds. Defaults to 3600
    refresh boolean
    If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
    refreshBefore number
    Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
    region string
    The resource region. If not defined, the provider region is used.
    cluster_name str
    Name of the SKE cluster.
    project_id str
    STACKIT project ID to which the cluster is associated.
    expiration int
    Expiration time of the kubeconfig, in seconds. Defaults to 3600
    refresh bool
    If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
    refresh_before int
    Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
    region str
    The resource region. If not defined, the provider region is used.
    clusterName String
    Name of the SKE cluster.
    projectId String
    STACKIT project ID to which the cluster is associated.
    expiration Number
    Expiration time of the kubeconfig, in seconds. Defaults to 3600
    refresh Boolean
    If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
    refreshBefore Number
    Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
    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 SkeKubeconfig resource produces the following output properties:

    CreationTime string
    Date-time when the kubeconfig was created
    ExpiresAt string
    Timestamp when the kubeconfig expires
    Id string
    The provider-assigned unique ID for this managed resource.
    KubeConfig string
    Raw short-lived admin kubeconfig.
    KubeConfigId string
    CreationTime string
    Date-time when the kubeconfig was created
    ExpiresAt string
    Timestamp when the kubeconfig expires
    Id string
    The provider-assigned unique ID for this managed resource.
    KubeConfig string
    Raw short-lived admin kubeconfig.
    KubeConfigId string
    creationTime String
    Date-time when the kubeconfig was created
    expiresAt String
    Timestamp when the kubeconfig expires
    id String
    The provider-assigned unique ID for this managed resource.
    kubeConfig String
    Raw short-lived admin kubeconfig.
    kubeConfigId String
    creationTime string
    Date-time when the kubeconfig was created
    expiresAt string
    Timestamp when the kubeconfig expires
    id string
    The provider-assigned unique ID for this managed resource.
    kubeConfig string
    Raw short-lived admin kubeconfig.
    kubeConfigId string
    creation_time str
    Date-time when the kubeconfig was created
    expires_at str
    Timestamp when the kubeconfig expires
    id str
    The provider-assigned unique ID for this managed resource.
    kube_config str
    Raw short-lived admin kubeconfig.
    kube_config_id str
    creationTime String
    Date-time when the kubeconfig was created
    expiresAt String
    Timestamp when the kubeconfig expires
    id String
    The provider-assigned unique ID for this managed resource.
    kubeConfig String
    Raw short-lived admin kubeconfig.
    kubeConfigId String

    Look up Existing SkeKubeconfig Resource

    Get an existing SkeKubeconfig 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?: SkeKubeconfigState, opts?: CustomResourceOptions): SkeKubeconfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_name: Optional[str] = None,
            creation_time: Optional[str] = None,
            expiration: Optional[int] = None,
            expires_at: Optional[str] = None,
            kube_config: Optional[str] = None,
            kube_config_id: Optional[str] = None,
            project_id: Optional[str] = None,
            refresh: Optional[bool] = None,
            refresh_before: Optional[int] = None,
            region: Optional[str] = None) -> SkeKubeconfig
    func GetSkeKubeconfig(ctx *Context, name string, id IDInput, state *SkeKubeconfigState, opts ...ResourceOption) (*SkeKubeconfig, error)
    public static SkeKubeconfig Get(string name, Input<string> id, SkeKubeconfigState? state, CustomResourceOptions? opts = null)
    public static SkeKubeconfig get(String name, Output<String> id, SkeKubeconfigState state, CustomResourceOptions options)
    resources:  _:    type: stackit:SkeKubeconfig    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:
    ClusterName string
    Name of the SKE cluster.
    CreationTime string
    Date-time when the kubeconfig was created
    Expiration int
    Expiration time of the kubeconfig, in seconds. Defaults to 3600
    ExpiresAt string
    Timestamp when the kubeconfig expires
    KubeConfig string
    Raw short-lived admin kubeconfig.
    KubeConfigId string
    ProjectId string
    STACKIT project ID to which the cluster is associated.
    Refresh bool
    If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
    RefreshBefore int
    Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
    Region string
    The resource region. If not defined, the provider region is used.
    ClusterName string
    Name of the SKE cluster.
    CreationTime string
    Date-time when the kubeconfig was created
    Expiration int
    Expiration time of the kubeconfig, in seconds. Defaults to 3600
    ExpiresAt string
    Timestamp when the kubeconfig expires
    KubeConfig string
    Raw short-lived admin kubeconfig.
    KubeConfigId string
    ProjectId string
    STACKIT project ID to which the cluster is associated.
    Refresh bool
    If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
    RefreshBefore int
    Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
    Region string
    The resource region. If not defined, the provider region is used.
    clusterName String
    Name of the SKE cluster.
    creationTime String
    Date-time when the kubeconfig was created
    expiration Integer
    Expiration time of the kubeconfig, in seconds. Defaults to 3600
    expiresAt String
    Timestamp when the kubeconfig expires
    kubeConfig String
    Raw short-lived admin kubeconfig.
    kubeConfigId String
    projectId String
    STACKIT project ID to which the cluster is associated.
    refresh Boolean
    If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
    refreshBefore Integer
    Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
    region String
    The resource region. If not defined, the provider region is used.
    clusterName string
    Name of the SKE cluster.
    creationTime string
    Date-time when the kubeconfig was created
    expiration number
    Expiration time of the kubeconfig, in seconds. Defaults to 3600
    expiresAt string
    Timestamp when the kubeconfig expires
    kubeConfig string
    Raw short-lived admin kubeconfig.
    kubeConfigId string
    projectId string
    STACKIT project ID to which the cluster is associated.
    refresh boolean
    If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
    refreshBefore number
    Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
    region string
    The resource region. If not defined, the provider region is used.
    cluster_name str
    Name of the SKE cluster.
    creation_time str
    Date-time when the kubeconfig was created
    expiration int
    Expiration time of the kubeconfig, in seconds. Defaults to 3600
    expires_at str
    Timestamp when the kubeconfig expires
    kube_config str
    Raw short-lived admin kubeconfig.
    kube_config_id str
    project_id str
    STACKIT project ID to which the cluster is associated.
    refresh bool
    If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
    refresh_before int
    Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
    region str
    The resource region. If not defined, the provider region is used.
    clusterName String
    Name of the SKE cluster.
    creationTime String
    Date-time when the kubeconfig was created
    expiration Number
    Expiration time of the kubeconfig, in seconds. Defaults to 3600
    expiresAt String
    Timestamp when the kubeconfig expires
    kubeConfig String
    Raw short-lived admin kubeconfig.
    kubeConfigId String
    projectId String
    STACKIT project ID to which the cluster is associated.
    refresh Boolean
    If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
    refreshBefore Number
    Number of seconds before expiration to trigger refresh of the kubeconfig at. Only used if refresh is set to true.
    region String
    The resource region. If not defined, the provider region is used.

    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.