Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getWorkersKvNamespace
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWorkersKvNamespace = cloudflare.getWorkersKvNamespace({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
namespaceId: "0f2ac74b498b48028cb68387c421e279",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_workers_kv_namespace = cloudflare.get_workers_kv_namespace(account_id="023e105f4ecef8ad9ca31a8372d0c353",
namespace_id="0f2ac74b498b48028cb68387c421e279")
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.LookupWorkersKvNamespace(ctx, &cloudflare.LookupWorkersKvNamespaceArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
NamespaceId: pulumi.StringRef("0f2ac74b498b48028cb68387c421e279"),
}, 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 exampleWorkersKvNamespace = Cloudflare.GetWorkersKvNamespace.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
NamespaceId = "0f2ac74b498b48028cb68387c421e279",
});
});
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.GetWorkersKvNamespaceArgs;
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 exampleWorkersKvNamespace = CloudflareFunctions.getWorkersKvNamespace(GetWorkersKvNamespaceArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.namespaceId("0f2ac74b498b48028cb68387c421e279")
.build());
}
}
variables:
exampleWorkersKvNamespace:
fn::invoke:
function: cloudflare:getWorkersKvNamespace
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
namespaceId: 0f2ac74b498b48028cb68387c421e279
Using getWorkersKvNamespace
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 getWorkersKvNamespace(args: GetWorkersKvNamespaceArgs, opts?: InvokeOptions): Promise<GetWorkersKvNamespaceResult>
function getWorkersKvNamespaceOutput(args: GetWorkersKvNamespaceOutputArgs, opts?: InvokeOptions): Output<GetWorkersKvNamespaceResult>
def get_workers_kv_namespace(account_id: Optional[str] = None,
filter: Optional[GetWorkersKvNamespaceFilter] = None,
namespace_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkersKvNamespaceResult
def get_workers_kv_namespace_output(account_id: Optional[pulumi.Input[str]] = None,
filter: Optional[pulumi.Input[GetWorkersKvNamespaceFilterArgs]] = None,
namespace_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWorkersKvNamespaceResult]
func LookupWorkersKvNamespace(ctx *Context, args *LookupWorkersKvNamespaceArgs, opts ...InvokeOption) (*LookupWorkersKvNamespaceResult, error)
func LookupWorkersKvNamespaceOutput(ctx *Context, args *LookupWorkersKvNamespaceOutputArgs, opts ...InvokeOption) LookupWorkersKvNamespaceResultOutput
> Note: This function is named LookupWorkersKvNamespace
in the Go SDK.
public static class GetWorkersKvNamespace
{
public static Task<GetWorkersKvNamespaceResult> InvokeAsync(GetWorkersKvNamespaceArgs args, InvokeOptions? opts = null)
public static Output<GetWorkersKvNamespaceResult> Invoke(GetWorkersKvNamespaceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWorkersKvNamespaceResult> getWorkersKvNamespace(GetWorkersKvNamespaceArgs args, InvokeOptions options)
public static Output<GetWorkersKvNamespaceResult> getWorkersKvNamespace(GetWorkersKvNamespaceArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getWorkersKvNamespace:getWorkersKvNamespace
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - Identifier
- Filter
Get
Workers Kv Namespace Filter - Namespace
Id string - Namespace identifier tag.
- Account
Id string - Identifier
- Filter
Get
Workers Kv Namespace Filter - Namespace
Id string - Namespace identifier tag.
- account
Id String - Identifier
- filter
Get
Workers Kv Namespace Filter - namespace
Id String - Namespace identifier tag.
- account
Id string - Identifier
- filter
Get
Workers Kv Namespace Filter - namespace
Id string - Namespace identifier tag.
- account_
id str - Identifier
- filter
Get
Workers Kv Namespace Filter - namespace_
id str - Namespace identifier tag.
- account
Id String - Identifier
- filter Property Map
- namespace
Id String - Namespace identifier tag.
getWorkersKvNamespace Result
The following output properties are available:
- Account
Id string - Identifier
- Beta bool
- True if new beta namespace, with additional preview features.
- 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.
- Filter
Get
Workers Kv Namespace Filter - Namespace
Id string - Namespace identifier tag.
- Account
Id string - Identifier
- Beta bool
- True if new beta namespace, with additional preview features.
- 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.
- Filter
Get
Workers Kv Namespace Filter - Namespace
Id string - Namespace identifier tag.
- account
Id String - Identifier
- beta Boolean
- True if new beta namespace, with additional preview features.
- 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.
- filter
Get
Workers Kv Namespace Filter - namespace
Id String - Namespace identifier tag.
- account
Id string - Identifier
- beta boolean
- True if new beta namespace, with additional preview features.
- 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.
- filter
Get
Workers Kv Namespace Filter - namespace
Id string - Namespace identifier tag.
- account_
id str - Identifier
- beta bool
- True if new beta namespace, with additional preview features.
- 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.
- filter
Get
Workers Kv Namespace Filter - namespace_
id str - Namespace identifier tag.
- account
Id String - Identifier
- beta Boolean
- True if new beta namespace, with additional preview features.
- 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.
- filter Property Map
- namespace
Id String - Namespace identifier tag.
Supporting Types
GetWorkersKvNamespaceFilter
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.