@pulumi/hcloud
Version:
A Pulumi package for creating and managing hcloud cloud resources.
70 lines • 2.09 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.getNetworkOutput = exports.getNetwork = 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 network1 = hcloud.getNetwork({
* id: 1234,
* });
* const network2 = hcloud.getNetwork({
* name: "my-network",
* });
* const network3 = hcloud.getNetwork({
* withSelector: "key=value",
* });
* ```
*/
function getNetwork(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("hcloud:index/getNetwork:getNetwork", {
"id": args.id,
"ipRange": args.ipRange,
"labels": args.labels,
"mostRecent": args.mostRecent,
"name": args.name,
"withSelector": args.withSelector,
}, opts);
}
exports.getNetwork = getNetwork;
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const network1 = hcloud.getNetwork({
* id: 1234,
* });
* const network2 = hcloud.getNetwork({
* name: "my-network",
* });
* const network3 = hcloud.getNetwork({
* withSelector: "key=value",
* });
* ```
*/
function getNetworkOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("hcloud:index/getNetwork:getNetwork", {
"id": args.id,
"ipRange": args.ipRange,
"labels": args.labels,
"mostRecent": args.mostRecent,
"name": args.name,
"withSelector": args.withSelector,
}, opts);
}
exports.getNetworkOutput = getNetworkOutput;
//# sourceMappingURL=getNetwork.js.map