UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

115 lines (114 loc) 3.81 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Provides details about a specific Linode StackScript. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-stack-script). * * ## Example Usage * * The following example shows how one might use this data source to access information about a Linode StackScript. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const myStackscript = linode.getStackScript({ * id: "355872", * }); * ``` */ export declare function getStackScript(args: GetStackScriptArgs, opts?: pulumi.InvokeOptions): Promise<GetStackScriptResult>; /** * A collection of arguments for invoking getStackScript. */ export interface GetStackScriptArgs { /** * The unique numeric ID of the StackScript to query. */ id: string; } /** * A collection of values returned by getStackScript. */ export interface GetStackScriptResult { /** * The date this StackScript was created. */ readonly created: string; /** * Count of currently active, deployed Linodes created from this StackScript. */ readonly deploymentsActive: number; /** * The total number of times this StackScript has been deployed. */ readonly deploymentsTotal: number; /** * A description for the StackScript. */ readonly description: string; readonly id: string; /** * A set of Image IDs representing the Images that this StackScript is compatible for deploying with. `any/all` indicates that all available image distributions, including private images, are accepted. */ readonly images: string[]; /** * This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. */ readonly isPublic: boolean; /** * A human-readable label for the field that will serve as the input prompt for entering the value during deployment. */ readonly label: string; /** * This field allows you to add notes for the set of revisions made to this StackScript. */ readonly revNote: string; /** * The script to execute when provisioning a new Linode with this StackScript. */ readonly script: string; /** * The date this StackScript was updated. */ readonly updated: string; /** * This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment. */ readonly userDefinedFields: outputs.GetStackScriptUserDefinedField[]; /** * The Gravatar ID for the User who created the StackScript. */ readonly userGravatarId: string; /** * The User who created the StackScript. */ readonly username: string; } /** * Provides details about a specific Linode StackScript. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-stack-script). * * ## Example Usage * * The following example shows how one might use this data source to access information about a Linode StackScript. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const myStackscript = linode.getStackScript({ * id: "355872", * }); * ``` */ export declare function getStackScriptOutput(args: GetStackScriptOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStackScriptResult>; /** * A collection of arguments for invoking getStackScript. */ export interface GetStackScriptOutputArgs { /** * The unique numeric ID of the StackScript to query. */ id: pulumi.Input<string>; }