1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getWorkersKvNamespaces
Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi

cloudflare.getWorkersKvNamespaces

Start a Neo task
Explain and create a cloudflare.getWorkersKvNamespaces resource
cloudflare logo
Cloudflare v6.11.0 published on Friday, Oct 31, 2025 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 dictionary

    The following arguments are supported:

    AccountId string
    Identifier.
    Direction string
    Direction to order namespaces. Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    Field to order results by. Available values: "id", "title".
    AccountId string
    Identifier.
    Direction string
    Direction to order namespaces. Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    Field to order results by. Available values: "id", "title".
    accountId String
    Identifier.
    direction String
    Direction to order namespaces. Available values: "asc", "desc".
    maxItems Integer
    Max items to fetch, default: 1000
    order String
    Field to order results by. Available values: "id", "title".
    accountId string
    Identifier.
    direction string
    Direction to order namespaces. Available values: "asc", "desc".
    maxItems number
    Max items to fetch, default: 1000
    order string
    Field to order results by. Available values: "id", "title".
    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".
    accountId String
    Identifier.
    direction String
    Direction to order namespaces. Available values: "asc", "desc".
    maxItems Number
    Max items to fetch, default: 1000
    order String
    Field to order results by. Available values: "id", "title".

    getWorkersKvNamespaces Result

    The following output properties are available:

    AccountId string
    Identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetWorkersKvNamespacesResult>
    The items returned by the data source
    Direction string
    Direction to order namespaces. Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    Field to order results by. Available values: "id", "title".
    AccountId string
    Identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetWorkersKvNamespacesResult
    The items returned by the data source
    Direction string
    Direction to order namespaces. Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    Field to order results by. Available values: "id", "title".
    accountId String
    Identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetWorkersKvNamespacesResult>
    The items returned by the data source
    direction String
    Direction to order namespaces. Available values: "asc", "desc".
    maxItems Integer
    Max items to fetch, default: 1000
    order String
    Field to order results by. Available values: "id", "title".
    accountId string
    Identifier.
    id string
    The provider-assigned unique ID for this managed resource.
    results GetWorkersKvNamespacesResult[]
    The items returned by the data source
    direction string
    Direction to order namespaces. Available values: "asc", "desc".
    maxItems 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[GetWorkersKvNamespacesResult]
    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".
    accountId 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".
    maxItems 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.
    SupportsUrlEncoding bool
    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.
    SupportsUrlEncoding bool
    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.
    supportsUrlEncoding Boolean
    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.
    supportsUrlEncoding boolean
    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_encoding bool
    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.
    supportsUrlEncoding Boolean
    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 cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate