Twingate v3.0.11 published on Wednesday, Aug 28, 2024 by Twingate
twingate.getTwingateDNSFilteringProfile
Explore with Pulumi AI
DNS filtering gives you the ability to control what websites your users can access. DNS filtering is only available on certain plans. For more information, see Twingate’s documentation. DNS filtering must be enabled for this data source to work. If DNS filtering isn’t enabled, the provider will throw an error.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as twingate from "@pulumi/twingate";
const example = twingate.getTwingateDNSFilteringProfile({
id: "<your dns profile's id>",
});
import pulumi
import pulumi_twingate as twingate
example = twingate.get_twingate_dns_filtering_profile(id="<your dns profile's id>")
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.LookupTwingateDNSFilteringProfile(ctx, &twingate.LookupTwingateDNSFilteringProfileArgs{
Id: "<your dns profile's id>",
}, 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 example = Twingate.GetTwingateDNSFilteringProfile.Invoke(new()
{
Id = "<your dns profile's id>",
});
});
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.GetTwingateDNSFilteringProfileArgs;
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 example = TwingateFunctions.getTwingateDNSFilteringProfile(GetTwingateDNSFilteringProfileArgs.builder()
.id("<your dns profile's id>")
.build());
}
}
variables:
example:
fn::invoke:
Function: twingate:getTwingateDNSFilteringProfile
Arguments:
id: <your dns profile's id>
Using getTwingateDNSFilteringProfile
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 getTwingateDNSFilteringProfile(args: GetTwingateDNSFilteringProfileArgs, opts?: InvokeOptions): Promise<GetTwingateDNSFilteringProfileResult>
function getTwingateDNSFilteringProfileOutput(args: GetTwingateDNSFilteringProfileOutputArgs, opts?: InvokeOptions): Output<GetTwingateDNSFilteringProfileResult>
def get_twingate_dns_filtering_profile(allowed_domains: Optional[GetTwingateDNSFilteringProfileAllowedDomains] = None,
content_categories: Optional[GetTwingateDNSFilteringProfileContentCategories] = None,
denied_domains: Optional[GetTwingateDNSFilteringProfileDeniedDomains] = None,
id: Optional[str] = None,
privacy_categories: Optional[GetTwingateDNSFilteringProfilePrivacyCategories] = None,
security_categories: Optional[GetTwingateDNSFilteringProfileSecurityCategories] = None,
opts: Optional[InvokeOptions] = None) -> GetTwingateDNSFilteringProfileResult
def get_twingate_dns_filtering_profile_output(allowed_domains: Optional[pulumi.Input[GetTwingateDNSFilteringProfileAllowedDomainsArgs]] = None,
content_categories: Optional[pulumi.Input[GetTwingateDNSFilteringProfileContentCategoriesArgs]] = None,
denied_domains: Optional[pulumi.Input[GetTwingateDNSFilteringProfileDeniedDomainsArgs]] = None,
id: Optional[pulumi.Input[str]] = None,
privacy_categories: Optional[pulumi.Input[GetTwingateDNSFilteringProfilePrivacyCategoriesArgs]] = None,
security_categories: Optional[pulumi.Input[GetTwingateDNSFilteringProfileSecurityCategoriesArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTwingateDNSFilteringProfileResult]
func LookupTwingateDNSFilteringProfile(ctx *Context, args *LookupTwingateDNSFilteringProfileArgs, opts ...InvokeOption) (*LookupTwingateDNSFilteringProfileResult, error)
func LookupTwingateDNSFilteringProfileOutput(ctx *Context, args *LookupTwingateDNSFilteringProfileOutputArgs, opts ...InvokeOption) LookupTwingateDNSFilteringProfileResultOutput
> Note: This function is named LookupTwingateDNSFilteringProfile
in the Go SDK.
public static class GetTwingateDNSFilteringProfile
{
public static Task<GetTwingateDNSFilteringProfileResult> InvokeAsync(GetTwingateDNSFilteringProfileArgs args, InvokeOptions? opts = null)
public static Output<GetTwingateDNSFilteringProfileResult> Invoke(GetTwingateDNSFilteringProfileInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTwingateDNSFilteringProfileResult> getTwingateDNSFilteringProfile(GetTwingateDNSFilteringProfileArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: twingate:index/getTwingateDNSFilteringProfile:getTwingateDNSFilteringProfile
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The DNS filtering profile's ID.
- Allowed
Domains Twingate.Twingate. Inputs. Get Twingate DNSFiltering Profile Allowed Domains - A block with the following attributes.
- Content
Categories Twingate.Twingate. Inputs. Get Twingate DNSFiltering Profile Content Categories - A block with the following attributes.
- Denied
Domains Twingate.Twingate. Inputs. Get Twingate DNSFiltering Profile Denied Domains - A block with the following attributes.
- Privacy
Categories Twingate.Twingate. Inputs. Get Twingate DNSFiltering Profile Privacy Categories - A block with the following attributes.
- Security
Categories Twingate.Twingate. Inputs. Get Twingate DNSFiltering Profile Security Categories - A block with the following attributes.
- Id string
- The DNS filtering profile's ID.
- Allowed
Domains GetTwingate DNSFiltering Profile Allowed Domains - A block with the following attributes.
- Content
Categories GetTwingate DNSFiltering Profile Content Categories - A block with the following attributes.
- Denied
Domains GetTwingate DNSFiltering Profile Denied Domains - A block with the following attributes.
- Privacy
Categories GetTwingate DNSFiltering Profile Privacy Categories - A block with the following attributes.
- Security
Categories GetTwingate DNSFiltering Profile Security Categories - A block with the following attributes.
- id String
- The DNS filtering profile's ID.
- allowed
Domains GetTwingate DNSFiltering Profile Allowed Domains - A block with the following attributes.
- content
Categories GetTwingate DNSFiltering Profile Content Categories - A block with the following attributes.
- denied
Domains GetTwingate DNSFiltering Profile Denied Domains - A block with the following attributes.
- privacy
Categories GetTwingate DNSFiltering Profile Privacy Categories - A block with the following attributes.
- security
Categories GetTwingate DNSFiltering Profile Security Categories - A block with the following attributes.
- id string
- The DNS filtering profile's ID.
- allowed
Domains GetTwingate DNSFiltering Profile Allowed Domains - A block with the following attributes.
- content
Categories GetTwingate DNSFiltering Profile Content Categories - A block with the following attributes.
- denied
Domains GetTwingate DNSFiltering Profile Denied Domains - A block with the following attributes.
- privacy
Categories GetTwingate DNSFiltering Profile Privacy Categories - A block with the following attributes.
- security
Categories GetTwingate DNSFiltering Profile Security Categories - A block with the following attributes.
- id str
- The DNS filtering profile's ID.
- allowed_
domains GetTwingate DNSFiltering Profile Allowed Domains - A block with the following attributes.
- content_
categories GetTwingate DNSFiltering Profile Content Categories - A block with the following attributes.
- denied_
domains GetTwingate DNSFiltering Profile Denied Domains - A block with the following attributes.
- privacy_
categories GetTwingate DNSFiltering Profile Privacy Categories - A block with the following attributes.
- security_
categories GetTwingate DNSFiltering Profile Security Categories - A block with the following attributes.
- id String
- The DNS filtering profile's ID.
- allowed
Domains Property Map - A block with the following attributes.
- content
Categories Property Map - A block with the following attributes.
- denied
Domains Property Map - A block with the following attributes.
- privacy
Categories Property Map - A block with the following attributes.
- security
Categories Property Map - A block with the following attributes.
getTwingateDNSFilteringProfile Result
The following output properties are available:
- Fallback
Method string - The DNS filtering profile's fallback method. One of AUTOMATIC or STRICT.
- Groups List<string>
- A set of group IDs that have this as their DNS filtering profile. Defaults to an empty set.
- Id string
- The DNS filtering profile's ID.
- Name string
- The DNS filtering profile's name.
- Priority double
- A floating point number representing the profile's priority.
- Allowed
Domains Twingate.Twingate. Outputs. Get Twingate DNSFiltering Profile Allowed Domains - A block with the following attributes.
- Content
Categories Twingate.Twingate. Outputs. Get Twingate DNSFiltering Profile Content Categories - A block with the following attributes.
- Denied
Domains Twingate.Twingate. Outputs. Get Twingate DNSFiltering Profile Denied Domains - A block with the following attributes.
- Privacy
Categories Twingate.Twingate. Outputs. Get Twingate DNSFiltering Profile Privacy Categories - A block with the following attributes.
- Security
Categories Twingate.Twingate. Outputs. Get Twingate DNSFiltering Profile Security Categories - A block with the following attributes.
- Fallback
Method string - The DNS filtering profile's fallback method. One of AUTOMATIC or STRICT.
- Groups []string
- A set of group IDs that have this as their DNS filtering profile. Defaults to an empty set.
- Id string
- The DNS filtering profile's ID.
- Name string
- The DNS filtering profile's name.
- Priority float64
- A floating point number representing the profile's priority.
- Allowed
Domains GetTwingate DNSFiltering Profile Allowed Domains - A block with the following attributes.
- Content
Categories GetTwingate DNSFiltering Profile Content Categories - A block with the following attributes.
- Denied
Domains GetTwingate DNSFiltering Profile Denied Domains - A block with the following attributes.
- Privacy
Categories GetTwingate DNSFiltering Profile Privacy Categories - A block with the following attributes.
- Security
Categories GetTwingate DNSFiltering Profile Security Categories - A block with the following attributes.
- fallback
Method String - The DNS filtering profile's fallback method. One of AUTOMATIC or STRICT.
- groups List<String>
- A set of group IDs that have this as their DNS filtering profile. Defaults to an empty set.
- id String
- The DNS filtering profile's ID.
- name String
- The DNS filtering profile's name.
- priority Double
- A floating point number representing the profile's priority.
- allowed
Domains GetTwingate DNSFiltering Profile Allowed Domains - A block with the following attributes.
- content
Categories GetTwingate DNSFiltering Profile Content Categories - A block with the following attributes.
- denied
Domains GetTwingate DNSFiltering Profile Denied Domains - A block with the following attributes.
- privacy
Categories GetTwingate DNSFiltering Profile Privacy Categories - A block with the following attributes.
- security
Categories GetTwingate DNSFiltering Profile Security Categories - A block with the following attributes.
- fallback
Method string - The DNS filtering profile's fallback method. One of AUTOMATIC or STRICT.
- groups string[]
- A set of group IDs that have this as their DNS filtering profile. Defaults to an empty set.
- id string
- The DNS filtering profile's ID.
- name string
- The DNS filtering profile's name.
- priority number
- A floating point number representing the profile's priority.
- allowed
Domains GetTwingate DNSFiltering Profile Allowed Domains - A block with the following attributes.
- content
Categories GetTwingate DNSFiltering Profile Content Categories - A block with the following attributes.
- denied
Domains GetTwingate DNSFiltering Profile Denied Domains - A block with the following attributes.
- privacy
Categories GetTwingate DNSFiltering Profile Privacy Categories - A block with the following attributes.
- security
Categories GetTwingate DNSFiltering Profile Security Categories - A block with the following attributes.
- fallback_
method str - The DNS filtering profile's fallback method. One of AUTOMATIC or STRICT.
- groups Sequence[str]
- A set of group IDs that have this as their DNS filtering profile. Defaults to an empty set.
- id str
- The DNS filtering profile's ID.
- name str
- The DNS filtering profile's name.
- priority float
- A floating point number representing the profile's priority.
- allowed_
domains GetTwingate DNSFiltering Profile Allowed Domains - A block with the following attributes.
- content_
categories GetTwingate DNSFiltering Profile Content Categories - A block with the following attributes.
- denied_
domains GetTwingate DNSFiltering Profile Denied Domains - A block with the following attributes.
- privacy_
categories GetTwingate DNSFiltering Profile Privacy Categories - A block with the following attributes.
- security_
categories GetTwingate DNSFiltering Profile Security Categories - A block with the following attributes.
- fallback
Method String - The DNS filtering profile's fallback method. One of AUTOMATIC or STRICT.
- groups List<String>
- A set of group IDs that have this as their DNS filtering profile. Defaults to an empty set.
- id String
- The DNS filtering profile's ID.
- name String
- The DNS filtering profile's name.
- priority Number
- A floating point number representing the profile's priority.
- allowed
Domains Property Map - A block with the following attributes.
- content
Categories Property Map - A block with the following attributes.
- denied
Domains Property Map - A block with the following attributes.
- privacy
Categories Property Map - A block with the following attributes.
- security
Categories Property Map - A block with the following attributes.
Supporting Types
GetTwingateDNSFilteringProfileAllowedDomains
- Domains List<string>
- A set of allowed domains.
- Domains []string
- A set of allowed domains.
- domains List<String>
- A set of allowed domains.
- domains string[]
- A set of allowed domains.
- domains Sequence[str]
- A set of allowed domains.
- domains List<String>
- A set of allowed domains.
GetTwingateDNSFilteringProfileContentCategories
- Block
Adult boolContent - Whether to block adult content.
- Block
Dating bool - Whether to block dating content.
- Block
Gambling bool - Whether to block gambling content.
- Block
Games bool - Whether to block games.
- Block
Piracy bool - Whether to block piracy sites.
- bool
- Whether to block social media.
- Block
Streaming bool - Whether to block streaming content.
- Enable
Safesearch bool - Whether to force safe search.
- Enable
Youtube boolRestricted Mode - Whether to force YouTube to use restricted mode.
- Block
Adult boolContent - Whether to block adult content.
- Block
Dating bool - Whether to block dating content.
- Block
Gambling bool - Whether to block gambling content.
- Block
Games bool - Whether to block games.
- Block
Piracy bool - Whether to block piracy sites.
- bool
- Whether to block social media.
- Block
Streaming bool - Whether to block streaming content.
- Enable
Safesearch bool - Whether to force safe search.
- Enable
Youtube boolRestricted Mode - Whether to force YouTube to use restricted mode.
- block
Adult BooleanContent - Whether to block adult content.
- block
Dating Boolean - Whether to block dating content.
- block
Gambling Boolean - Whether to block gambling content.
- block
Games Boolean - Whether to block games.
- block
Piracy Boolean - Whether to block piracy sites.
- Boolean
- Whether to block social media.
- block
Streaming Boolean - Whether to block streaming content.
- enable
Safesearch Boolean - Whether to force safe search.
- enable
Youtube BooleanRestricted Mode - Whether to force YouTube to use restricted mode.
- block
Adult booleanContent - Whether to block adult content.
- block
Dating boolean - Whether to block dating content.
- block
Gambling boolean - Whether to block gambling content.
- block
Games boolean - Whether to block games.
- block
Piracy boolean - Whether to block piracy sites.
- boolean
- Whether to block social media.
- block
Streaming boolean - Whether to block streaming content.
- enable
Safesearch boolean - Whether to force safe search.
- enable
Youtube booleanRestricted Mode - Whether to force YouTube to use restricted mode.
- block_
adult_ boolcontent - Whether to block adult content.
- block_
dating bool - Whether to block dating content.
- block_
gambling bool - Whether to block gambling content.
- block_
games bool - Whether to block games.
- block_
piracy bool - Whether to block piracy sites.
- bool
- Whether to block social media.
- block_
streaming bool - Whether to block streaming content.
- enable_
safesearch bool - Whether to force safe search.
- enable_
youtube_ boolrestricted_ mode - Whether to force YouTube to use restricted mode.
- block
Adult BooleanContent - Whether to block adult content.
- block
Dating Boolean - Whether to block dating content.
- block
Gambling Boolean - Whether to block gambling content.
- block
Games Boolean - Whether to block games.
- block
Piracy Boolean - Whether to block piracy sites.
- Boolean
- Whether to block social media.
- block
Streaming Boolean - Whether to block streaming content.
- enable
Safesearch Boolean - Whether to force safe search.
- enable
Youtube BooleanRestricted Mode - Whether to force YouTube to use restricted mode.
GetTwingateDNSFilteringProfileDeniedDomains
- Domains List<string>
- A set of denied domains.
- Domains []string
- A set of denied domains.
- domains List<String>
- A set of denied domains.
- domains string[]
- A set of denied domains.
- domains Sequence[str]
- A set of denied domains.
- domains List<String>
- A set of denied domains.
GetTwingateDNSFilteringProfilePrivacyCategories
- Block
Ads boolAnd Trackers - Whether to block ads and trackers.
- Block
Affiliate boolLinks - Whether to block affiliate links.
- Block
Disguised boolTrackers - Whether to block disguised third party trackers.
- Block
Ads boolAnd Trackers - Whether to block ads and trackers.
- Block
Affiliate boolLinks - Whether to block affiliate links.
- Block
Disguised boolTrackers - Whether to block disguised third party trackers.
- block
Ads BooleanAnd Trackers - Whether to block ads and trackers.
- block
Affiliate BooleanLinks - Whether to block affiliate links.
- block
Disguised BooleanTrackers - Whether to block disguised third party trackers.
- block
Ads booleanAnd Trackers - Whether to block ads and trackers.
- block
Affiliate booleanLinks - Whether to block affiliate links.
- block
Disguised booleanTrackers - Whether to block disguised third party trackers.
- block_
ads_ booland_ trackers - Whether to block ads and trackers.
- block_
affiliate_ boollinks - Whether to block affiliate links.
- block_
disguised_ booltrackers - Whether to block disguised third party trackers.
- block
Ads BooleanAnd Trackers - Whether to block ads and trackers.
- block
Affiliate BooleanLinks - Whether to block affiliate links.
- block
Disguised BooleanTrackers - Whether to block disguised third party trackers.
GetTwingateDNSFilteringProfileSecurityCategories
- Block
Cryptojacking bool - Whether to block cryptojacking sites.
- Block
Dns boolRebinding - Blocks public DNS entries from returning private IP addresses.
- Block
Domain boolGeneration Algorithms - Blocks DGA domains.
- Block
Idn boolHomoglyph - Whether to block homoglyph attacks.
- Block
Newly boolRegistered Domains - Blocks newly registered domains.
- Block
Parked boolDomains - Block parked domains.
- Block
Typosquatting bool - Blocks typosquatted domains.
- Enable
Google boolSafe Browsing - Whether to use Google Safe browsing lists to block content.
- Enable
Threat boolIntelligence Feeds - Whether to filter content using threat intelligence feeds.
- Block
Cryptojacking bool - Whether to block cryptojacking sites.
- Block
Dns boolRebinding - Blocks public DNS entries from returning private IP addresses.
- Block
Domain boolGeneration Algorithms - Blocks DGA domains.
- Block
Idn boolHomoglyph - Whether to block homoglyph attacks.
- Block
Newly boolRegistered Domains - Blocks newly registered domains.
- Block
Parked boolDomains - Block parked domains.
- Block
Typosquatting bool - Blocks typosquatted domains.
- Enable
Google boolSafe Browsing - Whether to use Google Safe browsing lists to block content.
- Enable
Threat boolIntelligence Feeds - Whether to filter content using threat intelligence feeds.
- block
Cryptojacking Boolean - Whether to block cryptojacking sites.
- block
Dns BooleanRebinding - Blocks public DNS entries from returning private IP addresses.
- block
Domain BooleanGeneration Algorithms - Blocks DGA domains.
- block
Idn BooleanHomoglyph - Whether to block homoglyph attacks.
- block
Newly BooleanRegistered Domains - Blocks newly registered domains.
- block
Parked BooleanDomains - Block parked domains.
- block
Typosquatting Boolean - Blocks typosquatted domains.
- enable
Google BooleanSafe Browsing - Whether to use Google Safe browsing lists to block content.
- enable
Threat BooleanIntelligence Feeds - Whether to filter content using threat intelligence feeds.
- block
Cryptojacking boolean - Whether to block cryptojacking sites.
- block
Dns booleanRebinding - Blocks public DNS entries from returning private IP addresses.
- block
Domain booleanGeneration Algorithms - Blocks DGA domains.
- block
Idn booleanHomoglyph - Whether to block homoglyph attacks.
- block
Newly booleanRegistered Domains - Blocks newly registered domains.
- block
Parked booleanDomains - Block parked domains.
- block
Typosquatting boolean - Blocks typosquatted domains.
- enable
Google booleanSafe Browsing - Whether to use Google Safe browsing lists to block content.
- enable
Threat booleanIntelligence Feeds - Whether to filter content using threat intelligence feeds.
- block_
cryptojacking bool - Whether to block cryptojacking sites.
- block_
dns_ boolrebinding - Blocks public DNS entries from returning private IP addresses.
- block_
domain_ boolgeneration_ algorithms - Blocks DGA domains.
- block_
idn_ boolhomoglyph - Whether to block homoglyph attacks.
- block_
newly_ boolregistered_ domains - Blocks newly registered domains.
- block_
parked_ booldomains - Block parked domains.
- block_
typosquatting bool - Blocks typosquatted domains.
- enable_
google_ boolsafe_ browsing - Whether to use Google Safe browsing lists to block content.
- enable_
threat_ boolintelligence_ feeds - Whether to filter content using threat intelligence feeds.
- block
Cryptojacking Boolean - Whether to block cryptojacking sites.
- block
Dns BooleanRebinding - Blocks public DNS entries from returning private IP addresses.
- block
Domain BooleanGeneration Algorithms - Blocks DGA domains.
- block
Idn BooleanHomoglyph - Whether to block homoglyph attacks.
- block
Newly BooleanRegistered Domains - Blocks newly registered domains.
- block
Parked BooleanDomains - Block parked domains.
- block
Typosquatting Boolean - Blocks typosquatted domains.
- enable
Google BooleanSafe Browsing - Whether to use Google Safe browsing lists to block content.
- enable
Threat BooleanIntelligence Feeds - Whether to filter content using threat intelligence feeds.
Package Details
- Repository
- twingate Twingate/pulumi-twingate
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
twingate
Terraform Provider.