Create a StackScript

Creates a StackScript in your Account.

Permissions and scopes

To call this operation, you need permissions, based on the model you're using:

  • Identity and access permissions. Your user needs a role with these permissions. Learn more.

    • Roles: account_stackscript_creator
  • OAuth scopes. Your user needs these scopes assigned. Learn more.

    • Scopes: stackscripts:read_write

CLI

linode-cli stackscripts create \
  --label a-stackscript \
  --description "This StackScript install and configures MySQL" \
  --images "linode/debian9" \
  --images "linode/debian8" \
  --is_public true \
  --rev_note "Set up MySQL" \
  --script '#!/bin/bash'

Learn more

Path Params
string
enum
required

Enum Call either the v4 URL, or v4beta for operations still in Beta.

Allowed:
Body Params

The properties to set for the new StackScript.

string

Filterable A description for the StackScript.

images
array of strings
required

An array of Image IDs. These are the Images that can be deployed with this StackScript.

any/all indicates that all available Images, including private Images, are accepted.

images*
boolean

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

string
required
length between 3 and 128

Filterable The StackScript's label is for display purposes only.

string

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

string
required

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

Responses

Language
Credentials
Response
Choose an example:
application/json