1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getDnsSecurityProfile
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
scm logo
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi

    DnsSecurityProfile data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    //
    // Data source to retrieve a single SCM DNS Security Profile object by its ID.
    //
    // Replace the ID with the UUID of the SCM DNS Profile you want to find.
    const scmDnsProfile = scm.getDnsSecurityProfile({
        id: "18607c90-22fa-4627-8741-f0584d1fa7d6",
    });
    export const scmDnsSecurityProfileDetails = {
        profileId: scmDnsProfile.then(scmDnsProfile => scmDnsProfile.id),
        folder: scmDnsProfile.then(scmDnsProfile => scmDnsProfile.folder),
        name: scmDnsProfile.then(scmDnsProfile => scmDnsProfile.name),
    };
    
    import pulumi
    import pulumi_scm as scm
    
    #
    # Data source to retrieve a single SCM DNS Security Profile object by its ID.
    #
    # Replace the ID with the UUID of the SCM DNS Profile you want to find.
    scm_dns_profile = scm.get_dns_security_profile(id="18607c90-22fa-4627-8741-f0584d1fa7d6")
    pulumi.export("scmDnsSecurityProfileDetails", {
        "profileId": scm_dns_profile.id,
        "folder": scm_dns_profile.folder,
        "name": scm_dns_profile.name,
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-scm/sdk/go/scm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Data source to retrieve a single SCM DNS Security Profile object by its ID.
    		//
    		// Replace the ID with the UUID of the SCM DNS Profile you want to find.
    		scmDnsProfile, err := scm.LookupDnsSecurityProfile(ctx, &scm.LookupDnsSecurityProfileArgs{
    			Id: "18607c90-22fa-4627-8741-f0584d1fa7d6",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("scmDnsSecurityProfileDetails", pulumi.StringMap{
    			"profileId": scmDnsProfile.Id,
    			"folder":    scmDnsProfile.Folder,
    			"name":      scmDnsProfile.Name,
    		})
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        //
        // Data source to retrieve a single SCM DNS Security Profile object by its ID.
        //
        // Replace the ID with the UUID of the SCM DNS Profile you want to find.
        var scmDnsProfile = Scm.GetDnsSecurityProfile.Invoke(new()
        {
            Id = "18607c90-22fa-4627-8741-f0584d1fa7d6",
        });
    
        return new Dictionary<string, object?>
        {
            ["scmDnsSecurityProfileDetails"] = 
            {
                { "profileId", scmDnsProfile.Apply(getDnsSecurityProfileResult => getDnsSecurityProfileResult.Id) },
                { "folder", scmDnsProfile.Apply(getDnsSecurityProfileResult => getDnsSecurityProfileResult.Folder) },
                { "name", scmDnsProfile.Apply(getDnsSecurityProfileResult => getDnsSecurityProfileResult.Name) },
            },
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scm.ScmFunctions;
    import com.pulumi.scm.inputs.GetDnsSecurityProfileArgs;
    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) {
            //
            // Data source to retrieve a single SCM DNS Security Profile object by its ID.
            //
            // Replace the ID with the UUID of the SCM DNS Profile you want to find.
            final var scmDnsProfile = ScmFunctions.getDnsSecurityProfile(GetDnsSecurityProfileArgs.builder()
                .id("18607c90-22fa-4627-8741-f0584d1fa7d6")
                .build());
    
            ctx.export("scmDnsSecurityProfileDetails", Map.ofEntries(
                Map.entry("profileId", scmDnsProfile.id()),
                Map.entry("folder", scmDnsProfile.folder()),
                Map.entry("name", scmDnsProfile.name())
            ));
        }
    }
    
    variables:
      #
      # Data source to retrieve a single SCM DNS Security Profile object by its ID.
      #
    
      # Replace the ID with the UUID of the SCM DNS Profile you want to find.
      scmDnsProfile:
        fn::invoke:
          function: scm:getDnsSecurityProfile
          arguments:
            id: 18607c90-22fa-4627-8741-f0584d1fa7d6
    outputs:
      # Output the details of the single SCM DNS Security Profile object found.
      scmDnsSecurityProfileDetails:
        profileId: ${scmDnsProfile.id}
        folder: ${scmDnsProfile.folder}
        name: ${scmDnsProfile.name}
    

    Using getDnsSecurityProfile

    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 getDnsSecurityProfile(args: GetDnsSecurityProfileArgs, opts?: InvokeOptions): Promise<GetDnsSecurityProfileResult>
    function getDnsSecurityProfileOutput(args: GetDnsSecurityProfileOutputArgs, opts?: InvokeOptions): Output<GetDnsSecurityProfileResult>
    def get_dns_security_profile(id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetDnsSecurityProfileResult
    def get_dns_security_profile_output(id: Optional[pulumi.Input[str]] = None,
                                 name: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetDnsSecurityProfileResult]
    func LookupDnsSecurityProfile(ctx *Context, args *LookupDnsSecurityProfileArgs, opts ...InvokeOption) (*LookupDnsSecurityProfileResult, error)
    func LookupDnsSecurityProfileOutput(ctx *Context, args *LookupDnsSecurityProfileOutputArgs, opts ...InvokeOption) LookupDnsSecurityProfileResultOutput

    > Note: This function is named LookupDnsSecurityProfile in the Go SDK.

    public static class GetDnsSecurityProfile 
    {
        public static Task<GetDnsSecurityProfileResult> InvokeAsync(GetDnsSecurityProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetDnsSecurityProfileResult> Invoke(GetDnsSecurityProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDnsSecurityProfileResult> getDnsSecurityProfile(GetDnsSecurityProfileArgs args, InvokeOptions options)
    public static Output<GetDnsSecurityProfileResult> getDnsSecurityProfile(GetDnsSecurityProfileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getDnsSecurityProfile:getDnsSecurityProfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The UUID of the DNS security profile
    Name string
    The name of the DNS security profile
    Id string
    The UUID of the DNS security profile
    Name string
    The name of the DNS security profile
    id String
    The UUID of the DNS security profile
    name String
    The name of the DNS security profile
    id string
    The UUID of the DNS security profile
    name string
    The name of the DNS security profile
    id str
    The UUID of the DNS security profile
    name str
    The name of the DNS security profile
    id String
    The UUID of the DNS security profile
    name String
    The name of the DNS security profile

    getDnsSecurityProfile Result

    The following output properties are available:

    BotnetDomains GetDnsSecurityProfileBotnetDomains
    Botnet domains
    Description string
    The description of the DNS security profile
    Device string
    The device in which the resource is defined
    Folder string
    The folder in which the resource is defined
    Id string
    The UUID of the DNS security profile
    Name string
    The name of the DNS security profile
    Snippet string
    The snippet in which the resource is defined
    Tfid string
    BotnetDomains GetDnsSecurityProfileBotnetDomains
    Botnet domains
    Description string
    The description of the DNS security profile
    Device string
    The device in which the resource is defined
    Folder string
    The folder in which the resource is defined
    Id string
    The UUID of the DNS security profile
    Name string
    The name of the DNS security profile
    Snippet string
    The snippet in which the resource is defined
    Tfid string
    botnetDomains GetDnsSecurityProfileBotnetDomains
    Botnet domains
    description String
    The description of the DNS security profile
    device String
    The device in which the resource is defined
    folder String
    The folder in which the resource is defined
    id String
    The UUID of the DNS security profile
    name String
    The name of the DNS security profile
    snippet String
    The snippet in which the resource is defined
    tfid String
    botnetDomains GetDnsSecurityProfileBotnetDomains
    Botnet domains
    description string
    The description of the DNS security profile
    device string
    The device in which the resource is defined
    folder string
    The folder in which the resource is defined
    id string
    The UUID of the DNS security profile
    name string
    The name of the DNS security profile
    snippet string
    The snippet in which the resource is defined
    tfid string
    botnet_domains GetDnsSecurityProfileBotnetDomains
    Botnet domains
    description str
    The description of the DNS security profile
    device str
    The device in which the resource is defined
    folder str
    The folder in which the resource is defined
    id str
    The UUID of the DNS security profile
    name str
    The name of the DNS security profile
    snippet str
    The snippet in which the resource is defined
    tfid str
    botnetDomains Property Map
    Botnet domains
    description String
    The description of the DNS security profile
    device String
    The device in which the resource is defined
    folder String
    The folder in which the resource is defined
    id String
    The UUID of the DNS security profile
    name String
    The name of the DNS security profile
    snippet String
    The snippet in which the resource is defined
    tfid String

    Supporting Types

    GetDnsSecurityProfileBotnetDomains

    dnsSecurityCategories List<Property Map>
    DNS categories
    lists List<Property Map>
    Dynamic lists of DNS domains
    sinkhole Property Map
    DNS sinkhole settings
    whitelists List<Property Map>
    DNS security overrides

    GetDnsSecurityProfileBotnetDomainsDnsSecurityCategory

    Action string
    Action
    LogLevel string
    Log level
    Name string
    Name
    PacketCapture string
    Packet capture
    Action string
    Action
    LogLevel string
    Log level
    Name string
    Name
    PacketCapture string
    Packet capture
    action String
    Action
    logLevel String
    Log level
    name String
    Name
    packetCapture String
    Packet capture
    action string
    Action
    logLevel string
    Log level
    name string
    Name
    packetCapture string
    Packet capture
    action str
    Action
    log_level str
    Log level
    name str
    Name
    packet_capture str
    Packet capture
    action String
    Action
    logLevel String
    Log level
    name String
    Name
    packetCapture String
    Packet capture

    GetDnsSecurityProfileBotnetDomainsList

    action Property Map
    Action
    name String
    Name
    packetCapture String
    Packet capture

    GetDnsSecurityProfileBotnetDomainsListAction

    GetDnsSecurityProfileBotnetDomainsSinkhole

    Ipv4Address string
    Ipv4 address
    Ipv6Address string
    Ipv6 address
    Ipv4Address string
    Ipv4 address
    Ipv6Address string
    Ipv6 address
    ipv4Address String
    Ipv4 address
    ipv6Address String
    Ipv6 address
    ipv4Address string
    Ipv4 address
    ipv6Address string
    Ipv6 address
    ipv4_address str
    Ipv4 address
    ipv6_address str
    Ipv6 address
    ipv4Address String
    Ipv4 address
    ipv6Address String
    Ipv6 address

    GetDnsSecurityProfileBotnetDomainsWhitelist

    Description string
    Description
    Name string
    DNS domain or FQDN to be whitelisted
    Description string
    Description
    Name string
    DNS domain or FQDN to be whitelisted
    description String
    Description
    name String
    DNS domain or FQDN to be whitelisted
    description string
    Description
    name string
    DNS domain or FQDN to be whitelisted
    description str
    Description
    name str
    DNS domain or FQDN to be whitelisted
    description String
    Description
    name String
    DNS domain or FQDN to be whitelisted

    Package Details

    Repository
    scm pulumi/pulumi-scm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scm Terraform Provider.
    scm logo
    Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate