Want to learn about running containers in Lambda? Join our free hands-on workshop. Register Now

GetStackScript

Provides details about a specific Linode StackScript.

Attributes

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 (
    "github.com/pulumi/pulumi-linode/sdk/v2/go/linode"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := linode.LookupStackScript(ctx, &linode.LookupStackScriptArgs{
            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,
}, { async: true }));

Using GetStackScript

function getStackScript(args: GetStackScriptArgs, opts?: InvokeOptions): Promise<GetStackScriptResult>
def get_stack_script(id: Optional[int] = None, user_defined_fields: Optional[Sequence[GetStackScriptUserDefinedFieldArgs]] = None, opts: Optional[InvokeOptions] = None) -> GetStackScriptResult
func LookupStackScript(ctx *Context, args *LookupStackScriptArgs, opts ...InvokeOption) (*LookupStackScriptResult, error)

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

public static class GetStackScript {
    public static Task<GetStackScriptResult> InvokeAsync(GetStackScriptArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Id int

The unique numeric ID of the StackScript to query.

UserDefinedFields List<GetStackScriptUserDefinedFieldArgs>
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[GetStackScriptUserDefinedFieldArgs]

GetStackScript Result

The following output properties are available:

Created string
DeploymentsActive int
DeploymentsTotal int
Description string
Id int
Images List<string>
IsPublic bool
Label string
RevNote string
Script string
Updated string
UserDefinedFields List<GetStackScriptUserDefinedField>
UserGravatarId string
Username string
Created string
DeploymentsActive int
DeploymentsTotal int
Description string
Id int
Images []string
IsPublic bool
Label string
RevNote string
Script string
Updated string
UserDefinedFields []GetStackScriptUserDefinedField
UserGravatarId string
Username string
created string
deploymentsActive number
deploymentsTotal number
description string
id number
images string[]
isPublic boolean
label string
revNote string
script string
updated string
userDefinedFields GetStackScriptUserDefinedField[]
userGravatarId string
username string
created str
deployments_active int
deployments_total int
description str
id int
images Sequence[str]
is_public bool
label str
rev_note str
script str
updated str
user_defined_fields Sequence[GetStackScriptUserDefinedField]
user_gravatar_id str
username str

Supporting Types

GetStackScriptUserDefinedField

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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

Repository
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.