tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getGaapResourcesByTag
Start a Neo task
Explain and create a tencentcloud.getGaapResourcesByTag resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of gaap resources by tag
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const resourcesByTag = tencentcloud.getGaapResourcesByTag({
tagKey: "tagKey",
tagValue: "tagValue",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
resources_by_tag = tencentcloud.get_gaap_resources_by_tag(tag_key="tagKey",
tag_value="tagValue")
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.GetGaapResourcesByTag(ctx, &tencentcloud.GetGaapResourcesByTagArgs{
TagKey: "tagKey",
TagValue: "tagValue",
}, 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 resourcesByTag = Tencentcloud.GetGaapResourcesByTag.Invoke(new()
{
TagKey = "tagKey",
TagValue = "tagValue",
});
});
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.GetGaapResourcesByTagArgs;
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 resourcesByTag = TencentcloudFunctions.getGaapResourcesByTag(GetGaapResourcesByTagArgs.builder()
.tagKey("tagKey")
.tagValue("tagValue")
.build());
}
}
variables:
resourcesByTag:
fn::invoke:
function: tencentcloud:getGaapResourcesByTag
arguments:
tagKey: tagKey
tagValue: tagValue
Using getGaapResourcesByTag
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 getGaapResourcesByTag(args: GetGaapResourcesByTagArgs, opts?: InvokeOptions): Promise<GetGaapResourcesByTagResult>
function getGaapResourcesByTagOutput(args: GetGaapResourcesByTagOutputArgs, opts?: InvokeOptions): Output<GetGaapResourcesByTagResult>def get_gaap_resources_by_tag(id: Optional[str] = None,
resource_type: Optional[str] = None,
result_output_file: Optional[str] = None,
tag_key: Optional[str] = None,
tag_value: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGaapResourcesByTagResult
def get_gaap_resources_by_tag_output(id: Optional[pulumi.Input[str]] = None,
resource_type: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
tag_key: Optional[pulumi.Input[str]] = None,
tag_value: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGaapResourcesByTagResult]func GetGaapResourcesByTag(ctx *Context, args *GetGaapResourcesByTagArgs, opts ...InvokeOption) (*GetGaapResourcesByTagResult, error)
func GetGaapResourcesByTagOutput(ctx *Context, args *GetGaapResourcesByTagOutputArgs, opts ...InvokeOption) GetGaapResourcesByTagResultOutput> Note: This function is named GetGaapResourcesByTag in the Go SDK.
public static class GetGaapResourcesByTag
{
public static Task<GetGaapResourcesByTagResult> InvokeAsync(GetGaapResourcesByTagArgs args, InvokeOptions? opts = null)
public static Output<GetGaapResourcesByTagResult> Invoke(GetGaapResourcesByTagInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGaapResourcesByTagResult> getGaapResourcesByTag(GetGaapResourcesByTagArgs args, InvokeOptions options)
public static Output<GetGaapResourcesByTagResult> getGaapResourcesByTag(GetGaapResourcesByTagArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getGaapResourcesByTag:getGaapResourcesByTag
arguments:
# arguments dictionaryThe following arguments are supported:
- Tag
Key string - Tag key.
- Tag
Value string - Tag value.
- Id string
- Resource
Type string - Resource type, where:Proxy represents the proxy;ProxyGroup represents a proxy group;RealServer represents the Real Server.If this field is not specified, all resources under the label will be queried.
- Result
Output stringFile - Used to save results.
- Tag
Key string - Tag key.
- Tag
Value string - Tag value.
- Id string
- Resource
Type string - Resource type, where:Proxy represents the proxy;ProxyGroup represents a proxy group;RealServer represents the Real Server.If this field is not specified, all resources under the label will be queried.
- Result
Output stringFile - Used to save results.
- tag
Key String - Tag key.
- tag
Value String - Tag value.
- id String
- resource
Type String - Resource type, where:Proxy represents the proxy;ProxyGroup represents a proxy group;RealServer represents the Real Server.If this field is not specified, all resources under the label will be queried.
- result
Output StringFile - Used to save results.
- tag
Key string - Tag key.
- tag
Value string - Tag value.
- id string
- resource
Type string - Resource type, where:Proxy represents the proxy;ProxyGroup represents a proxy group;RealServer represents the Real Server.If this field is not specified, all resources under the label will be queried.
- result
Output stringFile - Used to save results.
- tag_
key str - Tag key.
- tag_
value str - Tag value.
- id str
- resource_
type str - Resource type, where:Proxy represents the proxy;ProxyGroup represents a proxy group;RealServer represents the Real Server.If this field is not specified, all resources under the label will be queried.
- result_
output_ strfile - Used to save results.
- tag
Key String - Tag key.
- tag
Value String - Tag value.
- id String
- resource
Type String - Resource type, where:Proxy represents the proxy;ProxyGroup represents a proxy group;RealServer represents the Real Server.If this field is not specified, all resources under the label will be queried.
- result
Output StringFile - Used to save results.
getGaapResourcesByTag Result
The following output properties are available:
- Id string
- Resource
Sets List<GetGaap Resources By Tag Resource Set> - List of resources corresponding to labels.
- Tag
Key string - Tag
Value string - Resource
Type string - Resource type, where:Proxy represents the proxy,ProxyGroup represents a proxy group,RealServer represents the real server.
- Result
Output stringFile
- Id string
- Resource
Sets []GetGaap Resources By Tag Resource Set - List of resources corresponding to labels.
- Tag
Key string - Tag
Value string - Resource
Type string - Resource type, where:Proxy represents the proxy,ProxyGroup represents a proxy group,RealServer represents the real server.
- Result
Output stringFile
- id String
- resource
Sets List<GetGaap Resources By Tag Resource Set> - List of resources corresponding to labels.
- tag
Key String - tag
Value String - resource
Type String - Resource type, where:Proxy represents the proxy,ProxyGroup represents a proxy group,RealServer represents the real server.
- result
Output StringFile
- id string
- resource
Sets GetGaap Resources By Tag Resource Set[] - List of resources corresponding to labels.
- tag
Key string - tag
Value string - resource
Type string - Resource type, where:Proxy represents the proxy,ProxyGroup represents a proxy group,RealServer represents the real server.
- result
Output stringFile
- id str
- resource_
sets Sequence[GetGaap Resources By Tag Resource Set] - List of resources corresponding to labels.
- tag_
key str - tag_
value str - resource_
type str - Resource type, where:Proxy represents the proxy,ProxyGroup represents a proxy group,RealServer represents the real server.
- result_
output_ strfile
- id String
- resource
Sets List<Property Map> - List of resources corresponding to labels.
- tag
Key String - tag
Value String - resource
Type String - Resource type, where:Proxy represents the proxy,ProxyGroup represents a proxy group,RealServer represents the real server.
- result
Output StringFile
Supporting Types
GetGaapResourcesByTagResourceSet
- Resource
Id string - Resource Id.
- Resource
Type string - Resource type, where:Proxy represents the proxy;ProxyGroup represents a proxy group;RealServer represents the Real Server.If this field is not specified, all resources under the label will be queried.
- Resource
Id string - Resource Id.
- Resource
Type string - Resource type, where:Proxy represents the proxy;ProxyGroup represents a proxy group;RealServer represents the Real Server.If this field is not specified, all resources under the label will be queried.
- resource
Id String - Resource Id.
- resource
Type String - Resource type, where:Proxy represents the proxy;ProxyGroup represents a proxy group;RealServer represents the Real Server.If this field is not specified, all resources under the label will be queried.
- resource
Id string - Resource Id.
- resource
Type string - Resource type, where:Proxy represents the proxy;ProxyGroup represents a proxy group;RealServer represents the Real Server.If this field is not specified, all resources under the label will be queried.
- resource_
id str - Resource Id.
- resource_
type str - Resource type, where:Proxy represents the proxy;ProxyGroup represents a proxy group;RealServer represents the Real Server.If this field is not specified, all resources under the label will be queried.
- resource
Id String - Resource Id.
- resource
Type String - Resource type, where:Proxy represents the proxy;ProxyGroup represents a proxy group;RealServer represents the Real Server.If this field is not specified, all resources under the label will be queried.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
