1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getTmsResourceTagValuesV1
opentelekomcloud 1.36.48 published on Thursday, Sep 18, 2025 by opentelekomcloud

opentelekomcloud.getTmsResourceTagValuesV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.48 published on Thursday, Sep 18, 2025 by opentelekomcloud

    Use this data source to get the list of tag values by tag key.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const test = opentelekomcloud.getTmsResourceTagValuesV1({
        key: "tag_key",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    test = opentelekomcloud.get_tms_resource_tag_values_v1(key="tag_key")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.GetTmsResourceTagValuesV1(ctx, &opentelekomcloud.GetTmsResourceTagValuesV1Args{
    			Key: "tag_key",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Opentelekomcloud.GetTmsResourceTagValuesV1.Invoke(new()
        {
            Key = "tag_key",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetTmsResourceTagValuesV1Args;
    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 test = OpentelekomcloudFunctions.getTmsResourceTagValuesV1(GetTmsResourceTagValuesV1Args.builder()
                .key("tag_key")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: opentelekomcloud:getTmsResourceTagValuesV1
          arguments:
            key: tag_key
    

    Using getTmsResourceTagValuesV1

    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 getTmsResourceTagValuesV1(args: GetTmsResourceTagValuesV1Args, opts?: InvokeOptions): Promise<GetTmsResourceTagValuesV1Result>
    function getTmsResourceTagValuesV1Output(args: GetTmsResourceTagValuesV1OutputArgs, opts?: InvokeOptions): Output<GetTmsResourceTagValuesV1Result>
    def get_tms_resource_tag_values_v1(id: Optional[str] = None,
                                       key: Optional[str] = None,
                                       region_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetTmsResourceTagValuesV1Result
    def get_tms_resource_tag_values_v1_output(id: Optional[pulumi.Input[str]] = None,
                                       key: Optional[pulumi.Input[str]] = None,
                                       region_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetTmsResourceTagValuesV1Result]
    func GetTmsResourceTagValuesV1(ctx *Context, args *GetTmsResourceTagValuesV1Args, opts ...InvokeOption) (*GetTmsResourceTagValuesV1Result, error)
    func GetTmsResourceTagValuesV1Output(ctx *Context, args *GetTmsResourceTagValuesV1OutputArgs, opts ...InvokeOption) GetTmsResourceTagValuesV1ResultOutput

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

    public static class GetTmsResourceTagValuesV1 
    {
        public static Task<GetTmsResourceTagValuesV1Result> InvokeAsync(GetTmsResourceTagValuesV1Args args, InvokeOptions? opts = null)
        public static Output<GetTmsResourceTagValuesV1Result> Invoke(GetTmsResourceTagValuesV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTmsResourceTagValuesV1Result> getTmsResourceTagValuesV1(GetTmsResourceTagValuesV1Args args, InvokeOptions options)
    public static Output<GetTmsResourceTagValuesV1Result> getTmsResourceTagValuesV1(GetTmsResourceTagValuesV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getTmsResourceTagValuesV1:getTmsResourceTagValuesV1
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Key string
    Specifies the tag key.
    Id string
    The data source ID.
    RegionId string
    Specifies the region ID.
    Key string
    Specifies the tag key.
    Id string
    The data source ID.
    RegionId string
    Specifies the region ID.
    key String
    Specifies the tag key.
    id String
    The data source ID.
    regionId String
    Specifies the region ID.
    key string
    Specifies the tag key.
    id string
    The data source ID.
    regionId string
    Specifies the region ID.
    key str
    Specifies the tag key.
    id str
    The data source ID.
    region_id str
    Specifies the region ID.
    key String
    Specifies the tag key.
    id String
    The data source ID.
    regionId String
    Specifies the region ID.

    getTmsResourceTagValuesV1 Result

    The following output properties are available:

    Id string
    The data source ID.
    Key string
    Values List<string>
    Indicates the tag values.
    RegionId string
    Id string
    The data source ID.
    Key string
    Values []string
    Indicates the tag values.
    RegionId string
    id String
    The data source ID.
    key String
    values List<String>
    Indicates the tag values.
    regionId String
    id string
    The data source ID.
    key string
    values string[]
    Indicates the tag values.
    regionId string
    id str
    The data source ID.
    key str
    values Sequence[str]
    Indicates the tag values.
    region_id str
    id String
    The data source ID.
    key String
    values List<String>
    Indicates the tag values.
    regionId String

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.48 published on Thursday, Sep 18, 2025 by opentelekomcloud