Provides details about a specific Linode StackScript.


This resource exports the following attributes:

  • label - The StackScript’s label is for display purposes only.

  • script - The script to execute when provisioning a new Linode with this StackScript.

  • description - A description for the StackScript.

  • rev_note - This field allows you to add notes for the set of revisions made to this StackScript.

  • is_public - This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private.

  • images - An array of Image IDs representing the Images that this StackScript is compatible for deploying with.

  • deployments_active - Count of currently active, deployed Linodes created from this StackScript.

  • user_gravatar_id - The Gravatar ID for the User who created the StackScript.

  • deployments_total - The total number of times this StackScript has been deployed.

  • username - The User who created the StackScript.

  • created - The date this StackScript was created.

  • updated - The date this StackScript was updated.

  • user_defined_fields - This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.

    • label - A human-readable label for the field that will serve as the input prompt for entering the value during deployment.

    • name - The name of the field.

    • example - An example value for the field.

    • one_of - A list of acceptable single values for the field.

    • many_of - A list of acceptable values for the field in any quantity, combination or order.

    • default - The default value. If not specified, this value will be used.

Example Usage

using Pulumi;
using Linode = Pulumi.Linode;

class MyStack : Stack
    public MyStack()
        var myStackscript = Output.Create(Linode.GetStackScript.InvokeAsync(new Linode.GetStackScriptArgs
            Id = 355872,

package main

import (

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := linode.LookupStackScript(ctx, &GetStackScriptArgs{
			Id: 355872,
		}, nil)
		if err != nil {
			return err
		return nil
import pulumi
import pulumi_linode as linode

my_stackscript = linode.get_stack_script(id=355872)
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const myStackscript = pulumi.output(linode.getStackScript({
    id: 355872,

Using getStackScript

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getStackScript(args: GetStackScriptArgs, opts?: InvokeOptions): Promise<GetStackScriptResult>
function getStackScriptOutput(args: GetStackScriptOutputArgs, opts?: InvokeOptions): Output<GetStackScriptResult>
def get_stack_script(id: Optional[int] = None,
                     user_defined_fields: Optional[Sequence[GetStackScriptUserDefinedField]] = None,
                     opts: Optional[InvokeOptions] = None) -> GetStackScriptResult
def get_stack_script_output(id: Optional[pulumi.Input[int]] = None,
                     user_defined_fields: Optional[pulumi.Input[Sequence[pulumi.Input[GetStackScriptUserDefinedFieldArgs]]]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetStackScriptResult]
func LookupStackScript(ctx *Context, args *LookupStackScriptArgs, opts ...InvokeOption) (*LookupStackScriptResult, error)
func LookupStackScriptOutput(ctx *Context, args *LookupStackScriptOutputArgs, opts ...InvokeOption) LookupStackScriptResultOutput

> Note: This function is named LookupStackScript in the Go SDK.

public static class GetStackScript 
    public static Task<GetStackScriptResult> InvokeAsync(GetStackScriptArgs args, InvokeOptions? opts = null)
    public static Output<GetStackScriptResult> Invoke(GetStackScriptInvokeArgs args, InvokeOptions? opts = null)

The following arguments are supported:

Id int
The unique numeric ID of the StackScript to query.
UserDefinedFields List<GetStackScriptUserDefinedField>
Id int
The unique numeric ID of the StackScript to query.
UserDefinedFields []GetStackScriptUserDefinedField
id number
The unique numeric ID of the StackScript to query.
userDefinedFields GetStackScriptUserDefinedField[]
id int
The unique numeric ID of the StackScript to query.
user_defined_fields Sequence[GetStackScriptUserDefinedField]

getStackScript Result

The following output properties are available:

Supporting Types


Default string
Example string
Label string
ManyOf string
Name string
OneOf string
Default string
Example string
Label string
ManyOf string
Name string
OneOf string
default string
example string
label string
manyOf string
name string
oneOf string
default str
example str
label str
many_of str
name str
one_of str

Package Details

This Pulumi package is based on the linode Terraform Provider.