@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
60 lines • 2.49 kB
JavaScript
// *** 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.getSubnetOutput = exports.getSubnet = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get details about a subnet. Management subnets support only read operations and should be configured through this data source. User defined subnets can be configured using the resource as well as the datasource.
*
* To get more information about private cloud subnet, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.subnets)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const mySubnet = gcp.vmwareengine.getSubnet({
* name: "service-1",
* parent: "project/my-project/locations/us-west1-a/privateClouds/my-cloud",
* });
* ```
*/
function getSubnet(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:vmwareengine/getSubnet:getSubnet", {
"name": args.name,
"parent": args.parent,
}, opts);
}
exports.getSubnet = getSubnet;
/**
* Use this data source to get details about a subnet. Management subnets support only read operations and should be configured through this data source. User defined subnets can be configured using the resource as well as the datasource.
*
* To get more information about private cloud subnet, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.subnets)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const mySubnet = gcp.vmwareengine.getSubnet({
* name: "service-1",
* parent: "project/my-project/locations/us-west1-a/privateClouds/my-cloud",
* });
* ```
*/
function getSubnetOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:vmwareengine/getSubnet:getSubnet", {
"name": args.name,
"parent": args.parent,
}, opts);
}
exports.getSubnetOutput = getSubnetOutput;
//# sourceMappingURL=getSubnet.js.map
;