Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getWorkersKv
Explore with Pulumi AI
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:
- Account
Id string - Identifier
- Key
Name 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.
- Namespace
Id string - Namespace identifier tag.
- Account
Id string - Identifier
- Key
Name 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.
- Namespace
Id string - Namespace identifier tag.
- account
Id String - Identifier
- key
Name 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.
- namespace
Id String - Namespace identifier tag.
- account
Id string - Identifier
- key
Name 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.
- namespace
Id 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.
- account
Id String - Identifier
- key
Name 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.
- namespace
Id String - Namespace identifier tag.
getWorkersKv Result
The following output properties are available:
- Account
Id string - Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Name 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.
- Namespace
Id string - Namespace identifier tag.
- Account
Id string - Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Name 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.
- Namespace
Id string - Namespace identifier tag.
- account
Id String - Identifier
- id String
- The provider-assigned unique ID for this managed resource.
- key
Name 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.
- namespace
Id String - Namespace identifier tag.
- account
Id string - Identifier
- id string
- The provider-assigned unique ID for this managed resource.
- key
Name 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.
- namespace
Id 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.
- account
Id String - Identifier
- id String
- The provider-assigned unique ID for this managed resource.
- key
Name 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.
- namespace
Id 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.