@pulumi/hcloud
Version:
A Pulumi package for creating and managing hcloud cloud resources.
72 lines • 2.41 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.getImagesOutput = exports.getImages = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides details about multiple Hetzner Cloud Images.
*
* When relevant, it is recommended to always provide the image architecture
* (`withArchitecture`) when fetching images.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const byArchitecture = hcloud.getImages({
* withArchitectures: ["x86"],
* });
* const byLabel = hcloud.getImages({
* withSelector: "key=value",
* });
* ```
*/
function getImages(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("hcloud:index/getImages:getImages", {
"includeDeprecated": args.includeDeprecated,
"mostRecent": args.mostRecent,
"withArchitectures": args.withArchitectures,
"withSelector": args.withSelector,
"withStatuses": args.withStatuses,
}, opts);
}
exports.getImages = getImages;
/**
* Provides details about multiple Hetzner Cloud Images.
*
* When relevant, it is recommended to always provide the image architecture
* (`withArchitecture`) when fetching images.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const byArchitecture = hcloud.getImages({
* withArchitectures: ["x86"],
* });
* const byLabel = hcloud.getImages({
* withSelector: "key=value",
* });
* ```
*/
function getImagesOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("hcloud:index/getImages:getImages", {
"includeDeprecated": args.includeDeprecated,
"mostRecent": args.mostRecent,
"withArchitectures": args.withArchitectures,
"withSelector": args.withSelector,
"withStatuses": args.withStatuses,
}, opts);
}
exports.getImagesOutput = getImagesOutput;
//# sourceMappingURL=getImages.js.map