Twingate v3.5.0 published on Monday, Sep 22, 2025 by Twingate
twingate.getTwingateSecurityPolicies
Start a Neo task
Explain and create a twingate.getTwingateSecurityPolicies resource
Security Policies are defined in the Twingate Admin Console and determine user and device authentication requirements for Resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as twingate from "@twingate/pulumi-twingate";
const all = twingate.getTwingateSecurityPolicies({
name: "<your security policy's name>",
});
import pulumi
import pulumi_twingate as twingate
all = twingate.get_twingate_security_policies(name="<your security policy'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.GetTwingateSecurityPolicies(ctx, &twingate.GetTwingateSecurityPoliciesArgs{
Name: pulumi.StringRef("<your security policy'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.GetTwingateSecurityPolicies.Invoke(new()
{
Name = "<your security policy'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.GetTwingateSecurityPoliciesArgs;
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.getTwingateSecurityPolicies(GetTwingateSecurityPoliciesArgs.builder()
.name("<your security policy's name>")
.build());
}
}
variables:
all:
fn::invoke:
function: twingate:getTwingateSecurityPolicies
arguments:
name: <your security policy's name>
Using getTwingateSecurityPolicies
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 getTwingateSecurityPolicies(args: GetTwingateSecurityPoliciesArgs, opts?: InvokeOptions): Promise<GetTwingateSecurityPoliciesResult>
function getTwingateSecurityPoliciesOutput(args: GetTwingateSecurityPoliciesOutputArgs, opts?: InvokeOptions): Output<GetTwingateSecurityPoliciesResult>def get_twingate_security_policies(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) -> GetTwingateSecurityPoliciesResult
def get_twingate_security_policies_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[GetTwingateSecurityPoliciesResult]func GetTwingateSecurityPolicies(ctx *Context, args *GetTwingateSecurityPoliciesArgs, opts ...InvokeOption) (*GetTwingateSecurityPoliciesResult, error)
func GetTwingateSecurityPoliciesOutput(ctx *Context, args *GetTwingateSecurityPoliciesOutputArgs, opts ...InvokeOption) GetTwingateSecurityPoliciesResultOutput> Note: This function is named GetTwingateSecurityPolicies in the Go SDK.
public static class GetTwingateSecurityPolicies
{
public static Task<GetTwingateSecurityPoliciesResult> InvokeAsync(GetTwingateSecurityPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetTwingateSecurityPoliciesResult> Invoke(GetTwingateSecurityPoliciesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTwingateSecurityPoliciesResult> getTwingateSecurityPolicies(GetTwingateSecurityPoliciesArgs args, InvokeOptions options)
public static Output<GetTwingateSecurityPoliciesResult> getTwingateSecurityPolicies(GetTwingateSecurityPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: twingate:index/getTwingateSecurityPolicies:getTwingateSecurityPolicies
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Returns only security policies that exactly match this name. If no options are passed it will return all security policies. Only one option can be used at a time.
- Name
Contains string - Match when the value exist in the name of the security policy.
- Name
Exclude string - Match when the exact value does not exist in the name of the security policy.
- Name
Prefix string - The name of the security policy must start with the value.
- Name
Regexp string - The regular expression match of the name of the security policy.
- Name
Suffix string - The name of the security policy must end with the value.
- Name string
- Returns only security policies that exactly match this name. If no options are passed it will return all security policies. Only one option can be used at a time.
- Name
Contains string - Match when the value exist in the name of the security policy.
- Name
Exclude string - Match when the exact value does not exist in the name of the security policy.
- Name
Prefix string - The name of the security policy must start with the value.
- Name
Regexp string - The regular expression match of the name of the security policy.
- Name
Suffix string - The name of the security policy must end with the value.
- name String
- Returns only security policies that exactly match this name. If no options are passed it will return all security policies. Only one option can be used at a time.
- name
Contains String - Match when the value exist in the name of the security policy.
- name
Exclude String - Match when the exact value does not exist in the name of the security policy.
- name
Prefix String - The name of the security policy must start with the value.
- name
Regexp String - The regular expression match of the name of the security policy.
- name
Suffix String - The name of the security policy must end with the value.
- name string
- Returns only security policies that exactly match this name. If no options are passed it will return all security policies. Only one option can be used at a time.
- name
Contains string - Match when the value exist in the name of the security policy.
- name
Exclude string - Match when the exact value does not exist in the name of the security policy.
- name
Prefix string - The name of the security policy must start with the value.
- name
Regexp string - The regular expression match of the name of the security policy.
- name
Suffix string - The name of the security policy must end with the value.
- name str
- Returns only security policies that exactly match this name. If no options are passed it will return all security policies. Only one option can be used at a time.
- name_
contains str - Match when the value exist in the name of the security policy.
- name_
exclude str - Match when the exact value does not exist in the name of the security policy.
- name_
prefix str - The name of the security policy must start with the value.
- name_
regexp str - The regular expression match of the name of the security policy.
- name_
suffix str - The name of the security policy must end with the value.
- name String
- Returns only security policies that exactly match this name. If no options are passed it will return all security policies. Only one option can be used at a time.
- name
Contains String - Match when the value exist in the name of the security policy.
- name
Exclude String - Match when the exact value does not exist in the name of the security policy.
- name
Prefix String - The name of the security policy must start with the value.
- name
Regexp String - The regular expression match of the name of the security policy.
- name
Suffix String - The name of the security policy must end with the value.
getTwingateSecurityPolicies Result
The following output properties are available:
- Id string
- The ID of this resource.
- Security
Policies List<Twingate.Twingate. Outputs. Get Twingate Security Policies Security Policy> - Name string
- Returns only security policies that exactly match this name. If no options are passed it will return all security policies. Only one option can be used at a time.
- Name
Contains string - Match when the value exist in the name of the security policy.
- Name
Exclude string - Match when the exact value does not exist in the name of the security policy.
- Name
Prefix string - The name of the security policy must start with the value.
- Name
Regexp string - The regular expression match of the name of the security policy.
- Name
Suffix string - The name of the security policy must end with the value.
- Id string
- The ID of this resource.
- Security
Policies []GetTwingate Security Policies Security Policy - Name string
- Returns only security policies that exactly match this name. If no options are passed it will return all security policies. Only one option can be used at a time.
- Name
Contains string - Match when the value exist in the name of the security policy.
- Name
Exclude string - Match when the exact value does not exist in the name of the security policy.
- Name
Prefix string - The name of the security policy must start with the value.
- Name
Regexp string - The regular expression match of the name of the security policy.
- Name
Suffix string - The name of the security policy must end with the value.
- id String
- The ID of this resource.
- security
Policies List<GetTwingate Security Policies Security Policy> - name String
- Returns only security policies that exactly match this name. If no options are passed it will return all security policies. Only one option can be used at a time.
- name
Contains String - Match when the value exist in the name of the security policy.
- name
Exclude String - Match when the exact value does not exist in the name of the security policy.
- name
Prefix String - The name of the security policy must start with the value.
- name
Regexp String - The regular expression match of the name of the security policy.
- name
Suffix String - The name of the security policy must end with the value.
- id string
- The ID of this resource.
- security
Policies GetTwingate Security Policies Security Policy[] - name string
- Returns only security policies that exactly match this name. If no options are passed it will return all security policies. Only one option can be used at a time.
- name
Contains string - Match when the value exist in the name of the security policy.
- name
Exclude string - Match when the exact value does not exist in the name of the security policy.
- name
Prefix string - The name of the security policy must start with the value.
- name
Regexp string - The regular expression match of the name of the security policy.
- name
Suffix string - The name of the security policy must end with the value.
- id str
- The ID of this resource.
- security_
policies Sequence[GetTwingate Security Policies Security Policy] - name str
- Returns only security policies that exactly match this name. If no options are passed it will return all security policies. Only one option can be used at a time.
- name_
contains str - Match when the value exist in the name of the security policy.
- name_
exclude str - Match when the exact value does not exist in the name of the security policy.
- name_
prefix str - The name of the security policy must start with the value.
- name_
regexp str - The regular expression match of the name of the security policy.
- name_
suffix str - The name of the security policy must end with the value.
- id String
- The ID of this resource.
- security
Policies List<Property Map> - name String
- Returns only security policies that exactly match this name. If no options are passed it will return all security policies. Only one option can be used at a time.
- name
Contains String - Match when the value exist in the name of the security policy.
- name
Exclude String - Match when the exact value does not exist in the name of the security policy.
- name
Prefix String - The name of the security policy must start with the value.
- name
Regexp String - The regular expression match of the name of the security policy.
- name
Suffix String - The name of the security policy must end with the value.
Supporting Types
GetTwingateSecurityPoliciesSecurityPolicy
Package Details
- Repository
- twingate Twingate/pulumi-twingate
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
twingateTerraform Provider.
