Twingate v3.0.12 published on Tuesday, Nov 5, 2024 by Twingate
twingate.getTwingateConnectors
Explore with Pulumi AI
Connectors provide connectivity to Remote Networks. For more information, see Twingate’s documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as twingate from "@pulumi/twingate";
const all = twingate.getTwingateConnectors({
name: "<your connector's name>",
});
import pulumi
import pulumi_twingate as twingate
all = twingate.get_twingate_connectors(name="<your connector'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.GetTwingateConnectors(ctx, &twingate.GetTwingateConnectorsArgs{
Name: pulumi.StringRef("<your connector'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 all = Twingate.GetTwingateConnectors.Invoke(new()
{
Name = "<your connector'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.GetTwingateConnectorsArgs;
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 all = TwingateFunctions.getTwingateConnectors(GetTwingateConnectorsArgs.builder()
.name("<your connector's name>")
.build());
}
}
variables:
all:
fn::invoke:
Function: twingate:getTwingateConnectors
Arguments:
name: <your connector's name>
Using getTwingateConnectors
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 getTwingateConnectors(args: GetTwingateConnectorsArgs, opts?: InvokeOptions): Promise<GetTwingateConnectorsResult>
function getTwingateConnectorsOutput(args: GetTwingateConnectorsOutputArgs, opts?: InvokeOptions): Output<GetTwingateConnectorsResult>
def get_twingate_connectors(name: Optional[str] = None,
name_contains: Optional[str] = None,
name_exclude: Optional[str] = None,
name_prefix: Optional[str] = None,
name_regexp: Optional[str] = None,
name_suffix: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTwingateConnectorsResult
def get_twingate_connectors_output(name: Optional[pulumi.Input[str]] = None,
name_contains: Optional[pulumi.Input[str]] = None,
name_exclude: Optional[pulumi.Input[str]] = None,
name_prefix: Optional[pulumi.Input[str]] = None,
name_regexp: Optional[pulumi.Input[str]] = None,
name_suffix: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTwingateConnectorsResult]
func GetTwingateConnectors(ctx *Context, args *GetTwingateConnectorsArgs, opts ...InvokeOption) (*GetTwingateConnectorsResult, error)
func GetTwingateConnectorsOutput(ctx *Context, args *GetTwingateConnectorsOutputArgs, opts ...InvokeOption) GetTwingateConnectorsResultOutput
> Note: This function is named GetTwingateConnectors
in the Go SDK.
public static class GetTwingateConnectors
{
public static Task<GetTwingateConnectorsResult> InvokeAsync(GetTwingateConnectorsArgs args, InvokeOptions? opts = null)
public static Output<GetTwingateConnectorsResult> Invoke(GetTwingateConnectorsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTwingateConnectorsResult> getTwingateConnectors(GetTwingateConnectorsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: twingate:index/getTwingateConnectors:getTwingateConnectors
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Returns only connectors that exactly match this name. If no options are passed it will return all connectors. Only one option can be used at a time.
- Name
Contains string - Match when the value exist in the name of the connector.
- Name
Exclude string - Match when the exact value does not exist in the name of the connector.
- Name
Prefix string - The name of the connector must start with the value.
- Name
Regexp string - The regular expression match of the name of the connector.
- Name
Suffix string - The name of the connector must end with the value.
- Name string
- Returns only connectors that exactly match this name. If no options are passed it will return all connectors. Only one option can be used at a time.
- Name
Contains string - Match when the value exist in the name of the connector.
- Name
Exclude string - Match when the exact value does not exist in the name of the connector.
- Name
Prefix string - The name of the connector must start with the value.
- Name
Regexp string - The regular expression match of the name of the connector.
- Name
Suffix string - The name of the connector must end with the value.
- name String
- Returns only connectors that exactly match this name. If no options are passed it will return all connectors. Only one option can be used at a time.
- name
Contains String - Match when the value exist in the name of the connector.
- name
Exclude String - Match when the exact value does not exist in the name of the connector.
- name
Prefix String - The name of the connector must start with the value.
- name
Regexp String - The regular expression match of the name of the connector.
- name
Suffix String - The name of the connector must end with the value.
- name string
- Returns only connectors that exactly match this name. If no options are passed it will return all connectors. Only one option can be used at a time.
- name
Contains string - Match when the value exist in the name of the connector.
- name
Exclude string - Match when the exact value does not exist in the name of the connector.
- name
Prefix string - The name of the connector must start with the value.
- name
Regexp string - The regular expression match of the name of the connector.
- name
Suffix string - The name of the connector must end with the value.
- name str
- Returns only connectors that exactly match this name. If no options are passed it will return all connectors. Only one option can be used at a time.
- name_
contains str - Match when the value exist in the name of the connector.
- name_
exclude str - Match when the exact value does not exist in the name of the connector.
- name_
prefix str - The name of the connector must start with the value.
- name_
regexp str - The regular expression match of the name of the connector.
- name_
suffix str - The name of the connector must end with the value.
- name String
- Returns only connectors that exactly match this name. If no options are passed it will return all connectors. Only one option can be used at a time.
- name
Contains String - Match when the value exist in the name of the connector.
- name
Exclude String - Match when the exact value does not exist in the name of the connector.
- name
Prefix String - The name of the connector must start with the value.
- name
Regexp String - The regular expression match of the name of the connector.
- name
Suffix String - The name of the connector must end with the value.
getTwingateConnectors Result
The following output properties are available:
- Connectors
List<Twingate.
Twingate. Outputs. Get Twingate Connectors Connector> - List of Connectors
- Id string
- The ID of this resource.
- Name string
- Returns only connectors that exactly match this name. If no options are passed it will return all connectors. Only one option can be used at a time.
- Name
Contains string - Match when the value exist in the name of the connector.
- Name
Exclude string - Match when the exact value does not exist in the name of the connector.
- Name
Prefix string - The name of the connector must start with the value.
- Name
Regexp string - The regular expression match of the name of the connector.
- Name
Suffix string - The name of the connector must end with the value.
- Connectors
[]Get
Twingate Connectors Connector - List of Connectors
- Id string
- The ID of this resource.
- Name string
- Returns only connectors that exactly match this name. If no options are passed it will return all connectors. Only one option can be used at a time.
- Name
Contains string - Match when the value exist in the name of the connector.
- Name
Exclude string - Match when the exact value does not exist in the name of the connector.
- Name
Prefix string - The name of the connector must start with the value.
- Name
Regexp string - The regular expression match of the name of the connector.
- Name
Suffix string - The name of the connector must end with the value.
- connectors
List<Get
Twingate Connectors Connector> - List of Connectors
- id String
- The ID of this resource.
- name String
- Returns only connectors that exactly match this name. If no options are passed it will return all connectors. Only one option can be used at a time.
- name
Contains String - Match when the value exist in the name of the connector.
- name
Exclude String - Match when the exact value does not exist in the name of the connector.
- name
Prefix String - The name of the connector must start with the value.
- name
Regexp String - The regular expression match of the name of the connector.
- name
Suffix String - The name of the connector must end with the value.
- connectors
Get
Twingate Connectors Connector[] - List of Connectors
- id string
- The ID of this resource.
- name string
- Returns only connectors that exactly match this name. If no options are passed it will return all connectors. Only one option can be used at a time.
- name
Contains string - Match when the value exist in the name of the connector.
- name
Exclude string - Match when the exact value does not exist in the name of the connector.
- name
Prefix string - The name of the connector must start with the value.
- name
Regexp string - The regular expression match of the name of the connector.
- name
Suffix string - The name of the connector must end with the value.
- connectors
Sequence[Get
Twingate Connectors Connector] - List of Connectors
- id str
- The ID of this resource.
- name str
- Returns only connectors that exactly match this name. If no options are passed it will return all connectors. Only one option can be used at a time.
- name_
contains str - Match when the value exist in the name of the connector.
- name_
exclude str - Match when the exact value does not exist in the name of the connector.
- name_
prefix str - The name of the connector must start with the value.
- name_
regexp str - The regular expression match of the name of the connector.
- name_
suffix str - The name of the connector must end with the value.
- connectors List<Property Map>
- List of Connectors
- id String
- The ID of this resource.
- name String
- Returns only connectors that exactly match this name. If no options are passed it will return all connectors. Only one option can be used at a time.
- name
Contains String - Match when the value exist in the name of the connector.
- name
Exclude String - Match when the exact value does not exist in the name of the connector.
- name
Prefix String - The name of the connector must start with the value.
- name
Regexp String - The regular expression match of the name of the connector.
- name
Suffix String - The name of the connector must end with the value.
Supporting Types
GetTwingateConnectorsConnector
- Id string
- The ID of the Connector.
- Name string
- The Name of the Connector.
- Remote
Network stringId - The ID of the Remote Network attached to the Connector.
- Status
Updates boolEnabled - Determines whether status notifications are enabled for the Connector.
- Id string
- The ID of the Connector.
- Name string
- The Name of the Connector.
- Remote
Network stringId - The ID of the Remote Network attached to the Connector.
- Status
Updates boolEnabled - Determines whether status notifications are enabled for the Connector.
- id String
- The ID of the Connector.
- name String
- The Name of the Connector.
- remote
Network StringId - The ID of the Remote Network attached to the Connector.
- status
Updates BooleanEnabled - Determines whether status notifications are enabled for the Connector.
- id string
- The ID of the Connector.
- name string
- The Name of the Connector.
- remote
Network stringId - The ID of the Remote Network attached to the Connector.
- status
Updates booleanEnabled - Determines whether status notifications are enabled for the Connector.
- id str
- The ID of the Connector.
- name str
- The Name of the Connector.
- remote_
network_ strid - The ID of the Remote Network attached to the Connector.
- status_
updates_ boolenabled - Determines whether status notifications are enabled for the Connector.
- id String
- The ID of the Connector.
- name String
- The Name of the Connector.
- remote
Network StringId - The ID of the Remote Network attached to the Connector.
- status
Updates BooleanEnabled - Determines whether status notifications are enabled for the Connector.
Package Details
- Repository
- twingate Twingate/pulumi-twingate
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
twingate
Terraform Provider.