1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getWorkersKvNamespace
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getWorkersKvNamespace

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    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:

    AccountId string
    Identifier
    Filter GetWorkersKvNamespaceFilter
    NamespaceId string
    Namespace identifier tag.
    AccountId string
    Identifier
    Filter GetWorkersKvNamespaceFilter
    NamespaceId string
    Namespace identifier tag.
    accountId String
    Identifier
    filter GetWorkersKvNamespaceFilter
    namespaceId String
    Namespace identifier tag.
    accountId string
    Identifier
    filter GetWorkersKvNamespaceFilter
    namespaceId string
    Namespace identifier tag.
    account_id str
    Identifier
    filter GetWorkersKvNamespaceFilter
    namespace_id str
    Namespace identifier tag.
    accountId String
    Identifier
    filter Property Map
    namespaceId String
    Namespace identifier tag.

    getWorkersKvNamespace Result

    The following output properties are available:

    AccountId string
    Identifier
    Beta bool
    True if new beta namespace, with additional preview features.
    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.
    Filter GetWorkersKvNamespaceFilter
    NamespaceId string
    Namespace identifier tag.
    AccountId string
    Identifier
    Beta bool
    True if new beta namespace, with additional preview features.
    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.
    Filter GetWorkersKvNamespaceFilter
    NamespaceId string
    Namespace identifier tag.
    accountId String
    Identifier
    beta Boolean
    True if new beta namespace, with additional preview features.
    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.
    filter GetWorkersKvNamespaceFilter
    namespaceId String
    Namespace identifier tag.
    accountId string
    Identifier
    beta boolean
    True if new beta namespace, with additional preview features.
    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.
    filter GetWorkersKvNamespaceFilter
    namespaceId 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_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.
    filter GetWorkersKvNamespaceFilter
    namespace_id str
    Namespace identifier tag.
    accountId String
    Identifier
    beta Boolean
    True if new beta namespace, with additional preview features.
    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.
    filter Property Map
    namespaceId String
    Namespace identifier tag.

    Supporting Types

    GetWorkersKvNamespaceFilter

    Direction string
    Direction to order namespaces. Available values: "asc", "desc".
    Order string
    Field to order results by. Available values: "id", "title".
    Direction string
    Direction to order namespaces. Available values: "asc", "desc".
    Order string
    Field to order results by. Available values: "id", "title".
    direction String
    Direction to order namespaces. Available values: "asc", "desc".
    order String
    Field to order results by. Available values: "id", "title".
    direction string
    Direction to order namespaces. Available values: "asc", "desc".
    order string
    Field to order results by. Available values: "id", "title".
    direction str
    Direction to order namespaces. Available values: "asc", "desc".
    order str
    Field to order results by. Available values: "id", "title".
    direction String
    Direction to order namespaces. Available values: "asc", "desc".
    order String
    Field to order results by. Available values: "id", "title".

    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.1.2 published on Monday, Apr 28, 2025 by Pulumi