1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getTagKeys
tencentcloud 1.82.25 published on Monday, Sep 22, 2025 by tencentcloudstack

tencentcloud.getTagKeys

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.82.25 published on Monday, Sep 22, 2025 by tencentcloudstack

    Use this data source to query detailed information of Tag keys

    Example Usage

    Qeury all tag keys

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const tags = tencentcloud.getTagKeys({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    tags = tencentcloud.get_tag_keys()
    
    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.GetTagKeys(ctx, &tencentcloud.GetTagKeysArgs{}, nil)
    		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 tags = Tencentcloud.GetTagKeys.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetTagKeysArgs;
    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 tags = TencentcloudFunctions.getTagKeys();
    
        }
    }
    
    variables:
      tags:
        fn::invoke:
          function: tencentcloud:getTagKeys
          arguments: {}
    

    Qeury tag keys by filter

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const tags = tencentcloud.getTagKeys({
        category: "All",
        createUin: 1486445011341,
        showProject: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    tags = tencentcloud.get_tag_keys(category="All",
        create_uin=1486445011341,
        show_project=1)
    
    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.GetTagKeys(ctx, &tencentcloud.GetTagKeysArgs{
    			Category:    pulumi.StringRef("All"),
    			CreateUin:   pulumi.Float64Ref(1486445011341),
    			ShowProject: pulumi.Float64Ref(1),
    		}, nil)
    		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 tags = Tencentcloud.GetTagKeys.Invoke(new()
        {
            Category = "All",
            CreateUin = 1486445011341,
            ShowProject = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetTagKeysArgs;
    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 tags = TencentcloudFunctions.getTagKeys(GetTagKeysArgs.builder()
                .category("All")
                .createUin("1486445011341")
                .showProject(1)
                .build());
    
        }
    }
    
    variables:
      tags:
        fn::invoke:
          function: tencentcloud:getTagKeys
          arguments:
            category: All
            createUin: '1486445011341'
            showProject: 1
    

    Using getTagKeys

    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 getTagKeys(args: GetTagKeysArgs, opts?: InvokeOptions): Promise<GetTagKeysResult>
    function getTagKeysOutput(args: GetTagKeysOutputArgs, opts?: InvokeOptions): Output<GetTagKeysResult>
    def get_tag_keys(category: Optional[str] = None,
                     create_uin: Optional[float] = None,
                     id: Optional[str] = None,
                     result_output_file: Optional[str] = None,
                     show_project: Optional[float] = None,
                     opts: Optional[InvokeOptions] = None) -> GetTagKeysResult
    def get_tag_keys_output(category: Optional[pulumi.Input[str]] = None,
                     create_uin: Optional[pulumi.Input[float]] = None,
                     id: Optional[pulumi.Input[str]] = None,
                     result_output_file: Optional[pulumi.Input[str]] = None,
                     show_project: Optional[pulumi.Input[float]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetTagKeysResult]
    func GetTagKeys(ctx *Context, args *GetTagKeysArgs, opts ...InvokeOption) (*GetTagKeysResult, error)
    func GetTagKeysOutput(ctx *Context, args *GetTagKeysOutputArgs, opts ...InvokeOption) GetTagKeysResultOutput

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

    public static class GetTagKeys 
    {
        public static Task<GetTagKeysResult> InvokeAsync(GetTagKeysArgs args, InvokeOptions? opts = null)
        public static Output<GetTagKeysResult> Invoke(GetTagKeysInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTagKeysResult> getTagKeys(GetTagKeysArgs args, InvokeOptions options)
    public static Output<GetTagKeysResult> getTagKeys(GetTagKeysArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTagKeys:getTagKeys
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Category string
    Tag type. Valid values: Custom: custom tag; System: system tag; All: all tags. Default value: All.
    CreateUin double
    Creator Uin. If not specified, Uin is only used as the query condition.
    Id string
    ResultOutputFile string
    Used to save results.
    ShowProject double
    Whether to show project. Allow values: 0: no, 1: yes.
    Category string
    Tag type. Valid values: Custom: custom tag; System: system tag; All: all tags. Default value: All.
    CreateUin float64
    Creator Uin. If not specified, Uin is only used as the query condition.
    Id string
    ResultOutputFile string
    Used to save results.
    ShowProject float64
    Whether to show project. Allow values: 0: no, 1: yes.
    category String
    Tag type. Valid values: Custom: custom tag; System: system tag; All: all tags. Default value: All.
    createUin Double
    Creator Uin. If not specified, Uin is only used as the query condition.
    id String
    resultOutputFile String
    Used to save results.
    showProject Double
    Whether to show project. Allow values: 0: no, 1: yes.
    category string
    Tag type. Valid values: Custom: custom tag; System: system tag; All: all tags. Default value: All.
    createUin number
    Creator Uin. If not specified, Uin is only used as the query condition.
    id string
    resultOutputFile string
    Used to save results.
    showProject number
    Whether to show project. Allow values: 0: no, 1: yes.
    category str
    Tag type. Valid values: Custom: custom tag; System: system tag; All: all tags. Default value: All.
    create_uin float
    Creator Uin. If not specified, Uin is only used as the query condition.
    id str
    result_output_file str
    Used to save results.
    show_project float
    Whether to show project. Allow values: 0: no, 1: yes.
    category String
    Tag type. Valid values: Custom: custom tag; System: system tag; All: all tags. Default value: All.
    createUin Number
    Creator Uin. If not specified, Uin is only used as the query condition.
    id String
    resultOutputFile String
    Used to save results.
    showProject Number
    Whether to show project. Allow values: 0: no, 1: yes.

    getTagKeys Result

    The following output properties are available:

    Id string
    Tags List<string>
    Tag list.
    Category string
    CreateUin double
    ResultOutputFile string
    ShowProject double
    Id string
    Tags []string
    Tag list.
    Category string
    CreateUin float64
    ResultOutputFile string
    ShowProject float64
    id String
    tags List<String>
    Tag list.
    category String
    createUin Double
    resultOutputFile String
    showProject Double
    id string
    tags string[]
    Tag list.
    category string
    createUin number
    resultOutputFile string
    showProject number
    id str
    tags Sequence[str]
    Tag list.
    category str
    create_uin float
    result_output_file str
    show_project float
    id String
    tags List<String>
    Tag list.
    category String
    createUin Number
    resultOutputFile String
    showProject Number

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.25 published on Monday, Sep 22, 2025 by tencentcloudstack