@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
58 lines • 2.02 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.getImageOutput = exports.getImage = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides information about a Linode image
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-image).
*
* ## Example Usage
*
* The following example shows how one might use this data source to access information about a Linode image.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const k8Master = linode.getImage({
* id: "linode/debian12",
* });
* ```
*/
function getImage(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("linode:index/getImage:getImage", {
"id": args.id,
"replications": args.replications,
}, opts);
}
exports.getImage = getImage;
/**
* Provides information about a Linode image
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-image).
*
* ## Example Usage
*
* The following example shows how one might use this data source to access information about a Linode image.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const k8Master = linode.getImage({
* id: "linode/debian12",
* });
* ```
*/
function getImageOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("linode:index/getImage:getImage", {
"id": args.id,
"replications": args.replications,
}, opts);
}
exports.getImageOutput = getImageOutput;
//# sourceMappingURL=getImage.js.map
;