Twingate v3.0.12 published on Tuesday, Nov 5, 2024 by Twingate
twingate.getTwingateRemoteNetwork
Explore with Pulumi AI
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.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as twingate from "@pulumi/twingate";
const foo = twingate.getTwingateRemoteNetwork({
name: "<your network's name>",
});
import pulumi
import pulumi_twingate as twingate
foo = twingate.get_twingate_remote_network(name="<your network's name>")
package main
import (
"github.com/Twingate/pulumi-twingate/sdk/v3/go/twingate"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := twingate.LookupTwingateRemoteNetwork(ctx, &twingate.LookupTwingateRemoteNetworkArgs{
Name: pulumi.StringRef("<your network's name>"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Twingate = Pulumi.Twingate;
return await Deployment.RunAsync(() =>
{
var foo = Twingate.GetTwingateRemoteNetwork.Invoke(new()
{
Name = "<your network's name>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.twingate.TwingateFunctions;
import com.pulumi.twingate.inputs.GetTwingateRemoteNetworkArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var foo = TwingateFunctions.getTwingateRemoteNetwork(GetTwingateRemoteNetworkArgs.builder()
.name("<your network's name>")
.build());
}
}
variables:
foo:
fn::invoke:
Function: twingate:getTwingateRemoteNetwork
Arguments:
name: <your network's name>
Using getTwingateRemoteNetwork
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTwingateRemoteNetwork(args: GetTwingateRemoteNetworkArgs, opts?: InvokeOptions): Promise<GetTwingateRemoteNetworkResult>
function getTwingateRemoteNetworkOutput(args: GetTwingateRemoteNetworkOutputArgs, opts?: InvokeOptions): Output<GetTwingateRemoteNetworkResult>
def get_twingate_remote_network(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTwingateRemoteNetworkResult
def get_twingate_remote_network_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTwingateRemoteNetworkResult]
func LookupTwingateRemoteNetwork(ctx *Context, args *LookupTwingateRemoteNetworkArgs, opts ...InvokeOption) (*LookupTwingateRemoteNetworkResult, error)
func LookupTwingateRemoteNetworkOutput(ctx *Context, args *LookupTwingateRemoteNetworkOutputArgs, opts ...InvokeOption) LookupTwingateRemoteNetworkResultOutput
> Note: This function is named LookupTwingateRemoteNetwork
in the Go SDK.
public static class GetTwingateRemoteNetwork
{
public static Task<GetTwingateRemoteNetworkResult> InvokeAsync(GetTwingateRemoteNetworkArgs args, InvokeOptions? opts = null)
public static Output<GetTwingateRemoteNetworkResult> Invoke(GetTwingateRemoteNetworkInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTwingateRemoteNetworkResult> getTwingateRemoteNetwork(GetTwingateRemoteNetworkArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: twingate:index/getTwingateRemoteNetwork:getTwingateRemoteNetwork
arguments:
# arguments dictionary
The following arguments are supported:
getTwingateRemoteNetwork Result
The following output properties are available:
Package Details
- Repository
- twingate Twingate/pulumi-twingate
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
twingate
Terraform Provider.