@pulumi/hcloud
Version:
A Pulumi package for creating and managing hcloud cloud resources.
50 lines • 1.58 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.getServersOutput = exports.getServers = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const s3 = hcloud.getServers({
* withSelector: "key=value",
* });
* ```
*/
function getServers(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("hcloud:index/getServers:getServers", {
"withSelector": args.withSelector,
"withStatuses": args.withStatuses,
}, opts);
}
exports.getServers = getServers;
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const s3 = hcloud.getServers({
* withSelector: "key=value",
* });
* ```
*/
function getServersOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("hcloud:index/getServers:getServers", {
"withSelector": args.withSelector,
"withStatuses": args.withStatuses,
}, opts);
}
exports.getServersOutput = getServersOutput;
//# sourceMappingURL=getServers.js.map