1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getAccountDnsSettingsInternalViews
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getAccountDnsSettingsInternalViews

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleAccountDnsSettingsInternalViews = cloudflare.getAccountDnsSettingsInternalViews({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        name: {
            contains: "view",
            endswith: "ew",
            exact: "my view",
            startswith: "my",
        },
        order: "name",
        zoneId: "ae29bea30e2e427ba9cd8d78b628177b",
        zoneName: "www.example.com",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_account_dns_settings_internal_views = cloudflare.get_account_dns_settings_internal_views(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        name={
            "contains": "view",
            "endswith": "ew",
            "exact": "my view",
            "startswith": "my",
        },
        order="name",
        zone_id="ae29bea30e2e427ba9cd8d78b628177b",
        zone_name="www.example.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.LookupAccountDnsSettingsInternalViews(ctx, &cloudflare.LookupAccountDnsSettingsInternalViewsArgs{
    			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
    			Name: cloudflare.GetAccountDnsSettingsInternalViewsName{
    				Contains:   pulumi.StringRef("view"),
    				Endswith:   pulumi.StringRef("ew"),
    				Exact:      pulumi.StringRef("my view"),
    				Startswith: pulumi.StringRef("my"),
    			},
    			Order:    pulumi.StringRef("name"),
    			ZoneId:   pulumi.StringRef("ae29bea30e2e427ba9cd8d78b628177b"),
    			ZoneName: pulumi.StringRef("www.example.com"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleAccountDnsSettingsInternalViews = Cloudflare.GetAccountDnsSettingsInternalViews.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            Name = new Cloudflare.Inputs.GetAccountDnsSettingsInternalViewsNameInputArgs
            {
                Contains = "view",
                Endswith = "ew",
                Exact = "my view",
                Startswith = "my",
            },
            Order = "name",
            ZoneId = "ae29bea30e2e427ba9cd8d78b628177b",
            ZoneName = "www.example.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetAccountDnsSettingsInternalViewsArgs;
    import com.pulumi.cloudflare.inputs.GetAccountDnsSettingsInternalViewsNameArgs;
    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 exampleAccountDnsSettingsInternalViews = CloudflareFunctions.getAccountDnsSettingsInternalViews(GetAccountDnsSettingsInternalViewsArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .name(GetAccountDnsSettingsInternalViewsNameArgs.builder()
                    .contains("view")
                    .endswith("ew")
                    .exact("my view")
                    .startswith("my")
                    .build())
                .order("name")
                .zoneId("ae29bea30e2e427ba9cd8d78b628177b")
                .zoneName("www.example.com")
                .build());
    
        }
    }
    
    variables:
      exampleAccountDnsSettingsInternalViews:
        fn::invoke:
          function: cloudflare:getAccountDnsSettingsInternalViews
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            name:
              contains: view
              endswith: ew
              exact: my view
              startswith: my
            order: name
            zoneId: ae29bea30e2e427ba9cd8d78b628177b
            zoneName: www.example.com
    

    Using getAccountDnsSettingsInternalViews

    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 getAccountDnsSettingsInternalViews(args: GetAccountDnsSettingsInternalViewsArgs, opts?: InvokeOptions): Promise<GetAccountDnsSettingsInternalViewsResult>
    function getAccountDnsSettingsInternalViewsOutput(args: GetAccountDnsSettingsInternalViewsOutputArgs, opts?: InvokeOptions): Output<GetAccountDnsSettingsInternalViewsResult>
    def get_account_dns_settings_internal_views(account_id: Optional[str] = None,
                                                direction: Optional[str] = None,
                                                match: Optional[str] = None,
                                                max_items: Optional[int] = None,
                                                name: Optional[GetAccountDnsSettingsInternalViewsName] = None,
                                                order: Optional[str] = None,
                                                zone_id: Optional[str] = None,
                                                zone_name: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetAccountDnsSettingsInternalViewsResult
    def get_account_dns_settings_internal_views_output(account_id: Optional[pulumi.Input[str]] = None,
                                                direction: Optional[pulumi.Input[str]] = None,
                                                match: Optional[pulumi.Input[str]] = None,
                                                max_items: Optional[pulumi.Input[int]] = None,
                                                name: Optional[pulumi.Input[GetAccountDnsSettingsInternalViewsNameArgs]] = None,
                                                order: Optional[pulumi.Input[str]] = None,
                                                zone_id: Optional[pulumi.Input[str]] = None,
                                                zone_name: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetAccountDnsSettingsInternalViewsResult]
    func LookupAccountDnsSettingsInternalViews(ctx *Context, args *LookupAccountDnsSettingsInternalViewsArgs, opts ...InvokeOption) (*LookupAccountDnsSettingsInternalViewsResult, error)
    func LookupAccountDnsSettingsInternalViewsOutput(ctx *Context, args *LookupAccountDnsSettingsInternalViewsOutputArgs, opts ...InvokeOption) LookupAccountDnsSettingsInternalViewsResultOutput

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

    public static class GetAccountDnsSettingsInternalViews 
    {
        public static Task<GetAccountDnsSettingsInternalViewsResult> InvokeAsync(GetAccountDnsSettingsInternalViewsArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountDnsSettingsInternalViewsResult> Invoke(GetAccountDnsSettingsInternalViewsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccountDnsSettingsInternalViewsResult> getAccountDnsSettingsInternalViews(GetAccountDnsSettingsInternalViewsArgs args, InvokeOptions options)
    public static Output<GetAccountDnsSettingsInternalViewsResult> getAccountDnsSettingsInternalViews(GetAccountDnsSettingsInternalViewsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getAccountDnsSettingsInternalViews:getAccountDnsSettingsInternalViews
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Identifier
    Direction string
    Direction to order DNS views in. Available values: "asc", "desc".
    Match string
    Whether to match all search requirements or at least one (any). If set to all, acts like a logical AND between filters. If set to any, acts like a logical OR instead. Available values: "any", "all".
    MaxItems int
    Max items to fetch, default: 1000
    Name GetAccountDnsSettingsInternalViewsName
    Order string
    Field to order DNS views by. Available values: "name", "createdon", "modifiedon".
    ZoneId string
    A zone ID that exists in the zones list for the view.
    ZoneName string
    A zone name that exists in the zones list for the view.
    AccountId string
    Identifier
    Direction string
    Direction to order DNS views in. Available values: "asc", "desc".
    Match string
    Whether to match all search requirements or at least one (any). If set to all, acts like a logical AND between filters. If set to any, acts like a logical OR instead. Available values: "any", "all".
    MaxItems int
    Max items to fetch, default: 1000
    Name GetAccountDnsSettingsInternalViewsName
    Order string
    Field to order DNS views by. Available values: "name", "createdon", "modifiedon".
    ZoneId string
    A zone ID that exists in the zones list for the view.
    ZoneName string
    A zone name that exists in the zones list for the view.
    accountId String
    Identifier
    direction String
    Direction to order DNS views in. Available values: "asc", "desc".
    match String
    Whether to match all search requirements or at least one (any). If set to all, acts like a logical AND between filters. If set to any, acts like a logical OR instead. Available values: "any", "all".
    maxItems Integer
    Max items to fetch, default: 1000
    name GetAccountDnsSettingsInternalViewsName
    order String
    Field to order DNS views by. Available values: "name", "createdon", "modifiedon".
    zoneId String
    A zone ID that exists in the zones list for the view.
    zoneName String
    A zone name that exists in the zones list for the view.
    accountId string
    Identifier
    direction string
    Direction to order DNS views in. Available values: "asc", "desc".
    match string
    Whether to match all search requirements or at least one (any). If set to all, acts like a logical AND between filters. If set to any, acts like a logical OR instead. Available values: "any", "all".
    maxItems number
    Max items to fetch, default: 1000
    name GetAccountDnsSettingsInternalViewsName
    order string
    Field to order DNS views by. Available values: "name", "createdon", "modifiedon".
    zoneId string
    A zone ID that exists in the zones list for the view.
    zoneName string
    A zone name that exists in the zones list for the view.
    account_id str
    Identifier
    direction str
    Direction to order DNS views in. Available values: "asc", "desc".
    match str
    Whether to match all search requirements or at least one (any). If set to all, acts like a logical AND between filters. If set to any, acts like a logical OR instead. Available values: "any", "all".
    max_items int
    Max items to fetch, default: 1000
    name GetAccountDnsSettingsInternalViewsName
    order str
    Field to order DNS views by. Available values: "name", "createdon", "modifiedon".
    zone_id str
    A zone ID that exists in the zones list for the view.
    zone_name str
    A zone name that exists in the zones list for the view.
    accountId String
    Identifier
    direction String
    Direction to order DNS views in. Available values: "asc", "desc".
    match String
    Whether to match all search requirements or at least one (any). If set to all, acts like a logical AND between filters. If set to any, acts like a logical OR instead. Available values: "any", "all".
    maxItems Number
    Max items to fetch, default: 1000
    name Property Map
    order String
    Field to order DNS views by. Available values: "name", "createdon", "modifiedon".
    zoneId String
    A zone ID that exists in the zones list for the view.
    zoneName String
    A zone name that exists in the zones list for the view.

    getAccountDnsSettingsInternalViews Result

    The following output properties are available:

    AccountId string
    Identifier
    Direction string
    Direction to order DNS views in. Available values: "asc", "desc".
    Id string
    The provider-assigned unique ID for this managed resource.
    Match string
    Whether to match all search requirements or at least one (any). If set to all, acts like a logical AND between filters. If set to any, acts like a logical OR instead. Available values: "any", "all".
    Results List<GetAccountDnsSettingsInternalViewsResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    Name GetAccountDnsSettingsInternalViewsName
    Order string
    Field to order DNS views by. Available values: "name", "createdon", "modifiedon".
    ZoneId string
    A zone ID that exists in the zones list for the view.
    ZoneName string
    A zone name that exists in the zones list for the view.
    AccountId string
    Identifier
    Direction string
    Direction to order DNS views in. Available values: "asc", "desc".
    Id string
    The provider-assigned unique ID for this managed resource.
    Match string
    Whether to match all search requirements or at least one (any). If set to all, acts like a logical AND between filters. If set to any, acts like a logical OR instead. Available values: "any", "all".
    Results []GetAccountDnsSettingsInternalViewsResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    Name GetAccountDnsSettingsInternalViewsName
    Order string
    Field to order DNS views by. Available values: "name", "createdon", "modifiedon".
    ZoneId string
    A zone ID that exists in the zones list for the view.
    ZoneName string
    A zone name that exists in the zones list for the view.
    accountId String
    Identifier
    direction String
    Direction to order DNS views in. Available values: "asc", "desc".
    id String
    The provider-assigned unique ID for this managed resource.
    match String
    Whether to match all search requirements or at least one (any). If set to all, acts like a logical AND between filters. If set to any, acts like a logical OR instead. Available values: "any", "all".
    results List<GetAccountDnsSettingsInternalViewsResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    name GetAccountDnsSettingsInternalViewsName
    order String
    Field to order DNS views by. Available values: "name", "createdon", "modifiedon".
    zoneId String
    A zone ID that exists in the zones list for the view.
    zoneName String
    A zone name that exists in the zones list for the view.
    accountId string
    Identifier
    direction string
    Direction to order DNS views in. Available values: "asc", "desc".
    id string
    The provider-assigned unique ID for this managed resource.
    match string
    Whether to match all search requirements or at least one (any). If set to all, acts like a logical AND between filters. If set to any, acts like a logical OR instead. Available values: "any", "all".
    results GetAccountDnsSettingsInternalViewsResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    name GetAccountDnsSettingsInternalViewsName
    order string
    Field to order DNS views by. Available values: "name", "createdon", "modifiedon".
    zoneId string
    A zone ID that exists in the zones list for the view.
    zoneName string
    A zone name that exists in the zones list for the view.
    account_id str
    Identifier
    direction str
    Direction to order DNS views in. Available values: "asc", "desc".
    id str
    The provider-assigned unique ID for this managed resource.
    match str
    Whether to match all search requirements or at least one (any). If set to all, acts like a logical AND between filters. If set to any, acts like a logical OR instead. Available values: "any", "all".
    results Sequence[GetAccountDnsSettingsInternalViewsResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    name GetAccountDnsSettingsInternalViewsName
    order str
    Field to order DNS views by. Available values: "name", "createdon", "modifiedon".
    zone_id str
    A zone ID that exists in the zones list for the view.
    zone_name str
    A zone name that exists in the zones list for the view.
    accountId String
    Identifier
    direction String
    Direction to order DNS views in. Available values: "asc", "desc".
    id String
    The provider-assigned unique ID for this managed resource.
    match String
    Whether to match all search requirements or at least one (any). If set to all, acts like a logical AND between filters. If set to any, acts like a logical OR instead. Available values: "any", "all".
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000
    name Property Map
    order String
    Field to order DNS views by. Available values: "name", "createdon", "modifiedon".
    zoneId String
    A zone ID that exists in the zones list for the view.
    zoneName String
    A zone name that exists in the zones list for the view.

    Supporting Types

    GetAccountDnsSettingsInternalViewsName

    Contains string
    Substring of the DNS view name.
    Endswith string
    Suffix of the DNS view name.
    Exact string
    Exact value of the DNS view name.
    Startswith string
    Prefix of the DNS view name.
    Contains string
    Substring of the DNS view name.
    Endswith string
    Suffix of the DNS view name.
    Exact string
    Exact value of the DNS view name.
    Startswith string
    Prefix of the DNS view name.
    contains String
    Substring of the DNS view name.
    endswith String
    Suffix of the DNS view name.
    exact String
    Exact value of the DNS view name.
    startswith String
    Prefix of the DNS view name.
    contains string
    Substring of the DNS view name.
    endswith string
    Suffix of the DNS view name.
    exact string
    Exact value of the DNS view name.
    startswith string
    Prefix of the DNS view name.
    contains str
    Substring of the DNS view name.
    endswith str
    Suffix of the DNS view name.
    exact str
    Exact value of the DNS view name.
    startswith str
    Prefix of the DNS view name.
    contains String
    Substring of the DNS view name.
    endswith String
    Suffix of the DNS view name.
    exact String
    Exact value of the DNS view name.
    startswith String
    Prefix of the DNS view name.

    GetAccountDnsSettingsInternalViewsResult

    CreatedTime string
    When the view was created.
    Id string
    Identifier
    ModifiedTime string
    When the view was last modified.
    Name string
    The name of the view.
    Zones List<string>
    The list of zones linked to this view.
    CreatedTime string
    When the view was created.
    Id string
    Identifier
    ModifiedTime string
    When the view was last modified.
    Name string
    The name of the view.
    Zones []string
    The list of zones linked to this view.
    createdTime String
    When the view was created.
    id String
    Identifier
    modifiedTime String
    When the view was last modified.
    name String
    The name of the view.
    zones List<String>
    The list of zones linked to this view.
    createdTime string
    When the view was created.
    id string
    Identifier
    modifiedTime string
    When the view was last modified.
    name string
    The name of the view.
    zones string[]
    The list of zones linked to this view.
    created_time str
    When the view was created.
    id str
    Identifier
    modified_time str
    When the view was last modified.
    name str
    The name of the view.
    zones Sequence[str]
    The list of zones linked to this view.
    createdTime String
    When the view was created.
    id String
    Identifier
    modifiedTime String
    When the view was last modified.
    name String
    The name of the view.
    zones List<String>
    The list of zones linked to this view.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi