Cisco Catalyst SD-WAN v0.5.0 published on Tuesday, Oct 14, 2025 by Pulumi
sdwan.getDnsSecurityPolicyDefinition
This data source can read the DNS Security Policy Definition .
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdwan from "@pulumi/sdwan";
const example = sdwan.getDnsSecurityPolicyDefinition({
    id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
});
import pulumi
import pulumi_sdwan as sdwan
example = sdwan.get_dns_security_policy_definition(id="f6b2c44c-693c-4763-b010-895aa3d236bd")
package main
import (
	"github.com/pulumi/pulumi-sdwan/sdk/go/sdwan"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sdwan.LookupDnsSecurityPolicyDefinition(ctx, &sdwan.LookupDnsSecurityPolicyDefinitionArgs{
			Id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sdwan = Pulumi.Sdwan;
return await Deployment.RunAsync(() => 
{
    var example = Sdwan.GetDnsSecurityPolicyDefinition.Invoke(new()
    {
        Id = "f6b2c44c-693c-4763-b010-895aa3d236bd",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdwan.SdwanFunctions;
import com.pulumi.sdwan.inputs.GetDnsSecurityPolicyDefinitionArgs;
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 = SdwanFunctions.getDnsSecurityPolicyDefinition(GetDnsSecurityPolicyDefinitionArgs.builder()
            .id("f6b2c44c-693c-4763-b010-895aa3d236bd")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: sdwan:getDnsSecurityPolicyDefinition
      arguments:
        id: f6b2c44c-693c-4763-b010-895aa3d236bd
Using getDnsSecurityPolicyDefinition
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 getDnsSecurityPolicyDefinition(args: GetDnsSecurityPolicyDefinitionArgs, opts?: InvokeOptions): Promise<GetDnsSecurityPolicyDefinitionResult>
function getDnsSecurityPolicyDefinitionOutput(args: GetDnsSecurityPolicyDefinitionOutputArgs, opts?: InvokeOptions): Output<GetDnsSecurityPolicyDefinitionResult>def get_dns_security_policy_definition(id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetDnsSecurityPolicyDefinitionResult
def get_dns_security_policy_definition_output(id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetDnsSecurityPolicyDefinitionResult]func LookupDnsSecurityPolicyDefinition(ctx *Context, args *LookupDnsSecurityPolicyDefinitionArgs, opts ...InvokeOption) (*LookupDnsSecurityPolicyDefinitionResult, error)
func LookupDnsSecurityPolicyDefinitionOutput(ctx *Context, args *LookupDnsSecurityPolicyDefinitionOutputArgs, opts ...InvokeOption) LookupDnsSecurityPolicyDefinitionResultOutput> Note: This function is named LookupDnsSecurityPolicyDefinition in the Go SDK.
public static class GetDnsSecurityPolicyDefinition 
{
    public static Task<GetDnsSecurityPolicyDefinitionResult> InvokeAsync(GetDnsSecurityPolicyDefinitionArgs args, InvokeOptions? opts = null)
    public static Output<GetDnsSecurityPolicyDefinitionResult> Invoke(GetDnsSecurityPolicyDefinitionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDnsSecurityPolicyDefinitionResult> getDnsSecurityPolicyDefinition(GetDnsSecurityPolicyDefinitionArgs args, InvokeOptions options)
public static Output<GetDnsSecurityPolicyDefinitionResult> getDnsSecurityPolicyDefinition(GetDnsSecurityPolicyDefinitionArgs args, InvokeOptions options)
fn::invoke:
  function: sdwan:index/getDnsSecurityPolicyDefinition:getDnsSecurityPolicyDefinition
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- The id of the object
- Id string
- The id of the object
- id String
- The id of the object
- id string
- The id of the object
- id str
- The id of the object
- id String
- The id of the object
getDnsSecurityPolicyDefinition Result
The following output properties are available:
- CiscoSig stringCredentials Feature Template Id 
- Credentials feature template ID
- CiscoSig intCredentials Feature Template Version 
- Credentials feature template version
- CustomDns stringServer Ip 
- Only relevant when umbrella_dns_defaultisfalse
- Description string
- The description of the policy definition.
- Dnscrypt bool
- Should DNSCrypt be enabled
- DomainList stringId 
- Local domain bypass list ID
- DomainList intVersion 
- Local domain bypass list version
- Id string
- The id of the object
- LocalDomain boolBypass Enabled 
- Should the local domain bypass list be enabled
- MatchAll boolVpn 
- Should use match all VPN
- Name string
- The name of the policy definition.
- TargetVpns List<GetDns Security Policy Definition Target Vpn> 
- Only relevant when match_all_vpnisfalse
- UmbrellaDns boolDefault 
- Should use umbrella as DNS Server
- Version int
- The version of the object
- CiscoSig stringCredentials Feature Template Id 
- Credentials feature template ID
- CiscoSig intCredentials Feature Template Version 
- Credentials feature template version
- CustomDns stringServer Ip 
- Only relevant when umbrella_dns_defaultisfalse
- Description string
- The description of the policy definition.
- Dnscrypt bool
- Should DNSCrypt be enabled
- DomainList stringId 
- Local domain bypass list ID
- DomainList intVersion 
- Local domain bypass list version
- Id string
- The id of the object
- LocalDomain boolBypass Enabled 
- Should the local domain bypass list be enabled
- MatchAll boolVpn 
- Should use match all VPN
- Name string
- The name of the policy definition.
- TargetVpns []GetDns Security Policy Definition Target Vpn 
- Only relevant when match_all_vpnisfalse
- UmbrellaDns boolDefault 
- Should use umbrella as DNS Server
- Version int
- The version of the object
- ciscoSig StringCredentials Feature Template Id 
- Credentials feature template ID
- ciscoSig IntegerCredentials Feature Template Version 
- Credentials feature template version
- customDns StringServer Ip 
- Only relevant when umbrella_dns_defaultisfalse
- description String
- The description of the policy definition.
- dnscrypt Boolean
- Should DNSCrypt be enabled
- domainList StringId 
- Local domain bypass list ID
- domainList IntegerVersion 
- Local domain bypass list version
- id String
- The id of the object
- localDomain BooleanBypass Enabled 
- Should the local domain bypass list be enabled
- matchAll BooleanVpn 
- Should use match all VPN
- name String
- The name of the policy definition.
- targetVpns List<GetDns Security Policy Definition Target Vpn> 
- Only relevant when match_all_vpnisfalse
- umbrellaDns BooleanDefault 
- Should use umbrella as DNS Server
- version Integer
- The version of the object
- ciscoSig stringCredentials Feature Template Id 
- Credentials feature template ID
- ciscoSig numberCredentials Feature Template Version 
- Credentials feature template version
- customDns stringServer Ip 
- Only relevant when umbrella_dns_defaultisfalse
- description string
- The description of the policy definition.
- dnscrypt boolean
- Should DNSCrypt be enabled
- domainList stringId 
- Local domain bypass list ID
- domainList numberVersion 
- Local domain bypass list version
- id string
- The id of the object
- localDomain booleanBypass Enabled 
- Should the local domain bypass list be enabled
- matchAll booleanVpn 
- Should use match all VPN
- name string
- The name of the policy definition.
- targetVpns GetDns Security Policy Definition Target Vpn[] 
- Only relevant when match_all_vpnisfalse
- umbrellaDns booleanDefault 
- Should use umbrella as DNS Server
- version number
- The version of the object
- cisco_sig_ strcredentials_ feature_ template_ id 
- Credentials feature template ID
- cisco_sig_ intcredentials_ feature_ template_ version 
- Credentials feature template version
- custom_dns_ strserver_ ip 
- Only relevant when umbrella_dns_defaultisfalse
- description str
- The description of the policy definition.
- dnscrypt bool
- Should DNSCrypt be enabled
- domain_list_ strid 
- Local domain bypass list ID
- domain_list_ intversion 
- Local domain bypass list version
- id str
- The id of the object
- local_domain_ boolbypass_ enabled 
- Should the local domain bypass list be enabled
- match_all_ boolvpn 
- Should use match all VPN
- name str
- The name of the policy definition.
- target_vpns Sequence[GetDns Security Policy Definition Target Vpn] 
- Only relevant when match_all_vpnisfalse
- umbrella_dns_ booldefault 
- Should use umbrella as DNS Server
- version int
- The version of the object
- ciscoSig StringCredentials Feature Template Id 
- Credentials feature template ID
- ciscoSig NumberCredentials Feature Template Version 
- Credentials feature template version
- customDns StringServer Ip 
- Only relevant when umbrella_dns_defaultisfalse
- description String
- The description of the policy definition.
- dnscrypt Boolean
- Should DNSCrypt be enabled
- domainList StringId 
- Local domain bypass list ID
- domainList NumberVersion 
- Local domain bypass list version
- id String
- The id of the object
- localDomain BooleanBypass Enabled 
- Should the local domain bypass list be enabled
- matchAll BooleanVpn 
- Should use match all VPN
- name String
- The name of the policy definition.
- targetVpns List<Property Map>
- Only relevant when match_all_vpnisfalse
- umbrellaDns BooleanDefault 
- Should use umbrella as DNS Server
- version Number
- The version of the object
Supporting Types
GetDnsSecurityPolicyDefinitionTargetVpn      
- CustomDns stringServer Ip 
- Only relevant when umbrella_dns_defaultisfalse
- LocalDomain boolBypass Enabled 
- Should the local domain bypass list be enabled
- UmbrellaDns boolDefault 
- Should use umbrella as DNS Server
- VpnIds List<string>
- VPN ID's separated by Comma
- CustomDns stringServer Ip 
- Only relevant when umbrella_dns_defaultisfalse
- LocalDomain boolBypass Enabled 
- Should the local domain bypass list be enabled
- UmbrellaDns boolDefault 
- Should use umbrella as DNS Server
- VpnIds []string
- VPN ID's separated by Comma
- customDns StringServer Ip 
- Only relevant when umbrella_dns_defaultisfalse
- localDomain BooleanBypass Enabled 
- Should the local domain bypass list be enabled
- umbrellaDns BooleanDefault 
- Should use umbrella as DNS Server
- vpnIds List<String>
- VPN ID's separated by Comma
- customDns stringServer Ip 
- Only relevant when umbrella_dns_defaultisfalse
- localDomain booleanBypass Enabled 
- Should the local domain bypass list be enabled
- umbrellaDns booleanDefault 
- Should use umbrella as DNS Server
- vpnIds string[]
- VPN ID's separated by Comma
- custom_dns_ strserver_ ip 
- Only relevant when umbrella_dns_defaultisfalse
- local_domain_ boolbypass_ enabled 
- Should the local domain bypass list be enabled
- umbrella_dns_ booldefault 
- Should use umbrella as DNS Server
- vpn_ids Sequence[str]
- VPN ID's separated by Comma
- customDns StringServer Ip 
- Only relevant when umbrella_dns_defaultisfalse
- localDomain BooleanBypass Enabled 
- Should the local domain bypass list be enabled
- umbrellaDns BooleanDefault 
- Should use umbrella as DNS Server
- vpnIds List<String>
- VPN ID's separated by Comma
Package Details
- Repository
- sdwan pulumi/pulumi-sdwan
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the sdwanTerraform Provider.
 
