Viewing docs for Twingate v4.0.2
published on Thursday, Mar 12, 2026 by Twingate
published on Thursday, Mar 12, 2026 by Twingate
Viewing docs for Twingate v4.0.2
published on Thursday, Mar 12, 2026 by Twingate
published on Thursday, Mar 12, 2026 by Twingate
Service Accounts offer a way to provide programmatic, centrally-controlled, and consistent access controls.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as twingate from "@twingate/pulumi-twingate";
const foo = twingate.getTwingateServiceAccounts({
name: "<your service account's name>",
});
import pulumi
import pulumi_twingate as twingate
foo = twingate.get_twingate_service_accounts(name="<your service account's name>")
package main
import (
"github.com/Twingate/pulumi-twingate/sdk/v4/go/twingate"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := twingate.GetTwingateServiceAccounts(ctx, &twingate.GetTwingateServiceAccountsArgs{
Name: pulumi.StringRef("<your service account's name>"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Twingate = Twingate.Twingate;
return await Deployment.RunAsync(() =>
{
var foo = Twingate.GetTwingateServiceAccounts.Invoke(new()
{
Name = "<your service account'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.GetTwingateServiceAccountsArgs;
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.getTwingateServiceAccounts(GetTwingateServiceAccountsArgs.builder()
.name("<your service account's name>")
.build());
}
}
variables:
foo:
fn::invoke:
function: twingate:getTwingateServiceAccounts
arguments:
name: <your service account's name>
Using getTwingateServiceAccounts
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 getTwingateServiceAccounts(args: GetTwingateServiceAccountsArgs, opts?: InvokeOptions): Promise<GetTwingateServiceAccountsResult>
function getTwingateServiceAccountsOutput(args: GetTwingateServiceAccountsOutputArgs, opts?: InvokeOptions): Output<GetTwingateServiceAccountsResult>def get_twingate_service_accounts(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) -> GetTwingateServiceAccountsResult
def get_twingate_service_accounts_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[GetTwingateServiceAccountsResult]func GetTwingateServiceAccounts(ctx *Context, args *GetTwingateServiceAccountsArgs, opts ...InvokeOption) (*GetTwingateServiceAccountsResult, error)
func GetTwingateServiceAccountsOutput(ctx *Context, args *GetTwingateServiceAccountsOutputArgs, opts ...InvokeOption) GetTwingateServiceAccountsResultOutput> Note: This function is named GetTwingateServiceAccounts in the Go SDK.
public static class GetTwingateServiceAccounts
{
public static Task<GetTwingateServiceAccountsResult> InvokeAsync(GetTwingateServiceAccountsArgs args, InvokeOptions? opts = null)
public static Output<GetTwingateServiceAccountsResult> Invoke(GetTwingateServiceAccountsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTwingateServiceAccountsResult> getTwingateServiceAccounts(GetTwingateServiceAccountsArgs args, InvokeOptions options)
public static Output<GetTwingateServiceAccountsResult> getTwingateServiceAccounts(GetTwingateServiceAccountsArgs args, InvokeOptions options)
fn::invoke:
function: twingate:index/getTwingateServiceAccounts:getTwingateServiceAccounts
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Returns only service accounts that exactly match this name. If no options are passed it will return all service accounts. Only one option can be used at a time.
- Name
Contains string - Match when the value exist in the name of the service account.
- Name
Exclude string - Match when the exact value does not exist in the name of the service account.
- Name
Prefix string - The name of the service account must start with the value.
- Name
Regexp string - The regular expression match of the name of the service account.
- Name
Suffix string - The name of the service account must end with the value.
- Name string
- Returns only service accounts that exactly match this name. If no options are passed it will return all service accounts. Only one option can be used at a time.
- Name
Contains string - Match when the value exist in the name of the service account.
- Name
Exclude string - Match when the exact value does not exist in the name of the service account.
- Name
Prefix string - The name of the service account must start with the value.
- Name
Regexp string - The regular expression match of the name of the service account.
- Name
Suffix string - The name of the service account must end with the value.
- name String
- Returns only service accounts that exactly match this name. If no options are passed it will return all service accounts. Only one option can be used at a time.
- name
Contains String - Match when the value exist in the name of the service account.
- name
Exclude String - Match when the exact value does not exist in the name of the service account.
- name
Prefix String - The name of the service account must start with the value.
- name
Regexp String - The regular expression match of the name of the service account.
- name
Suffix String - The name of the service account must end with the value.
- name string
- Returns only service accounts that exactly match this name. If no options are passed it will return all service accounts. Only one option can be used at a time.
- name
Contains string - Match when the value exist in the name of the service account.
- name
Exclude string - Match when the exact value does not exist in the name of the service account.
- name
Prefix string - The name of the service account must start with the value.
- name
Regexp string - The regular expression match of the name of the service account.
- name
Suffix string - The name of the service account must end with the value.
- name str
- Returns only service accounts that exactly match this name. If no options are passed it will return all service accounts. Only one option can be used at a time.
- name_
contains str - Match when the value exist in the name of the service account.
- name_
exclude str - Match when the exact value does not exist in the name of the service account.
- name_
prefix str - The name of the service account must start with the value.
- name_
regexp str - The regular expression match of the name of the service account.
- name_
suffix str - The name of the service account must end with the value.
- name String
- Returns only service accounts that exactly match this name. If no options are passed it will return all service accounts. Only one option can be used at a time.
- name
Contains String - Match when the value exist in the name of the service account.
- name
Exclude String - Match when the exact value does not exist in the name of the service account.
- name
Prefix String - The name of the service account must start with the value.
- name
Regexp String - The regular expression match of the name of the service account.
- name
Suffix String - The name of the service account must end with the value.
getTwingateServiceAccounts Result
The following output properties are available:
- Id string
- The ID of this resource.
- Service
Accounts List<Twingate.Twingate. Outputs. Get Twingate Service Accounts Service Account> - List of Service Accounts
- Name string
- Returns only service accounts that exactly match this name. If no options are passed it will return all service accounts. Only one option can be used at a time.
- Name
Contains string - Match when the value exist in the name of the service account.
- Name
Exclude string - Match when the exact value does not exist in the name of the service account.
- Name
Prefix string - The name of the service account must start with the value.
- Name
Regexp string - The regular expression match of the name of the service account.
- Name
Suffix string - The name of the service account must end with the value.
- Id string
- The ID of this resource.
- Service
Accounts []GetTwingate Service Accounts Service Account - List of Service Accounts
- Name string
- Returns only service accounts that exactly match this name. If no options are passed it will return all service accounts. Only one option can be used at a time.
- Name
Contains string - Match when the value exist in the name of the service account.
- Name
Exclude string - Match when the exact value does not exist in the name of the service account.
- Name
Prefix string - The name of the service account must start with the value.
- Name
Regexp string - The regular expression match of the name of the service account.
- Name
Suffix string - The name of the service account must end with the value.
- id String
- The ID of this resource.
- service
Accounts List<GetTwingate Service Accounts Service Account> - List of Service Accounts
- name String
- Returns only service accounts that exactly match this name. If no options are passed it will return all service accounts. Only one option can be used at a time.
- name
Contains String - Match when the value exist in the name of the service account.
- name
Exclude String - Match when the exact value does not exist in the name of the service account.
- name
Prefix String - The name of the service account must start with the value.
- name
Regexp String - The regular expression match of the name of the service account.
- name
Suffix String - The name of the service account must end with the value.
- id string
- The ID of this resource.
- service
Accounts GetTwingate Service Accounts Service Account[] - List of Service Accounts
- name string
- Returns only service accounts that exactly match this name. If no options are passed it will return all service accounts. Only one option can be used at a time.
- name
Contains string - Match when the value exist in the name of the service account.
- name
Exclude string - Match when the exact value does not exist in the name of the service account.
- name
Prefix string - The name of the service account must start with the value.
- name
Regexp string - The regular expression match of the name of the service account.
- name
Suffix string - The name of the service account must end with the value.
- id str
- The ID of this resource.
- service_
accounts Sequence[GetTwingate Service Accounts Service Account] - List of Service Accounts
- name str
- Returns only service accounts that exactly match this name. If no options are passed it will return all service accounts. Only one option can be used at a time.
- name_
contains str - Match when the value exist in the name of the service account.
- name_
exclude str - Match when the exact value does not exist in the name of the service account.
- name_
prefix str - The name of the service account must start with the value.
- name_
regexp str - The regular expression match of the name of the service account.
- name_
suffix str - The name of the service account must end with the value.
- id String
- The ID of this resource.
- service
Accounts List<Property Map> - List of Service Accounts
- name String
- Returns only service accounts that exactly match this name. If no options are passed it will return all service accounts. Only one option can be used at a time.
- name
Contains String - Match when the value exist in the name of the service account.
- name
Exclude String - Match when the exact value does not exist in the name of the service account.
- name
Prefix String - The name of the service account must start with the value.
- name
Regexp String - The regular expression match of the name of the service account.
- name
Suffix String - The name of the service account must end with the value.
Supporting Types
GetTwingateServiceAccountsServiceAccount
- Id string
- ID of the Service Account resource
- Key
Ids List<string> - List of twingateserviceaccount_key IDs that are assigned to the Service Account.
- Name string
- Name of the Service Account
- Resource
Ids List<string> - List of twingate.TwingateResource IDs that the Service Account is assigned to.
- Id string
- ID of the Service Account resource
- Key
Ids []string - List of twingateserviceaccount_key IDs that are assigned to the Service Account.
- Name string
- Name of the Service Account
- Resource
Ids []string - List of twingate.TwingateResource IDs that the Service Account is assigned to.
- id String
- ID of the Service Account resource
- key
Ids List<String> - List of twingateserviceaccount_key IDs that are assigned to the Service Account.
- name String
- Name of the Service Account
- resource
Ids List<String> - List of twingate.TwingateResource IDs that the Service Account is assigned to.
- id string
- ID of the Service Account resource
- key
Ids string[] - List of twingateserviceaccount_key IDs that are assigned to the Service Account.
- name string
- Name of the Service Account
- resource
Ids string[] - List of twingate.TwingateResource IDs that the Service Account is assigned to.
- id str
- ID of the Service Account resource
- key_
ids Sequence[str] - List of twingateserviceaccount_key IDs that are assigned to the Service Account.
- name str
- Name of the Service Account
- resource_
ids Sequence[str] - List of twingate.TwingateResource IDs that the Service Account is assigned to.
- id String
- ID of the Service Account resource
- key
Ids List<String> - List of twingateserviceaccount_key IDs that are assigned to the Service Account.
- name String
- Name of the Service Account
- resource
Ids List<String> - List of twingate.TwingateResource IDs that the Service Account is assigned to.
Package Details
- Repository
- twingate Twingate/pulumi-twingate
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
twingateTerraform Provider.
Viewing docs for Twingate v4.0.2
published on Thursday, Mar 12, 2026 by Twingate
published on Thursday, Mar 12, 2026 by Twingate
