1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getGaapResourcesByTag
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getGaapResourcesByTag

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary

    The following arguments are supported:

    TagKey string
    Tag key.
    TagValue string
    Tag value.
    Id string
    ResourceType 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.
    ResultOutputFile string
    Used to save results.
    TagKey string
    Tag key.
    TagValue string
    Tag value.
    Id string
    ResourceType 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.
    ResultOutputFile string
    Used to save results.
    tagKey String
    Tag key.
    tagValue String
    Tag value.
    id String
    resourceType 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.
    resultOutputFile String
    Used to save results.
    tagKey string
    Tag key.
    tagValue string
    Tag value.
    id string
    resourceType 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.
    resultOutputFile string
    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_file str
    Used to save results.
    tagKey String
    Tag key.
    tagValue String
    Tag value.
    id String
    resourceType 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.
    resultOutputFile String
    Used to save results.

    getGaapResourcesByTag Result

    The following output properties are available:

    Id string
    ResourceSets List<GetGaapResourcesByTagResourceSet>
    List of resources corresponding to labels.
    TagKey string
    TagValue string
    ResourceType string
    Resource type, where:Proxy represents the proxy,ProxyGroup represents a proxy group,RealServer represents the real server.
    ResultOutputFile string
    Id string
    ResourceSets []GetGaapResourcesByTagResourceSet
    List of resources corresponding to labels.
    TagKey string
    TagValue string
    ResourceType string
    Resource type, where:Proxy represents the proxy,ProxyGroup represents a proxy group,RealServer represents the real server.
    ResultOutputFile string
    id String
    resourceSets List<GetGaapResourcesByTagResourceSet>
    List of resources corresponding to labels.
    tagKey String
    tagValue String
    resourceType String
    Resource type, where:Proxy represents the proxy,ProxyGroup represents a proxy group,RealServer represents the real server.
    resultOutputFile String
    id string
    resourceSets GetGaapResourcesByTagResourceSet[]
    List of resources corresponding to labels.
    tagKey string
    tagValue string
    resourceType string
    Resource type, where:Proxy represents the proxy,ProxyGroup represents a proxy group,RealServer represents the real server.
    resultOutputFile string
    id str
    resource_sets Sequence[GetGaapResourcesByTagResourceSet]
    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_file str
    id String
    resourceSets List<Property Map>
    List of resources corresponding to labels.
    tagKey String
    tagValue String
    resourceType String
    Resource type, where:Proxy represents the proxy,ProxyGroup represents a proxy group,RealServer represents the real server.
    resultOutputFile String

    Supporting Types

    GetGaapResourcesByTagResourceSet

    ResourceId string
    Resource Id.
    ResourceType 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.
    ResourceId string
    Resource Id.
    ResourceType 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.
    resourceId String
    Resource Id.
    resourceType 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.
    resourceId string
    Resource Id.
    resourceType 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.
    resourceId String
    Resource Id.
    resourceType 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 tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack