Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWorkersKvNamespaces = cloudflare.getWorkersKvNamespaces({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
direction: "asc",
order: "id",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_workers_kv_namespaces = cloudflare.get_workers_kv_namespaces(account_id="023e105f4ecef8ad9ca31a8372d0c353",
direction="asc",
order="id")
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.LookupWorkersKvNamespaces(ctx, &cloudflare.LookupWorkersKvNamespacesArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
Direction: pulumi.StringRef("asc"),
Order: pulumi.StringRef("id"),
}, 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 exampleWorkersKvNamespaces = Cloudflare.GetWorkersKvNamespaces.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
Direction = "asc",
Order = "id",
});
});
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.GetWorkersKvNamespacesArgs;
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 exampleWorkersKvNamespaces = CloudflareFunctions.getWorkersKvNamespaces(GetWorkersKvNamespacesArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.direction("asc")
.order("id")
.build());
}
}
variables:
exampleWorkersKvNamespaces:
fn::invoke:
function: cloudflare:getWorkersKvNamespaces
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
direction: asc
order: id
Using getWorkersKvNamespaces
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 getWorkersKvNamespaces(args: GetWorkersKvNamespacesArgs, opts?: InvokeOptions): Promise<GetWorkersKvNamespacesResult>
function getWorkersKvNamespacesOutput(args: GetWorkersKvNamespacesOutputArgs, opts?: InvokeOptions): Output<GetWorkersKvNamespacesResult>def get_workers_kv_namespaces(account_id: Optional[str] = None,
direction: Optional[str] = None,
max_items: Optional[int] = None,
order: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkersKvNamespacesResult
def get_workers_kv_namespaces_output(account_id: Optional[pulumi.Input[str]] = None,
direction: Optional[pulumi.Input[str]] = None,
max_items: Optional[pulumi.Input[int]] = None,
order: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWorkersKvNamespacesResult]func LookupWorkersKvNamespaces(ctx *Context, args *LookupWorkersKvNamespacesArgs, opts ...InvokeOption) (*LookupWorkersKvNamespacesResult, error)
func LookupWorkersKvNamespacesOutput(ctx *Context, args *LookupWorkersKvNamespacesOutputArgs, opts ...InvokeOption) LookupWorkersKvNamespacesResultOutput> Note: This function is named LookupWorkersKvNamespaces in the Go SDK.
public static class GetWorkersKvNamespaces
{
public static Task<GetWorkersKvNamespacesResult> InvokeAsync(GetWorkersKvNamespacesArgs args, InvokeOptions? opts = null)
public static Output<GetWorkersKvNamespacesResult> Invoke(GetWorkersKvNamespacesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWorkersKvNamespacesResult> getWorkersKvNamespaces(GetWorkersKvNamespacesArgs args, InvokeOptions options)
public static Output<GetWorkersKvNamespacesResult> getWorkersKvNamespaces(GetWorkersKvNamespacesArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getWorkersKvNamespaces:getWorkersKvNamespaces
arguments:
# arguments dictionaryThe following arguments are supported:
- account_
id str - Identifier.
- direction str
- Direction to order namespaces. Available values: "asc", "desc".
- max_
items int - Max items to fetch, default: 1000
- order str
- Field to order results by. Available values: "id", "title".
getWorkersKvNamespaces Result
The following output properties are available:
- Account
Id string - Identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Workers Kv Namespaces Result> - The items returned by the data source
- Direction string
- Direction to order namespaces. Available values: "asc", "desc".
- Max
Items int - Max items to fetch, default: 1000
- Order string
- Field to order results by. Available values: "id", "title".
- Account
Id string - Identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Workers Kv Namespaces Result - The items returned by the data source
- Direction string
- Direction to order namespaces. Available values: "asc", "desc".
- Max
Items int - Max items to fetch, default: 1000
- Order string
- Field to order results by. Available values: "id", "title".
- account
Id String - Identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Workers Kv Namespaces Result> - The items returned by the data source
- direction String
- Direction to order namespaces. Available values: "asc", "desc".
- max
Items Integer - Max items to fetch, default: 1000
- order String
- Field to order results by. Available values: "id", "title".
- account
Id string - Identifier.
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Workers Kv Namespaces Result[] - The items returned by the data source
- direction string
- Direction to order namespaces. Available values: "asc", "desc".
- max
Items number - Max items to fetch, default: 1000
- order string
- Field to order results by. Available values: "id", "title".
- account_
id str - Identifier.
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Workers Kv Namespaces Result] - The items returned by the data source
- direction str
- Direction to order namespaces. Available values: "asc", "desc".
- max_
items int - Max items to fetch, default: 1000
- order str
- Field to order results by. Available values: "id", "title".
- account
Id String - Identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- results List<Property Map>
- The items returned by the data source
- direction String
- Direction to order namespaces. Available values: "asc", "desc".
- max
Items Number - Max items to fetch, default: 1000
- order String
- Field to order results by. Available values: "id", "title".
Supporting Types
GetWorkersKvNamespacesResult
- Id string
- Namespace identifier tag.
- Supports
Url boolEncoding - True if keys written on the URL will be URL-decoded before storing. For example, if set to "true", a key written on the URL as "%3F" will be stored as "?".
- Title string
- A human-readable string name for a Namespace.
- Id string
- Namespace identifier tag.
- Supports
Url boolEncoding - True if keys written on the URL will be URL-decoded before storing. For example, if set to "true", a key written on the URL as "%3F" will be stored as "?".
- Title string
- A human-readable string name for a Namespace.
- id String
- Namespace identifier tag.
- supports
Url BooleanEncoding - True if keys written on the URL will be URL-decoded before storing. For example, if set to "true", a key written on the URL as "%3F" will be stored as "?".
- title String
- A human-readable string name for a Namespace.
- id string
- Namespace identifier tag.
- supports
Url booleanEncoding - True if keys written on the URL will be URL-decoded before storing. For example, if set to "true", a key written on the URL as "%3F" will be stored as "?".
- title string
- A human-readable string name for a Namespace.
- id str
- Namespace identifier tag.
- supports_
url_ boolencoding - True if keys written on the URL will be URL-decoded before storing. For example, if set to "true", a key written on the URL as "%3F" will be stored as "?".
- title str
- A human-readable string name for a Namespace.
- id String
- Namespace identifier tag.
- supports
Url BooleanEncoding - True if keys written on the URL will be URL-decoded before storing. For example, if set to "true", a key written on the URL as "%3F" will be stored as "?".
- title String
- A human-readable string name for a Namespace.
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.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
