1. Packages
  2. Cisco Catalyst SD-WAN Provider
  3. API Docs
  4. getDnsSecurityPolicyDefinition
Cisco Catalyst SD-WAN v0.3.1 published on Friday, Apr 25, 2025 by Pulumi

sdwan.getDnsSecurityPolicyDefinition

Explore with Pulumi AI

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",
});
Copy
import pulumi
import pulumi_sdwan as sdwan

example = sdwan.get_dns_security_policy_definition(id="f6b2c44c-693c-4763-b010-895aa3d236bd")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: sdwan:getDnsSecurityPolicyDefinition
      arguments:
        id: f6b2c44c-693c-4763-b010-895aa3d236bd
Copy

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>
Copy
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]
Copy
func LookupDnsSecurityPolicyDefinition(ctx *Context, args *LookupDnsSecurityPolicyDefinitionArgs, opts ...InvokeOption) (*LookupDnsSecurityPolicyDefinitionResult, error)
func LookupDnsSecurityPolicyDefinitionOutput(ctx *Context, args *LookupDnsSecurityPolicyDefinitionOutputArgs, opts ...InvokeOption) LookupDnsSecurityPolicyDefinitionResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetDnsSecurityPolicyDefinitionResult> getDnsSecurityPolicyDefinition(GetDnsSecurityPolicyDefinitionArgs args, InvokeOptions options)
public static Output<GetDnsSecurityPolicyDefinitionResult> getDnsSecurityPolicyDefinition(GetDnsSecurityPolicyDefinitionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: sdwan:index/getDnsSecurityPolicyDefinition:getDnsSecurityPolicyDefinition
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The id of the object
Id This property is required. string
The id of the object
id This property is required. String
The id of the object
id This property is required. string
The id of the object
id This property is required. str
The id of the object
id This property is required. String
The id of the object

getDnsSecurityPolicyDefinition Result

The following output properties are available:

CiscoSigCredentialsFeatureTemplateId string
Credentials feature template ID
CiscoSigCredentialsFeatureTemplateVersion int
Credentials feature template version
CustomDnsServerIp string
Only relevant when umbrella_dns_default is false
Description string
The description of the policy definition.
Dnscrypt bool
Should DNSCrypt be enabled
DomainListId string
Local domain bypass list ID
DomainListVersion int
Local domain bypass list version
Id string
The id of the object
LocalDomainBypassEnabled bool
Should the local domain bypass list be enabled
MatchAllVpn bool
Should use match all VPN
Name string
The name of the policy definition.
TargetVpns List<GetDnsSecurityPolicyDefinitionTargetVpn>
Only relevant when match_all_vpn is false
UmbrellaDnsDefault bool
Should use umbrella as DNS Server
Version int
The version of the object
CiscoSigCredentialsFeatureTemplateId string
Credentials feature template ID
CiscoSigCredentialsFeatureTemplateVersion int
Credentials feature template version
CustomDnsServerIp string
Only relevant when umbrella_dns_default is false
Description string
The description of the policy definition.
Dnscrypt bool
Should DNSCrypt be enabled
DomainListId string
Local domain bypass list ID
DomainListVersion int
Local domain bypass list version
Id string
The id of the object
LocalDomainBypassEnabled bool
Should the local domain bypass list be enabled
MatchAllVpn bool
Should use match all VPN
Name string
The name of the policy definition.
TargetVpns []GetDnsSecurityPolicyDefinitionTargetVpn
Only relevant when match_all_vpn is false
UmbrellaDnsDefault bool
Should use umbrella as DNS Server
Version int
The version of the object
ciscoSigCredentialsFeatureTemplateId String
Credentials feature template ID
ciscoSigCredentialsFeatureTemplateVersion Integer
Credentials feature template version
customDnsServerIp String
Only relevant when umbrella_dns_default is false
description String
The description of the policy definition.
dnscrypt Boolean
Should DNSCrypt be enabled
domainListId String
Local domain bypass list ID
domainListVersion Integer
Local domain bypass list version
id String
The id of the object
localDomainBypassEnabled Boolean
Should the local domain bypass list be enabled
matchAllVpn Boolean
Should use match all VPN
name String
The name of the policy definition.
targetVpns List<GetDnsSecurityPolicyDefinitionTargetVpn>
Only relevant when match_all_vpn is false
umbrellaDnsDefault Boolean
Should use umbrella as DNS Server
version Integer
The version of the object
ciscoSigCredentialsFeatureTemplateId string
Credentials feature template ID
ciscoSigCredentialsFeatureTemplateVersion number
Credentials feature template version
customDnsServerIp string
Only relevant when umbrella_dns_default is false
description string
The description of the policy definition.
dnscrypt boolean
Should DNSCrypt be enabled
domainListId string
Local domain bypass list ID
domainListVersion number
Local domain bypass list version
id string
The id of the object
localDomainBypassEnabled boolean
Should the local domain bypass list be enabled
matchAllVpn boolean
Should use match all VPN
name string
The name of the policy definition.
targetVpns GetDnsSecurityPolicyDefinitionTargetVpn[]
Only relevant when match_all_vpn is false
umbrellaDnsDefault boolean
Should use umbrella as DNS Server
version number
The version of the object
cisco_sig_credentials_feature_template_id str
Credentials feature template ID
cisco_sig_credentials_feature_template_version int
Credentials feature template version
custom_dns_server_ip str
Only relevant when umbrella_dns_default is false
description str
The description of the policy definition.
dnscrypt bool
Should DNSCrypt be enabled
domain_list_id str
Local domain bypass list ID
domain_list_version int
Local domain bypass list version
id str
The id of the object
local_domain_bypass_enabled bool
Should the local domain bypass list be enabled
match_all_vpn bool
Should use match all VPN
name str
The name of the policy definition.
target_vpns Sequence[GetDnsSecurityPolicyDefinitionTargetVpn]
Only relevant when match_all_vpn is false
umbrella_dns_default bool
Should use umbrella as DNS Server
version int
The version of the object
ciscoSigCredentialsFeatureTemplateId String
Credentials feature template ID
ciscoSigCredentialsFeatureTemplateVersion Number
Credentials feature template version
customDnsServerIp String
Only relevant when umbrella_dns_default is false
description String
The description of the policy definition.
dnscrypt Boolean
Should DNSCrypt be enabled
domainListId String
Local domain bypass list ID
domainListVersion Number
Local domain bypass list version
id String
The id of the object
localDomainBypassEnabled Boolean
Should the local domain bypass list be enabled
matchAllVpn Boolean
Should use match all VPN
name String
The name of the policy definition.
targetVpns List<Property Map>
Only relevant when match_all_vpn is false
umbrellaDnsDefault Boolean
Should use umbrella as DNS Server
version Number
The version of the object

Supporting Types

GetDnsSecurityPolicyDefinitionTargetVpn

CustomDnsServerIp This property is required. string
Only relevant when umbrella_dns_default is false
LocalDomainBypassEnabled This property is required. bool
Should the local domain bypass list be enabled
UmbrellaDnsDefault This property is required. bool
Should use umbrella as DNS Server
VpnIds This property is required. List<string>
VPN ID's separated by Comma
CustomDnsServerIp This property is required. string
Only relevant when umbrella_dns_default is false
LocalDomainBypassEnabled This property is required. bool
Should the local domain bypass list be enabled
UmbrellaDnsDefault This property is required. bool
Should use umbrella as DNS Server
VpnIds This property is required. []string
VPN ID's separated by Comma
customDnsServerIp This property is required. String
Only relevant when umbrella_dns_default is false
localDomainBypassEnabled This property is required. Boolean
Should the local domain bypass list be enabled
umbrellaDnsDefault This property is required. Boolean
Should use umbrella as DNS Server
vpnIds This property is required. List<String>
VPN ID's separated by Comma
customDnsServerIp This property is required. string
Only relevant when umbrella_dns_default is false
localDomainBypassEnabled This property is required. boolean
Should the local domain bypass list be enabled
umbrellaDnsDefault This property is required. boolean
Should use umbrella as DNS Server
vpnIds This property is required. string[]
VPN ID's separated by Comma
custom_dns_server_ip This property is required. str
Only relevant when umbrella_dns_default is false
local_domain_bypass_enabled This property is required. bool
Should the local domain bypass list be enabled
umbrella_dns_default This property is required. bool
Should use umbrella as DNS Server
vpn_ids This property is required. Sequence[str]
VPN ID's separated by Comma
customDnsServerIp This property is required. String
Only relevant when umbrella_dns_default is false
localDomainBypassEnabled This property is required. Boolean
Should the local domain bypass list be enabled
umbrellaDnsDefault This property is required. Boolean
Should use umbrella as DNS Server
vpnIds This property is required. 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 sdwan Terraform Provider.