1. Packages
  2. Cisco Catalyst SD-WAN
  3. API Docs
  4. getDnsSecurityPolicyDefinition
Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi

sdwan.getDnsSecurityPolicyDefinition

Explore with Pulumi AI

sdwan logo
Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: sdwan:index/getDnsSecurityPolicyDefinition:getDnsSecurityPolicyDefinition
      arguments:
        # arguments dictionary

    The 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:

    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 string
    Only relevant when umbrella_dns_default is false
    LocalDomainBypassEnabled bool
    Should the local domain bypass list be enabled
    UmbrellaDnsDefault bool
    Should use umbrella as DNS Server
    VpnIds List<string>
    VPN ID's separated by Comma
    CustomDnsServerIp string
    Only relevant when umbrella_dns_default is false
    LocalDomainBypassEnabled bool
    Should the local domain bypass list be enabled
    UmbrellaDnsDefault bool
    Should use umbrella as DNS Server
    VpnIds []string
    VPN ID's separated by Comma
    customDnsServerIp String
    Only relevant when umbrella_dns_default is false
    localDomainBypassEnabled Boolean
    Should the local domain bypass list be enabled
    umbrellaDnsDefault Boolean
    Should use umbrella as DNS Server
    vpnIds List<String>
    VPN ID's separated by Comma
    customDnsServerIp string
    Only relevant when umbrella_dns_default is false
    localDomainBypassEnabled boolean
    Should the local domain bypass list be enabled
    umbrellaDnsDefault boolean
    Should use umbrella as DNS Server
    vpnIds string[]
    VPN ID's separated by Comma
    custom_dns_server_ip str
    Only relevant when umbrella_dns_default is false
    local_domain_bypass_enabled bool
    Should the local domain bypass list be enabled
    umbrella_dns_default bool
    Should use umbrella as DNS Server
    vpn_ids Sequence[str]
    VPN ID's separated by Comma
    customDnsServerIp String
    Only relevant when umbrella_dns_default is false
    localDomainBypassEnabled Boolean
    Should the local domain bypass list be enabled
    umbrellaDnsDefault Boolean
    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 sdwan Terraform Provider.
    sdwan logo
    Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi