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;
class MyStack : Stack
{
public MyStack()
{
}
}
Coming soon!
import pulumiimport * as pulumi from "@pulumi/pulumi";Using GetStackScript
function getStackScript(args: GetStackScriptArgs, opts?: InvokeOptions): Promise<GetStackScriptResult>function get_stack_script(id=None, user_defined_fields=None, opts=None)func LookupStackScript(ctx *Context, args *LookupStackScriptArgs, opts ...InvokeOption) (*LookupStackScriptResult, error)Note: This function is named
LookupStackScriptin 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.
- User
Defined List<GetFields Stack Script User Defined Field Args>
- Id int
The unique numeric ID of the StackScript to query.
- User
Defined []GetFields Stack Script User Defined Field
- id number
The unique numeric ID of the StackScript to query.
- user
Defined GetFields Stack Script User Defined Field[]
- id float
The unique numeric ID of the StackScript to query.
- user_
defined_ List[Getfields Stack Script User Defined Field]
GetStackScript Result
The following output properties are available:
Supporting Types
GetStackScriptUserDefinedField
Package Details
- Repository
- https://github.com/pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.