Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
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 dictionarydata "cloudflare_get_dls_prefix_bindings" "name" {
# arguments
}The following arguments are supported:
- account_
id string - Identifier of a Cloudflare account.
- max_
items number - Max items to fetch, default: 1000
- account_
id str - Identifier of a Cloudflare account.
- max_
items int - Max items to fetch, default: 1000
getDlsPrefixBindings Result
The following output properties are available:
- Account
Id string - Identifier of a Cloudflare account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Dls Prefix Bindings Result> - The items returned by the data source
- Max
Items 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
[]Get
Dls Prefix Bindings Result - The items returned by the data source
- Max
Items 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
- account
Id String - Identifier of a Cloudflare account.
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Dls Prefix Bindings Result> - The items returned by the data source
- max
Items Integer - 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
Get
Dls Prefix Bindings Result[] - The items returned by the data source
- max
Items 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[Get
Dls Prefix Bindings Result] - The items returned by the data source
- max_
items 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<Property Map>
- The items returned by the data source
- max
Items Number - Max items to fetch, default: 1000
Supporting Types
GetDlsPrefixBindingsResult
- 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 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.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi