@pulumi/hcloud
Version:
A Pulumi package for creating and managing hcloud cloud resources.
64 lines • 1.96 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.getDatacenterOutput = exports.getDatacenter = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides details about a specific Hetzner Cloud Datacenter.
*
* Use this resource to get detailed information about a specific Datacenter.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const byId = hcloud.getDatacenter({
* id: 4,
* });
* const byName = hcloud.getDatacenter({
* name: "fsn1-dc14",
* });
* ```
*/
function getDatacenter(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("hcloud:index/getDatacenter:getDatacenter", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getDatacenter = getDatacenter;
/**
* Provides details about a specific Hetzner Cloud Datacenter.
*
* Use this resource to get detailed information about a specific Datacenter.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const byId = hcloud.getDatacenter({
* id: 4,
* });
* const byName = hcloud.getDatacenter({
* name: "fsn1-dc14",
* });
* ```
*/
function getDatacenterOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("hcloud:index/getDatacenter:getDatacenter", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getDatacenterOutput = getDatacenterOutput;
//# sourceMappingURL=getDatacenter.js.map