1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getDlsPrefixBindings
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleDlsPrefixBindings = cloudflare.getDlsPrefixBindings({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_dls_prefix_bindings = cloudflare.get_dls_prefix_bindings(account_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    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.GetDlsPrefixBindings(ctx, &cloudflare.LookupDlsPrefixBindingsArgs{
    			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
    		}, 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 exampleDlsPrefixBindings = Cloudflare.GetDlsPrefixBindings.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    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.GetDlsPrefixBindingsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 exampleDlsPrefixBindings = CloudflareFunctions.getDlsPrefixBindings(GetDlsPrefixBindingsArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleDlsPrefixBindings:
        fn::invoke:
          function: cloudflare:getDlsPrefixBindings
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getdlsprefixbindings" "exampleDlsPrefixBindings" {
      account_id = "023e105f4ecef8ad9ca31a8372d0c353"
    }
    

    Using getDlsPrefixBindings

    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 getDlsPrefixBindings(args: GetDlsPrefixBindingsArgs, opts?: InvokeOptions): Promise<GetDlsPrefixBindingsResult>
    function getDlsPrefixBindingsOutput(args: GetDlsPrefixBindingsOutputArgs, opts?: InvokeOptions): Output<GetDlsPrefixBindingsResult>
    def get_dls_prefix_bindings(account_id: Optional[str] = None,
                                max_items: Optional[int] = None,
                                opts: Optional[InvokeOptions] = None) -> GetDlsPrefixBindingsResult
    def get_dls_prefix_bindings_output(account_id: pulumi.Input[Optional[str]] = None,
                                max_items: pulumi.Input[Optional[int]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetDlsPrefixBindingsResult]
    func LookupDlsPrefixBindings(ctx *Context, args *LookupDlsPrefixBindingsArgs, opts ...InvokeOption) (*LookupDlsPrefixBindingsResult, error)
    func LookupDlsPrefixBindingsOutput(ctx *Context, args *LookupDlsPrefixBindingsOutputArgs, opts ...InvokeOption) LookupDlsPrefixBindingsResultOutput

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

    public static class GetDlsPrefixBindings 
    {
        public static Task<GetDlsPrefixBindingsResult> InvokeAsync(GetDlsPrefixBindingsArgs args, InvokeOptions? opts = null)
        public static Output<GetDlsPrefixBindingsResult> Invoke(GetDlsPrefixBindingsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDlsPrefixBindingsResult> getDlsPrefixBindings(GetDlsPrefixBindingsArgs args, InvokeOptions options)
    public static Output<GetDlsPrefixBindingsResult> getDlsPrefixBindings(GetDlsPrefixBindingsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getDlsPrefixBindings:getDlsPrefixBindings
      arguments:
        # arguments dictionary
    data "cloudflare_get_dls_prefix_bindings" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Identifier of a Cloudflare account.
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Identifier of a Cloudflare account.
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    Identifier of a Cloudflare account.
    max_items number
    Max items to fetch, default: 1000
    accountId String
    Identifier of a Cloudflare account.
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Identifier of a Cloudflare account.
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Identifier of a Cloudflare account.
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Identifier of a Cloudflare account.
    maxItems Number
    Max items to fetch, default: 1000

    getDlsPrefixBindings Result

    The following output properties are available:

    AccountId string
    Identifier of a Cloudflare account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetDlsPrefixBindingsResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Identifier of a Cloudflare account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetDlsPrefixBindingsResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    Identifier of a Cloudflare account.
    id string
    The provider-assigned unique ID for this managed resource.
    results list(object)
    The items returned by the data source
    max_items number
    Max items to fetch, default: 1000
    accountId String
    Identifier of a Cloudflare account.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetDlsPrefixBindingsResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Identifier of a Cloudflare account.
    id string
    The provider-assigned unique ID for this managed resource.
    results GetDlsPrefixBindingsResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Identifier of a Cloudflare account.
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetDlsPrefixBindingsResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Identifier of a Cloudflare account.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetDlsPrefixBindingsResult

    Cidr string
    The CIDR that is bound.
    Id string
    The ID of the binding.
    PrefixId string
    The ID of the parent prefix.
    RegionKey string
    The region key used for the binding.
    Cidr string
    The CIDR that is bound.
    Id string
    The ID of the binding.
    PrefixId string
    The ID of the parent prefix.
    RegionKey string
    The region key used for the binding.
    cidr string
    The CIDR that is bound.
    id string
    The ID of the binding.
    prefix_id string
    The ID of the parent prefix.
    region_key string
    The region key used for the binding.
    cidr String
    The CIDR that is bound.
    id String
    The ID of the binding.
    prefixId String
    The ID of the parent prefix.
    regionKey String
    The region key used for the binding.
    cidr string
    The CIDR that is bound.
    id string
    The ID of the binding.
    prefixId string
    The ID of the parent prefix.
    regionKey string
    The region key used for the binding.
    cidr str
    The CIDR that is bound.
    id str
    The ID of the binding.
    prefix_id str
    The ID of the parent prefix.
    region_key str
    The region key used for the binding.
    cidr String
    The CIDR that is bound.
    id String
    The ID of the binding.
    prefixId String
    The ID of the parent prefix.
    regionKey String
    The region key used for the binding.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.18.0
    published on Thursday, Jul 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial