UNPKG

@twingate/pulumi-twingate

Version:

A Pulumi package for creating and managing Twingate cloud resources.

62 lines 2.78 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.getTwingateRemoteNetworksOutput = exports.getTwingateRemoteNetworks = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * A Remote Network represents a single private network in Twingate that can have one or more Connectors and Resources assigned to it. You must create a Remote Network before creating Resources and Connectors that belong to it. For more information, see Twingate's [documentation](https://docs.twingate.com/docs/remote-networks). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as twingate from "@twingate/pulumi-twingate"; * * const all = twingate.getTwingateRemoteNetworks({ * name: "<your network's name>", * }); * ``` */ function getTwingateRemoteNetworks(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("twingate:index/getTwingateRemoteNetworks:getTwingateRemoteNetworks", { "name": args.name, "nameContains": args.nameContains, "nameExclude": args.nameExclude, "namePrefix": args.namePrefix, "nameRegexp": args.nameRegexp, "nameSuffix": args.nameSuffix, }, opts); } exports.getTwingateRemoteNetworks = getTwingateRemoteNetworks; /** * A Remote Network represents a single private network in Twingate that can have one or more Connectors and Resources assigned to it. You must create a Remote Network before creating Resources and Connectors that belong to it. For more information, see Twingate's [documentation](https://docs.twingate.com/docs/remote-networks). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as twingate from "@twingate/pulumi-twingate"; * * const all = twingate.getTwingateRemoteNetworks({ * name: "<your network's name>", * }); * ``` */ function getTwingateRemoteNetworksOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("twingate:index/getTwingateRemoteNetworks:getTwingateRemoteNetworks", { "name": args.name, "nameContains": args.nameContains, "nameExclude": args.nameExclude, "namePrefix": args.namePrefix, "nameRegexp": args.nameRegexp, "nameSuffix": args.nameSuffix, }, opts); } exports.getTwingateRemoteNetworksOutput = getTwingateRemoteNetworksOutput; //# sourceMappingURL=getTwingateRemoteNetworks.js.map