@ediri/vultr
Version:
A Pulumi package for creating and managing Vultr cloud resources.
92 lines (91 loc) • 2.75 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Get information about a Vultr startup script. This data source provides the name, script, type, creation date, and the last modification date for your Vultr startup script.
*
* ## Example Usage
*
* Get the information for a startup script by `name`:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const myStartupScript = vultr.getStartupScript({
* filters: [{
* name: "name",
* values: ["my-startup-script-name"],
* }],
* });
* ```
*/
export declare function getStartupScript(args?: GetStartupScriptArgs, opts?: pulumi.InvokeOptions): Promise<GetStartupScriptResult>;
/**
* A collection of arguments for invoking getStartupScript.
*/
export interface GetStartupScriptArgs {
/**
* Query parameters for finding startup scripts.
*/
filters?: inputs.GetStartupScriptFilter[];
}
/**
* A collection of values returned by getStartupScript.
*/
export interface GetStartupScriptResult {
/**
* The date the startup script was added to your Vultr account.
*/
readonly dateCreated: string;
/**
* The date the startup script was last modified.
*/
readonly dateModified: string;
readonly filters?: outputs.GetStartupScriptFilter[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The name of the startup script.
*/
readonly name: string;
/**
* The contents of the startup script base64 encoded.
*/
readonly script: string;
/**
* The type of the startup script.
*/
readonly type: string;
}
/**
* Get information about a Vultr startup script. This data source provides the name, script, type, creation date, and the last modification date for your Vultr startup script.
*
* ## Example Usage
*
* Get the information for a startup script by `name`:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const myStartupScript = vultr.getStartupScript({
* filters: [{
* name: "name",
* values: ["my-startup-script-name"],
* }],
* });
* ```
*/
export declare function getStartupScriptOutput(args?: GetStartupScriptOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStartupScriptResult>;
/**
* A collection of arguments for invoking getStartupScript.
*/
export interface GetStartupScriptOutputArgs {
/**
* Query parameters for finding startup scripts.
*/
filters?: pulumi.Input<pulumi.Input<inputs.GetStartupScriptFilterArgs>[]>;
}