@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
130 lines • 3.83 kB
JavaScript
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStackScriptsOutput = exports.getStackScripts = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides information about Linode StackScripts that match a set of filters.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-stack-scripts).
*
* **NOTICE:** Due to the large number of public StackScripts, this data source may time out if `isPublic` is not filtered on.
*
* ## 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 specific_stackscripts = linode.getStackScripts({
* filters: [
* {
* name: "label",
* values: ["my-cool-stackscript"],
* },
* {
* name: "is_public",
* values: ["false"],
* },
* ],
* });
* export const stackscriptId = specific_stackscripts.then(specific_stackscripts => specific_stackscripts.stackscripts?.[0]?.id);
* ```
*
* ## Filterable Fields
*
* * `deploymentsActive`
*
* * `deploymentsTotal`
*
* * `description`
*
* * `images`
*
* * `isPublic`
*
* * `label`
*
* * `mine`
*
* * `revNote`
*
* * `username`
*/
function getStackScripts(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("linode:index/getStackScripts:getStackScripts", {
"filters": args.filters,
"latest": args.latest,
"order": args.order,
"orderBy": args.orderBy,
"stackscripts": args.stackscripts,
}, opts);
}
exports.getStackScripts = getStackScripts;
/**
* Provides information about Linode StackScripts that match a set of filters.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-stack-scripts).
*
* **NOTICE:** Due to the large number of public StackScripts, this data source may time out if `isPublic` is not filtered on.
*
* ## 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 specific_stackscripts = linode.getStackScripts({
* filters: [
* {
* name: "label",
* values: ["my-cool-stackscript"],
* },
* {
* name: "is_public",
* values: ["false"],
* },
* ],
* });
* export const stackscriptId = specific_stackscripts.then(specific_stackscripts => specific_stackscripts.stackscripts?.[0]?.id);
* ```
*
* ## Filterable Fields
*
* * `deploymentsActive`
*
* * `deploymentsTotal`
*
* * `description`
*
* * `images`
*
* * `isPublic`
*
* * `label`
*
* * `mine`
*
* * `revNote`
*
* * `username`
*/
function getStackScriptsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("linode:index/getStackScripts:getStackScripts", {
"filters": args.filters,
"latest": args.latest,
"order": args.order,
"orderBy": args.orderBy,
"stackscripts": args.stackscripts,
}, opts);
}
exports.getStackScriptsOutput = getStackScriptsOutput;
//# sourceMappingURL=getStackScripts.js.map
;