1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getWorkersKvNamespaces
Cloudflare v6.0.0 published on Monday, Apr 14, 2025 by Pulumi

cloudflare.getWorkersKvNamespaces

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleWorkersKvNamespaces = cloudflare.getWorkersKvNamespaces({
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    direction: "asc",
    order: "id",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_workers_kv_namespaces = cloudflare.get_workers_kv_namespaces(account_id="023e105f4ecef8ad9ca31a8372d0c353",
    direction="asc",
    order="id")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  exampleWorkersKvNamespaces:
    fn::invoke:
      function: cloudflare:getWorkersKvNamespaces
      arguments:
        accountId: 023e105f4ecef8ad9ca31a8372d0c353
        direction: asc
        order: id
Copy

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>
Copy
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]
Copy
func LookupWorkersKvNamespaces(ctx *Context, args *LookupWorkersKvNamespacesArgs, opts ...InvokeOption) (*LookupWorkersKvNamespacesResult, error)
func LookupWorkersKvNamespacesOutput(ctx *Context, args *LookupWorkersKvNamespacesOutputArgs, opts ...InvokeOption) LookupWorkersKvNamespacesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetWorkersKvNamespacesResult> getWorkersKvNamespaces(GetWorkersKvNamespacesArgs args, InvokeOptions options)
public static Output<GetWorkersKvNamespacesResult> getWorkersKvNamespaces(GetWorkersKvNamespacesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getWorkersKvNamespaces:getWorkersKvNamespaces
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. string
Namespace identifier tag.
SupportsUrlEncoding This property is required. 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 This property is required. string
A human-readable string name for a Namespace.
Id This property is required. string
Namespace identifier tag.
SupportsUrlEncoding This property is required. 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 This property is required. string
A human-readable string name for a Namespace.
id This property is required. String
Namespace identifier tag.
supportsUrlEncoding This property is required. 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 This property is required. String
A human-readable string name for a Namespace.
id This property is required. string
Namespace identifier tag.
supportsUrlEncoding This property is required. 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 This property is required. string
A human-readable string name for a Namespace.
id This property is required. str
Namespace identifier tag.
supports_url_encoding This property is required. 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 This property is required. str
A human-readable string name for a Namespace.
id This property is required. String
Namespace identifier tag.
supportsUrlEncoding This property is required. 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 This property is required. 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.