UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

64 lines 2.21 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getSubnetworksOutput = exports.getSubnetworks = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Get subnetworks within GCE. * See [the official documentation](https://cloud.google.com/vpc/docs/subnets) * and [API](https://cloud.google.com/compute/docs/reference/rest/v1/subnetworks/list). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const my_subnetworks = gcp.compute.getSubnetworks({ * filter: "ipCidrRange eq 192.168.178.0/24", * project: "my-project", * region: "us-east1", * }); * ``` */ function getSubnetworks(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:compute/getSubnetworks:getSubnetworks", { "filter": args.filter, "project": args.project, "region": args.region, }, opts); } exports.getSubnetworks = getSubnetworks; /** * Get subnetworks within GCE. * See [the official documentation](https://cloud.google.com/vpc/docs/subnets) * and [API](https://cloud.google.com/compute/docs/reference/rest/v1/subnetworks/list). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const my_subnetworks = gcp.compute.getSubnetworks({ * filter: "ipCidrRange eq 192.168.178.0/24", * project: "my-project", * region: "us-east1", * }); * ``` */ function getSubnetworksOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:compute/getSubnetworks:getSubnetworks", { "filter": args.filter, "project": args.project, "region": args.region, }, opts); } exports.getSubnetworksOutput = getSubnetworksOutput; //# sourceMappingURL=getSubnetworks.js.map