UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

68 lines 2.35 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.getSegmentV2Output = exports.getSegmentV2 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get the ID of an available OpenStack network. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const network = openstack.networking.getSegmentV2({ * name: "tf_test_segment", * }); * ``` */ function getSegmentV2(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("openstack:networking/getSegmentV2:getSegmentV2", { "description": args.description, "name": args.name, "networkId": args.networkId, "networkType": args.networkType, "physicalNetwork": args.physicalNetwork, "region": args.region, "revisionNumber": args.revisionNumber, "segmentId": args.segmentId, "segmentationId": args.segmentationId, }, opts); } exports.getSegmentV2 = getSegmentV2; /** * Use this data source to get the ID of an available OpenStack network. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const network = openstack.networking.getSegmentV2({ * name: "tf_test_segment", * }); * ``` */ function getSegmentV2Output(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("openstack:networking/getSegmentV2:getSegmentV2", { "description": args.description, "name": args.name, "networkId": args.networkId, "networkType": args.networkType, "physicalNetwork": args.physicalNetwork, "region": args.region, "revisionNumber": args.revisionNumber, "segmentId": args.segmentId, "segmentationId": args.segmentationId, }, opts); } exports.getSegmentV2Output = getSegmentV2Output; //# sourceMappingURL=getSegmentV2.js.map