Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
Accepted Permissions
D1 ReadD1 Write
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleD1Databases = cloudflare.getD1Databases({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
name: "name",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_d1_databases = cloudflare.get_d1_databases(account_id="023e105f4ecef8ad9ca31a8372d0c353",
name="name")
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.GetD1Databases(ctx, &cloudflare.LookupD1DatabasesArgs{
AccountId: pulumi.StringRef("023e105f4ecef8ad9ca31a8372d0c353"),
Name: pulumi.StringRef("name"),
}, 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 exampleD1Databases = Cloudflare.Index.GetD1Databases.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
Name = "name",
});
});
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.GetD1DatabasesArgs;
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 exampleD1Databases = CloudflareFunctions.getD1Databases(GetD1DatabasesArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.name("name")
.build());
}
}
variables:
exampleD1Databases:
fn::invoke:
function: cloudflare:getD1Databases
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
name: name
Using getD1Databases
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 getD1Databases(args: GetD1DatabasesArgs, opts?: InvokeOptions): Promise<GetD1DatabasesResult>
function getD1DatabasesOutput(args: GetD1DatabasesOutputArgs, opts?: InvokeOptions): Output<GetD1DatabasesResult>def get_d1_databases(account_id: Optional[str] = None,
max_items: Optional[int] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetD1DatabasesResult
def get_d1_databases_output(account_id: pulumi.Input[Optional[str]] = None,
max_items: pulumi.Input[Optional[int]] = None,
name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetD1DatabasesResult]func LookupD1Databases(ctx *Context, args *LookupD1DatabasesArgs, opts ...InvokeOption) (*LookupD1DatabasesResult, error)
func LookupD1DatabasesOutput(ctx *Context, args *LookupD1DatabasesOutputArgs, opts ...InvokeOption) LookupD1DatabasesResultOutput> Note: This function is named LookupD1Databases in the Go SDK.
public static class GetD1Databases
{
public static Task<GetD1DatabasesResult> InvokeAsync(GetD1DatabasesArgs args, InvokeOptions? opts = null)
public static Output<GetD1DatabasesResult> Invoke(GetD1DatabasesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetD1DatabasesResult> getD1Databases(GetD1DatabasesArgs args, InvokeOptions options)
public static Output<GetD1DatabasesResult> getD1Databases(GetD1DatabasesArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getD1Databases:getD1Databases
arguments:
# arguments dictionaryThe following arguments are supported:
- account_
id str - Account identifier tag.
- max_
items int - Max items to fetch, default: 1000
- name str
- a database name to search for.
getD1Databases Result
The following output properties are available:
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
D1Databases Result] - The items returned by the data source
- account_
id str - Account identifier tag.
- max_
items int - Max items to fetch, default: 1000
- name str
- a database name to search for.
Supporting Types
GetD1DatabasesResult
- Created
At string - Specifies the timestamp the resource was created as an ISO8601 string.
- Id string
- D1 database identifier (UUID).
- Jurisdiction string
- Specify the location to restrict the D1 database to run and store data. If this option is present, the location hint is ignored. Available values: "eu", "fedramp".
- Name string
- D1 database name.
- Uuid string
- D1 database identifier (UUID).
- Version string
- Created
At string - Specifies the timestamp the resource was created as an ISO8601 string.
- Id string
- D1 database identifier (UUID).
- Jurisdiction string
- Specify the location to restrict the D1 database to run and store data. If this option is present, the location hint is ignored. Available values: "eu", "fedramp".
- Name string
- D1 database name.
- Uuid string
- D1 database identifier (UUID).
- Version string
- created
At String - Specifies the timestamp the resource was created as an ISO8601 string.
- id String
- D1 database identifier (UUID).
- jurisdiction String
- Specify the location to restrict the D1 database to run and store data. If this option is present, the location hint is ignored. Available values: "eu", "fedramp".
- name String
- D1 database name.
- uuid String
- D1 database identifier (UUID).
- version String
- created
At string - Specifies the timestamp the resource was created as an ISO8601 string.
- id string
- D1 database identifier (UUID).
- jurisdiction string
- Specify the location to restrict the D1 database to run and store data. If this option is present, the location hint is ignored. Available values: "eu", "fedramp".
- name string
- D1 database name.
- uuid string
- D1 database identifier (UUID).
- version string
- created_
at str - Specifies the timestamp the resource was created as an ISO8601 string.
- id str
- D1 database identifier (UUID).
- jurisdiction str
- Specify the location to restrict the D1 database to run and store data. If this option is present, the location hint is ignored. Available values: "eu", "fedramp".
- name str
- D1 database name.
- uuid str
- D1 database identifier (UUID).
- version str
- created
At String - Specifies the timestamp the resource was created as an ISO8601 string.
- id String
- D1 database identifier (UUID).
- jurisdiction String
- Specify the location to restrict the D1 database to run and store data. If this option is present, the location hint is ignored. Available values: "eu", "fedramp".
- name String
- D1 database name.
- uuid String
- D1 database identifier (UUID).
- version String
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.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
