1. Packages
  2. Volcengine
  3. API Docs
  4. iam
  5. Tags
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
volcengine logo
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
    Deprecated: volcengine.iam.Tags has been deprecated in favor of volcengine.iam.getTags

    Use this data source to query detailed information of iam tags

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.iam.getTags({
        resourceType: "Role",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.iam.get_tags(resource_type="Role")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/iam"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iam.GetTags(ctx, &iam.GetTagsArgs{
    			ResourceType: "Role",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Iam.GetTags.Invoke(new()
        {
            ResourceType = "Role",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.iam.IamFunctions;
    import com.pulumi.volcengine.iam.inputs.GetTagsArgs;
    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 default = IamFunctions.getTags(GetTagsArgs.builder()
                .resourceType("Role")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:iam:getTags
          Arguments:
            resourceType: Role
    

    Using Tags

    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 tags(args: TagsArgs, opts?: InvokeOptions): Promise<TagsResult>
    function tagsOutput(args: TagsOutputArgs, opts?: InvokeOptions): Output<TagsResult>
    def tags(output_file: Optional[str] = None,
             resource_names: Optional[Sequence[str]] = None,
             resource_type: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> TagsResult
    def tags_output(output_file: Optional[pulumi.Input[str]] = None,
             resource_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
             resource_type: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[TagsResult]
    func Tags(ctx *Context, args *TagsArgs, opts ...InvokeOption) (*TagsResult, error)
    func TagsOutput(ctx *Context, args *TagsOutputArgs, opts ...InvokeOption) TagsResultOutput
    public static class Tags 
    {
        public static Task<TagsResult> InvokeAsync(TagsArgs args, InvokeOptions? opts = null)
        public static Output<TagsResult> Invoke(TagsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<TagsResult> tags(TagsArgs args, InvokeOptions options)
    public static Output<TagsResult> tags(TagsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:iam:Tags
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceType string
    The type of the resource. Valid values: User, Role.
    OutputFile string
    File name where to save data source results.
    ResourceNames List<string>
    The names of the resource.
    ResourceType string
    The type of the resource. Valid values: User, Role.
    OutputFile string
    File name where to save data source results.
    ResourceNames []string
    The names of the resource.
    resourceType String
    The type of the resource. Valid values: User, Role.
    outputFile String
    File name where to save data source results.
    resourceNames List<String>
    The names of the resource.
    resourceType string
    The type of the resource. Valid values: User, Role.
    outputFile string
    File name where to save data source results.
    resourceNames string[]
    The names of the resource.
    resource_type str
    The type of the resource. Valid values: User, Role.
    output_file str
    File name where to save data source results.
    resource_names Sequence[str]
    The names of the resource.
    resourceType String
    The type of the resource. Valid values: User, Role.
    outputFile String
    File name where to save data source results.
    resourceNames List<String>
    The names of the resource.

    Tags Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    NextToken string
    The next token of query.
    ResourceTags List<TagsResourceTag>
    The collection of query.
    ResourceType string
    The type of the resource.
    TotalCount int
    The total count of query.
    OutputFile string
    ResourceNames List<string>
    Id string
    The provider-assigned unique ID for this managed resource.
    NextToken string
    The next token of query.
    ResourceTags []TagsResourceTag
    The collection of query.
    ResourceType string
    The type of the resource.
    TotalCount int
    The total count of query.
    OutputFile string
    ResourceNames []string
    id String
    The provider-assigned unique ID for this managed resource.
    nextToken String
    The next token of query.
    resourceTags List<TagsResourceTag>
    The collection of query.
    resourceType String
    The type of the resource.
    totalCount Integer
    The total count of query.
    outputFile String
    resourceNames List<String>
    id string
    The provider-assigned unique ID for this managed resource.
    nextToken string
    The next token of query.
    resourceTags TagsResourceTag[]
    The collection of query.
    resourceType string
    The type of the resource.
    totalCount number
    The total count of query.
    outputFile string
    resourceNames string[]
    id str
    The provider-assigned unique ID for this managed resource.
    next_token str
    The next token of query.
    resource_tags Sequence[TagsResourceTag]
    The collection of query.
    resource_type str
    The type of the resource.
    total_count int
    The total count of query.
    output_file str
    resource_names Sequence[str]
    id String
    The provider-assigned unique ID for this managed resource.
    nextToken String
    The next token of query.
    resourceTags List<Property Map>
    The collection of query.
    resourceType String
    The type of the resource.
    totalCount Number
    The total count of query.
    outputFile String
    resourceNames List<String>

    Supporting Types

    TagsResourceTag

    ResourceName string
    The name of the resource.
    ResourceType string
    The type of the resource. Valid values: User, Role.
    TagKey string
    The key of the tag.
    TagValue string
    The value of the tag.
    ResourceName string
    The name of the resource.
    ResourceType string
    The type of the resource. Valid values: User, Role.
    TagKey string
    The key of the tag.
    TagValue string
    The value of the tag.
    resourceName String
    The name of the resource.
    resourceType String
    The type of the resource. Valid values: User, Role.
    tagKey String
    The key of the tag.
    tagValue String
    The value of the tag.
    resourceName string
    The name of the resource.
    resourceType string
    The type of the resource. Valid values: User, Role.
    tagKey string
    The key of the tag.
    tagValue string
    The value of the tag.
    resource_name str
    The name of the resource.
    resource_type str
    The type of the resource. Valid values: User, Role.
    tag_key str
    The key of the tag.
    tag_value str
    The value of the tag.
    resourceName String
    The name of the resource.
    resourceType String
    The type of the resource. Valid values: User, Role.
    tagKey String
    The key of the tag.
    tagValue String
    The value of the tag.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate