@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
54 lines • 1.68 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");
/**
* Get a network within GCE from its name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_network = gcp.compute.getNetwork({
* name: "default-us-east1",
* });
* ```
*/
function getNetwork(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:compute/getNetwork:getNetwork", {
"name": args.name,
"networkProfile": args.networkProfile,
"project": args.project,
}, opts);
}
exports.getNetwork = getNetwork;
/**
* Get a network within GCE from its name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_network = gcp.compute.getNetwork({
* name: "default-us-east1",
* });
* ```
*/
function getNetworkOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:compute/getNetwork:getNetwork", {
"name": args.name,
"networkProfile": args.networkProfile,
"project": args.project,
}, opts);
}
exports.getNetworkOutput = getNetworkOutput;
//# sourceMappingURL=getNetwork.js.map