tencentcloud 1.82.25 published on Monday, Sep 22, 2025 by tencentcloudstack
tencentcloud.getTagKeys
Explore with Pulumi AI
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.
- Create
Uin double - Creator
Uin
. If not specified,Uin
is only used as the query condition. - Id string
- Result
Output stringFile - Used to save results.
- Show
Project 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.
- Create
Uin float64 - Creator
Uin
. If not specified,Uin
is only used as the query condition. - Id string
- Result
Output stringFile - Used to save results.
- Show
Project 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.
- create
Uin Double - Creator
Uin
. If not specified,Uin
is only used as the query condition. - id String
- result
Output StringFile - Used to save results.
- show
Project 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.
- create
Uin number - Creator
Uin
. If not specified,Uin
is only used as the query condition. - id string
- result
Output stringFile - Used to save results.
- show
Project 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_ strfile - 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.
- create
Uin Number - Creator
Uin
. If not specified,Uin
is only used as the query condition. - id String
- result
Output StringFile - Used to save results.
- show
Project Number - Whether to show project. Allow values: 0: no, 1: yes.
getTagKeys Result
The following output properties are available:
- Id string
- List<string>
- Tag list.
- Category string
- Create
Uin double - Result
Output stringFile - Show
Project double
- Id string
- []string
- Tag list.
- Category string
- Create
Uin float64 - Result
Output stringFile - Show
Project float64
- id String
- List<String>
- Tag list.
- category String
- create
Uin Double - result
Output StringFile - show
Project Double
- id string
- string[]
- Tag list.
- category string
- create
Uin number - result
Output stringFile - show
Project number
- id str
- Sequence[str]
- Tag list.
- category str
- create_
uin float - result_
output_ strfile - show_
project float
- id String
- List<String>
- Tag list.
- category String
- create
Uin Number - result
Output StringFile - show
Project Number
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.82.25 published on Monday, Sep 22, 2025 by tencentcloudstack