@upcloud/pulumi-upcloud
Version:
A Pulumi package for creating and managing UpCloud resources.
52 lines • 1.85 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.getHostsOutput = exports.getHosts = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Returns a list of available UpCloud hosts.
* A host identifies the host server that virtual machines are run on.
* Only hosts on private cloud to which the calling account has access to are available through this resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as upcloud from "@pulumi/upcloud";
*
* const allHosts = upcloud.getHosts({});
* ```
*/
function getHosts(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("upcloud:index/getHosts:getHosts", {
"hosts": args.hosts,
}, opts);
}
exports.getHosts = getHosts;
/**
* Returns a list of available UpCloud hosts.
* A host identifies the host server that virtual machines are run on.
* Only hosts on private cloud to which the calling account has access to are available through this resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as upcloud from "@pulumi/upcloud";
*
* const allHosts = upcloud.getHosts({});
* ```
*/
function getHostsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("upcloud:index/getHosts:getHosts", {
"hosts": args.hosts,
}, opts);
}
exports.getHostsOutput = getHostsOutput;
//# sourceMappingURL=getHosts.js.map