1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getDnsSecurityProfileList
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

    Retrieves a listing of config items.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    //
    // Data source to retrieve a list of SCM DNS Security Profile objects.
    //
    // Fetch a list of all SCM DNS Security Profile in the "Shared" folder.
    const allShared = scm.getDnsSecurityProfileList({
        folder: "All",
    });
    export const scmDnsSecurityProfileListAllShared = allShared.then(allShared => allShared.datas);
    
    import pulumi
    import pulumi_scm as scm
    
    #
    # Data source to retrieve a list of SCM DNS Security Profile objects.
    #
    # Fetch a list of all SCM DNS Security Profile in the "Shared" folder.
    all_shared = scm.get_dns_security_profile_list(folder="All")
    pulumi.export("scmDnsSecurityProfileListAllShared", all_shared.datas)
    
    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 list of SCM DNS Security Profile objects.
    		//
    		// Fetch a list of all SCM DNS Security Profile in the "Shared" folder.
    		allShared, err := scm.GetDnsSecurityProfileList(ctx, &scm.GetDnsSecurityProfileListArgs{
    			Folder: pulumi.StringRef("All"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("scmDnsSecurityProfileListAllShared", allShared.Datas)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        //
        // Data source to retrieve a list of SCM DNS Security Profile objects.
        //
        // Fetch a list of all SCM DNS Security Profile in the "Shared" folder.
        var allShared = Scm.GetDnsSecurityProfileList.Invoke(new()
        {
            Folder = "All",
        });
    
        return new Dictionary<string, object?>
        {
            ["scmDnsSecurityProfileListAllShared"] = allShared.Apply(getDnsSecurityProfileListResult => getDnsSecurityProfileListResult.Datas),
        };
    });
    
    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.GetDnsSecurityProfileListArgs;
    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 list of SCM DNS Security Profile objects.
            //
            // Fetch a list of all SCM DNS Security Profile in the "Shared" folder.
            final var allShared = ScmFunctions.getDnsSecurityProfileList(GetDnsSecurityProfileListArgs.builder()
                .folder("All")
                .build());
    
            ctx.export("scmDnsSecurityProfileListAllShared", allShared.datas());
        }
    }
    
    variables:
      #
      # Data source to retrieve a list of SCM DNS Security Profile objects.
      #
    
      # Fetch a list of all SCM DNS Security Profile in the "Shared" folder.
      allShared:
        fn::invoke:
          function: scm:getDnsSecurityProfileList
          arguments:
            folder: All
    outputs:
      # Output the list of all SCM DNS Security Profile objects from the "Shared" folder.
      scmDnsSecurityProfileListAllShared: ${allShared.datas}
    

    Using getDnsSecurityProfileList

    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 getDnsSecurityProfileList(args: GetDnsSecurityProfileListArgs, opts?: InvokeOptions): Promise<GetDnsSecurityProfileListResult>
    function getDnsSecurityProfileListOutput(args: GetDnsSecurityProfileListOutputArgs, opts?: InvokeOptions): Output<GetDnsSecurityProfileListResult>
    def get_dns_security_profile_list(device: Optional[str] = None,
                                      folder: Optional[str] = None,
                                      limit: Optional[int] = None,
                                      name: Optional[str] = None,
                                      offset: Optional[int] = None,
                                      snippet: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetDnsSecurityProfileListResult
    def get_dns_security_profile_list_output(device: Optional[pulumi.Input[str]] = None,
                                      folder: Optional[pulumi.Input[str]] = None,
                                      limit: Optional[pulumi.Input[int]] = None,
                                      name: Optional[pulumi.Input[str]] = None,
                                      offset: Optional[pulumi.Input[int]] = None,
                                      snippet: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetDnsSecurityProfileListResult]
    func GetDnsSecurityProfileList(ctx *Context, args *GetDnsSecurityProfileListArgs, opts ...InvokeOption) (*GetDnsSecurityProfileListResult, error)
    func GetDnsSecurityProfileListOutput(ctx *Context, args *GetDnsSecurityProfileListOutputArgs, opts ...InvokeOption) GetDnsSecurityProfileListResultOutput

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

    public static class GetDnsSecurityProfileList 
    {
        public static Task<GetDnsSecurityProfileListResult> InvokeAsync(GetDnsSecurityProfileListArgs args, InvokeOptions? opts = null)
        public static Output<GetDnsSecurityProfileListResult> Invoke(GetDnsSecurityProfileListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDnsSecurityProfileListResult> getDnsSecurityProfileList(GetDnsSecurityProfileListArgs args, InvokeOptions options)
    public static Output<GetDnsSecurityProfileListResult> getDnsSecurityProfileList(GetDnsSecurityProfileListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getDnsSecurityProfileList:getDnsSecurityProfileList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Device string
    The device of the item.
    Folder string
    The folder of the item. Default: Shared.
    Limit int
    The max number of items to return. Default: 200.
    Name string
    The name of the item.
    Offset int
    The offset of the first item to return.
    Snippet string
    The snippet of the item.
    Device string
    The device of the item.
    Folder string
    The folder of the item. Default: Shared.
    Limit int
    The max number of items to return. Default: 200.
    Name string
    The name of the item.
    Offset int
    The offset of the first item to return.
    Snippet string
    The snippet of the item.
    device String
    The device of the item.
    folder String
    The folder of the item. Default: Shared.
    limit Integer
    The max number of items to return. Default: 200.
    name String
    The name of the item.
    offset Integer
    The offset of the first item to return.
    snippet String
    The snippet of the item.
    device string
    The device of the item.
    folder string
    The folder of the item. Default: Shared.
    limit number
    The max number of items to return. Default: 200.
    name string
    The name of the item.
    offset number
    The offset of the first item to return.
    snippet string
    The snippet of the item.
    device str
    The device of the item.
    folder str
    The folder of the item. Default: Shared.
    limit int
    The max number of items to return. Default: 200.
    name str
    The name of the item.
    offset int
    The offset of the first item to return.
    snippet str
    The snippet of the item.
    device String
    The device of the item.
    folder String
    The folder of the item. Default: Shared.
    limit Number
    The max number of items to return. Default: 200.
    name String
    The name of the item.
    offset Number
    The offset of the first item to return.
    snippet String
    The snippet of the item.

    getDnsSecurityProfileList Result

    The following output properties are available:

    Datas List<GetDnsSecurityProfileListData>
    The data.
    Id string
    The provider-assigned unique ID for this managed resource.
    Tfid string
    Total int
    The total number of items.
    Device string
    The device of the item.
    Folder string
    The folder of the item. Default: Shared.
    Limit int
    The max number of items to return. Default: 200.
    Name string
    The name of the item.
    Offset int
    The offset of the first item to return.
    Snippet string
    The snippet of the item.
    Datas []GetDnsSecurityProfileListData
    The data.
    Id string
    The provider-assigned unique ID for this managed resource.
    Tfid string
    Total int
    The total number of items.
    Device string
    The device of the item.
    Folder string
    The folder of the item. Default: Shared.
    Limit int
    The max number of items to return. Default: 200.
    Name string
    The name of the item.
    Offset int
    The offset of the first item to return.
    Snippet string
    The snippet of the item.
    datas List<GetDnsSecurityProfileListData>
    The data.
    id String
    The provider-assigned unique ID for this managed resource.
    tfid String
    total Integer
    The total number of items.
    device String
    The device of the item.
    folder String
    The folder of the item. Default: Shared.
    limit Integer
    The max number of items to return. Default: 200.
    name String
    The name of the item.
    offset Integer
    The offset of the first item to return.
    snippet String
    The snippet of the item.
    datas GetDnsSecurityProfileListData[]
    The data.
    id string
    The provider-assigned unique ID for this managed resource.
    tfid string
    total number
    The total number of items.
    device string
    The device of the item.
    folder string
    The folder of the item. Default: Shared.
    limit number
    The max number of items to return. Default: 200.
    name string
    The name of the item.
    offset number
    The offset of the first item to return.
    snippet string
    The snippet of the item.
    datas Sequence[GetDnsSecurityProfileListData]
    The data.
    id str
    The provider-assigned unique ID for this managed resource.
    tfid str
    total int
    The total number of items.
    device str
    The device of the item.
    folder str
    The folder of the item. Default: Shared.
    limit int
    The max number of items to return. Default: 200.
    name str
    The name of the item.
    offset int
    The offset of the first item to return.
    snippet str
    The snippet of the item.
    datas List<Property Map>
    The data.
    id String
    The provider-assigned unique ID for this managed resource.
    tfid String
    total Number
    The total number of items.
    device String
    The device of the item.
    folder String
    The folder of the item. Default: Shared.
    limit Number
    The max number of items to return. Default: 200.
    name String
    The name of the item.
    offset Number
    The offset of the first item to return.
    snippet String
    The snippet of the item.

    Supporting Types

    GetDnsSecurityProfileListData

    BotnetDomains GetDnsSecurityProfileListDataBotnetDomains
    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 GetDnsSecurityProfileListDataBotnetDomains
    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 GetDnsSecurityProfileListDataBotnetDomains
    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 GetDnsSecurityProfileListDataBotnetDomains
    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 GetDnsSecurityProfileListDataBotnetDomains
    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

    GetDnsSecurityProfileListDataBotnetDomains

    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

    GetDnsSecurityProfileListDataBotnetDomainsDnsSecurityCategory

    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

    GetDnsSecurityProfileListDataBotnetDomainsList

    action Property Map
    Action
    name String
    Name
    packetCapture String
    Packet capture

    GetDnsSecurityProfileListDataBotnetDomainsListAction

    GetDnsSecurityProfileListDataBotnetDomainsSinkhole

    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

    GetDnsSecurityProfileListDataBotnetDomainsWhitelist

    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