Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
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 getTags
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 getTags(args: GetTagsArgs, opts?: InvokeOptions): Promise<GetTagsResult>
function getTagsOutput(args: GetTagsOutputArgs, opts?: InvokeOptions): Output<GetTagsResult>def get_tags(output_file: Optional[str] = None,
resource_names: Optional[Sequence[str]] = None,
resource_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTagsResult
def get_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[GetTagsResult]func GetTags(ctx *Context, args *GetTagsArgs, opts ...InvokeOption) (*GetTagsResult, error)
func GetTagsOutput(ctx *Context, args *GetTagsOutputArgs, opts ...InvokeOption) GetTagsResultOutput> Note: This function is named GetTags in the Go SDK.
public static class GetTags
{
public static Task<GetTagsResult> InvokeAsync(GetTagsArgs args, InvokeOptions? opts = null)
public static Output<GetTagsResult> Invoke(GetTagsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTagsResult> getTags(GetTagsArgs args, InvokeOptions options)
public static Output<GetTagsResult> getTags(GetTagsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:iam/getTags:getTags
arguments:
# arguments dictionaryThe following arguments are supported:
- Resource
Type string - The type of the resource. Valid values: User, Role.
- Output
File string - File name where to save data source results.
- Resource
Names List<string> - The names of the resource.
- Resource
Type string - The type of the resource. Valid values: User, Role.
- Output
File string - File name where to save data source results.
- Resource
Names []string - The names of the resource.
- resource
Type String - The type of the resource. Valid values: User, Role.
- output
File String - File name where to save data source results.
- resource
Names List<String> - The names of the resource.
- resource
Type string - The type of the resource. Valid values: User, Role.
- output
File string - File name where to save data source results.
- resource
Names 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.
- resource
Type String - The type of the resource. Valid values: User, Role.
- output
File String - File name where to save data source results.
- resource
Names List<String> - The names of the resource.
getTags Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Next
Token string - The next token of query.
-
List<Get
Tags Resource Tag> - The collection of query.
- Resource
Type string - The type of the resource.
- Total
Count int - The total count of query.
- Output
File string - Resource
Names List<string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Next
Token string - The next token of query.
-
[]Get
Tags Resource Tag - The collection of query.
- Resource
Type string - The type of the resource.
- Total
Count int - The total count of query.
- Output
File string - Resource
Names []string
- id String
- The provider-assigned unique ID for this managed resource.
- next
Token String - The next token of query.
-
List<Get
Tags Resource Tag> - The collection of query.
- resource
Type String - The type of the resource.
- total
Count Integer - The total count of query.
- output
File String - resource
Names List<String>
- id string
- The provider-assigned unique ID for this managed resource.
- next
Token string - The next token of query.
-
Get
Tags Resource Tag[] - The collection of query.
- resource
Type string - The type of the resource.
- total
Count number - The total count of query.
- output
File string - resource
Names string[]
- id str
- The provider-assigned unique ID for this managed resource.
- next_
token str - The next token of query.
-
Sequence[Get
Tags Resource Tag] - 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.
- next
Token String - The next token of query.
- List<Property Map>
- The collection of query.
- resource
Type String - The type of the resource.
- total
Count Number - The total count of query.
- output
File String - resource
Names List<String>
Supporting Types
GetTagsResourceTag
- Resource
Name string - The name of the resource.
- Resource
Type string - The type of the resource. Valid values: User, Role.
- Tag
Key string - The key of the tag.
- Tag
Value string - The value of the tag.
- Resource
Name string - The name of the resource.
- Resource
Type string - The type of the resource. Valid values: User, Role.
- Tag
Key string - The key of the tag.
- Tag
Value string - The value of the tag.
- resource
Name String - The name of the resource.
- resource
Type String - The type of the resource. Valid values: User, Role.
- tag
Key String - The key of the tag.
- tag
Value String - The value of the tag.
- resource
Name string - The name of the resource.
- resource
Type string - The type of the resource. Valid values: User, Role.
- tag
Key string - The key of the tag.
- tag
Value 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.
- resource
Name String - The name of the resource.
- resource
Type String - The type of the resource. Valid values: User, Role.
- tag
Key String - The key of the tag.
- tag
Value 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
volcengineTerraform Provider.
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
