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

cloudflare.getWorkersKv

Start a Neo task
Explain and create a cloudflare.getWorkersKv 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 exampleWorkersKv = cloudflare.getWorkersKv({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        namespaceId: "0f2ac74b498b48028cb68387c421e279",
        keyName: "My-Key",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_workers_kv = cloudflare.get_workers_kv(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        namespace_id="0f2ac74b498b48028cb68387c421e279",
        key_name="My-Key")
    
    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.LookupWorkersKv(ctx, &cloudflare.LookupWorkersKvArgs{
    			AccountId:   "023e105f4ecef8ad9ca31a8372d0c353",
    			NamespaceId: "0f2ac74b498b48028cb68387c421e279",
    			KeyName:     "My-Key",
    		}, 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 exampleWorkersKv = Cloudflare.GetWorkersKv.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            NamespaceId = "0f2ac74b498b48028cb68387c421e279",
            KeyName = "My-Key",
        });
    
    });
    
    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.GetWorkersKvArgs;
    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 exampleWorkersKv = CloudflareFunctions.getWorkersKv(GetWorkersKvArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .namespaceId("0f2ac74b498b48028cb68387c421e279")
                .keyName("My-Key")
                .build());
    
        }
    }
    
    variables:
      exampleWorkersKv:
        fn::invoke:
          function: cloudflare:getWorkersKv
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            namespaceId: 0f2ac74b498b48028cb68387c421e279
            keyName: My-Key
    

    Using getWorkersKv

    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 getWorkersKv(args: GetWorkersKvArgs, opts?: InvokeOptions): Promise<GetWorkersKvResult>
    function getWorkersKvOutput(args: GetWorkersKvOutputArgs, opts?: InvokeOptions): Output<GetWorkersKvResult>
    def get_workers_kv(account_id: Optional[str] = None,
                       key_name: Optional[str] = None,
                       namespace_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetWorkersKvResult
    def get_workers_kv_output(account_id: Optional[pulumi.Input[str]] = None,
                       key_name: Optional[pulumi.Input[str]] = None,
                       namespace_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetWorkersKvResult]
    func LookupWorkersKv(ctx *Context, args *LookupWorkersKvArgs, opts ...InvokeOption) (*LookupWorkersKvResult, error)
    func LookupWorkersKvOutput(ctx *Context, args *LookupWorkersKvOutputArgs, opts ...InvokeOption) LookupWorkersKvResultOutput

    > Note: This function is named LookupWorkersKv in the Go SDK.

    public static class GetWorkersKv 
    {
        public static Task<GetWorkersKvResult> InvokeAsync(GetWorkersKvArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkersKvResult> Invoke(GetWorkersKvInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWorkersKvResult> getWorkersKv(GetWorkersKvArgs args, InvokeOptions options)
    public static Output<GetWorkersKvResult> getWorkersKv(GetWorkersKvArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getWorkersKv:getWorkersKv
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Identifier.
    KeyName string
    A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
    NamespaceId string
    Namespace identifier tag.
    AccountId string
    Identifier.
    KeyName string
    A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
    NamespaceId string
    Namespace identifier tag.
    accountId String
    Identifier.
    keyName String
    A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
    namespaceId String
    Namespace identifier tag.
    accountId string
    Identifier.
    keyName string
    A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
    namespaceId string
    Namespace identifier tag.
    account_id str
    Identifier.
    key_name str
    A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
    namespace_id str
    Namespace identifier tag.
    accountId String
    Identifier.
    keyName String
    A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
    namespaceId String
    Namespace identifier tag.

    getWorkersKv Result

    The following output properties are available:

    AccountId string
    Identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyName string
    A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
    NamespaceId string
    Namespace identifier tag.
    AccountId string
    Identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyName string
    A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
    NamespaceId string
    Namespace identifier tag.
    accountId String
    Identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    keyName String
    A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
    namespaceId String
    Namespace identifier tag.
    accountId string
    Identifier.
    id string
    The provider-assigned unique ID for this managed resource.
    keyName string
    A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
    namespaceId string
    Namespace identifier tag.
    account_id str
    Identifier.
    id str
    The provider-assigned unique ID for this managed resource.
    key_name str
    A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
    namespace_id str
    Namespace identifier tag.
    accountId String
    Identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    keyName String
    A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
    namespaceId String
    Namespace identifier tag.

    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