1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. TeoEdgeKv
Viewing docs for tencentcloud 1.83.3
published on Friday, Jun 19, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.83.3
published on Friday, Jun 19, 2026 by tencentcloudstack

    Provides a resource to create a TEO Edge KV key-value pair

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.TeoEdgeKv("example", {
        zoneId: "zone-2o3h21ed2t68",
        namespace: "example-namespace",
        key: "example-key",
        value: "example-value",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.TeoEdgeKv("example",
        zone_id="zone-2o3h21ed2t68",
        namespace="example-namespace",
        key="example-key",
        value="example-value")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewTeoEdgeKv(ctx, "example", &tencentcloud.TeoEdgeKvArgs{
    			ZoneId:    pulumi.String("zone-2o3h21ed2t68"),
    			Namespace: pulumi.String("example-namespace"),
    			Key:       pulumi.String("example-key"),
    			Value:     pulumi.String("example-value"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.TeoEdgeKv("example", new()
        {
            ZoneId = "zone-2o3h21ed2t68",
            Namespace = "example-namespace",
            Key = "example-key",
            Value = "example-value",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoEdgeKv;
    import com.pulumi.tencentcloud.TeoEdgeKvArgs;
    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) {
            var example = new TeoEdgeKv("example", TeoEdgeKvArgs.builder()
                .zoneId("zone-2o3h21ed2t68")
                .namespace("example-namespace")
                .key("example-key")
                .value("example-value")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:TeoEdgeKv
        properties:
          zoneId: zone-2o3h21ed2t68
          namespace: example-namespace
          key: example-key
          value: example-value
    
    Example coming soon!
    

    Create TeoEdgeKv Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TeoEdgeKv(name: string, args: TeoEdgeKvArgs, opts?: CustomResourceOptions);
    @overload
    def TeoEdgeKv(resource_name: str,
                  args: TeoEdgeKvArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeoEdgeKv(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  key: Optional[str] = None,
                  namespace: Optional[str] = None,
                  value: Optional[str] = None,
                  zone_id: Optional[str] = None,
                  teo_edge_kv_id: Optional[str] = None)
    func NewTeoEdgeKv(ctx *Context, name string, args TeoEdgeKvArgs, opts ...ResourceOption) (*TeoEdgeKv, error)
    public TeoEdgeKv(string name, TeoEdgeKvArgs args, CustomResourceOptions? opts = null)
    public TeoEdgeKv(String name, TeoEdgeKvArgs args)
    public TeoEdgeKv(String name, TeoEdgeKvArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TeoEdgeKv
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_teoedgekv" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TeoEdgeKvArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TeoEdgeKvArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TeoEdgeKvArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeoEdgeKvArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeoEdgeKvArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TeoEdgeKv Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TeoEdgeKv resource accepts the following input properties:

    Key string
    Key name, 1-512 characters, allowed characters are letters, numbers, hyphens and underscores.
    Namespace string
    Namespace name.
    Value string
    Key value. Cannot be empty, maximum 1 MB.
    ZoneId string
    Site ID.
    TeoEdgeKvId string
    ID of the resource.
    Key string
    Key name, 1-512 characters, allowed characters are letters, numbers, hyphens and underscores.
    Namespace string
    Namespace name.
    Value string
    Key value. Cannot be empty, maximum 1 MB.
    ZoneId string
    Site ID.
    TeoEdgeKvId string
    ID of the resource.
    key string
    Key name, 1-512 characters, allowed characters are letters, numbers, hyphens and underscores.
    namespace string
    Namespace name.
    value string
    Key value. Cannot be empty, maximum 1 MB.
    zone_id string
    Site ID.
    teo_edge_kv_id string
    ID of the resource.
    key String
    Key name, 1-512 characters, allowed characters are letters, numbers, hyphens and underscores.
    namespace String
    Namespace name.
    value String
    Key value. Cannot be empty, maximum 1 MB.
    zoneId String
    Site ID.
    teoEdgeKvId String
    ID of the resource.
    key string
    Key name, 1-512 characters, allowed characters are letters, numbers, hyphens and underscores.
    namespace string
    Namespace name.
    value string
    Key value. Cannot be empty, maximum 1 MB.
    zoneId string
    Site ID.
    teoEdgeKvId string
    ID of the resource.
    key str
    Key name, 1-512 characters, allowed characters are letters, numbers, hyphens and underscores.
    namespace str
    Namespace name.
    value str
    Key value. Cannot be empty, maximum 1 MB.
    zone_id str
    Site ID.
    teo_edge_kv_id str
    ID of the resource.
    key String
    Key name, 1-512 characters, allowed characters are letters, numbers, hyphens and underscores.
    namespace String
    Namespace name.
    value String
    Key value. Cannot be empty, maximum 1 MB.
    zoneId String
    Site ID.
    teoEdgeKvId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TeoEdgeKv resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TeoEdgeKv Resource

    Get an existing TeoEdgeKv resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TeoEdgeKvState, opts?: CustomResourceOptions): TeoEdgeKv
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            key: Optional[str] = None,
            namespace: Optional[str] = None,
            teo_edge_kv_id: Optional[str] = None,
            value: Optional[str] = None,
            zone_id: Optional[str] = None) -> TeoEdgeKv
    func GetTeoEdgeKv(ctx *Context, name string, id IDInput, state *TeoEdgeKvState, opts ...ResourceOption) (*TeoEdgeKv, error)
    public static TeoEdgeKv Get(string name, Input<string> id, TeoEdgeKvState? state, CustomResourceOptions? opts = null)
    public static TeoEdgeKv get(String name, Output<String> id, TeoEdgeKvState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TeoEdgeKv    get:      id: ${id}
    import {
      to = tencentcloud_teoedgekv.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Key string
    Key name, 1-512 characters, allowed characters are letters, numbers, hyphens and underscores.
    Namespace string
    Namespace name.
    TeoEdgeKvId string
    ID of the resource.
    Value string
    Key value. Cannot be empty, maximum 1 MB.
    ZoneId string
    Site ID.
    Key string
    Key name, 1-512 characters, allowed characters are letters, numbers, hyphens and underscores.
    Namespace string
    Namespace name.
    TeoEdgeKvId string
    ID of the resource.
    Value string
    Key value. Cannot be empty, maximum 1 MB.
    ZoneId string
    Site ID.
    key string
    Key name, 1-512 characters, allowed characters are letters, numbers, hyphens and underscores.
    namespace string
    Namespace name.
    teo_edge_kv_id string
    ID of the resource.
    value string
    Key value. Cannot be empty, maximum 1 MB.
    zone_id string
    Site ID.
    key String
    Key name, 1-512 characters, allowed characters are letters, numbers, hyphens and underscores.
    namespace String
    Namespace name.
    teoEdgeKvId String
    ID of the resource.
    value String
    Key value. Cannot be empty, maximum 1 MB.
    zoneId String
    Site ID.
    key string
    Key name, 1-512 characters, allowed characters are letters, numbers, hyphens and underscores.
    namespace string
    Namespace name.
    teoEdgeKvId string
    ID of the resource.
    value string
    Key value. Cannot be empty, maximum 1 MB.
    zoneId string
    Site ID.
    key str
    Key name, 1-512 characters, allowed characters are letters, numbers, hyphens and underscores.
    namespace str
    Namespace name.
    teo_edge_kv_id str
    ID of the resource.
    value str
    Key value. Cannot be empty, maximum 1 MB.
    zone_id str
    Site ID.
    key String
    Key name, 1-512 characters, allowed characters are letters, numbers, hyphens and underscores.
    namespace String
    Namespace name.
    teoEdgeKvId String
    ID of the resource.
    value String
    Key value. Cannot be empty, maximum 1 MB.
    zoneId String
    Site ID.

    Import

    TEO Edge KV can be imported using the zoneId#namespace#key, e.g.

    $ pulumi import tencentcloud:index/teoEdgeKv:TeoEdgeKv example zone-2o3h21ed2t68#example-namespace#example-key
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.83.3
    published on Friday, Jun 19, 2026 by tencentcloudstack

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial