1. Packages
  2. Volcengine
  3. API Docs
  4. iam
  5. UserGroupAttachments
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.UserGroupAttachments has been deprecated in favor of volcengine.iam.getUserGroupAttachments

    Use this data source to query detailed information of iam user group attachments

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.iam.getUserGroupAttachments({
        userGroupName: "xRqElT",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.iam.get_user_group_attachments(user_group_name="xRqElT")
    
    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.GetUserGroupAttachments(ctx, &iam.GetUserGroupAttachmentsArgs{
    			UserGroupName: "xRqElT",
    		}, 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.GetUserGroupAttachments.Invoke(new()
        {
            UserGroupName = "xRqElT",
        });
    
    });
    
    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.GetUserGroupAttachmentsArgs;
    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.getUserGroupAttachments(GetUserGroupAttachmentsArgs.builder()
                .userGroupName("xRqElT")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:iam:getUserGroupAttachments
          Arguments:
            userGroupName: xRqElT
    

    Using UserGroupAttachments

    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 userGroupAttachments(args: UserGroupAttachmentsArgs, opts?: InvokeOptions): Promise<UserGroupAttachmentsResult>
    function userGroupAttachmentsOutput(args: UserGroupAttachmentsOutputArgs, opts?: InvokeOptions): Output<UserGroupAttachmentsResult>
    def user_group_attachments(output_file: Optional[str] = None,
                               user_group_name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> UserGroupAttachmentsResult
    def user_group_attachments_output(output_file: Optional[pulumi.Input[str]] = None,
                               user_group_name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[UserGroupAttachmentsResult]
    func UserGroupAttachments(ctx *Context, args *UserGroupAttachmentsArgs, opts ...InvokeOption) (*UserGroupAttachmentsResult, error)
    func UserGroupAttachmentsOutput(ctx *Context, args *UserGroupAttachmentsOutputArgs, opts ...InvokeOption) UserGroupAttachmentsResultOutput
    public static class UserGroupAttachments 
    {
        public static Task<UserGroupAttachmentsResult> InvokeAsync(UserGroupAttachmentsArgs args, InvokeOptions? opts = null)
        public static Output<UserGroupAttachmentsResult> Invoke(UserGroupAttachmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<UserGroupAttachmentsResult> userGroupAttachments(UserGroupAttachmentsArgs args, InvokeOptions options)
    public static Output<UserGroupAttachmentsResult> userGroupAttachments(UserGroupAttachmentsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:iam:UserGroupAttachments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    UserGroupName string
    The name of user group.
    OutputFile string
    File name where to save data source results.
    UserGroupName string
    The name of user group.
    OutputFile string
    File name where to save data source results.
    userGroupName String
    The name of user group.
    outputFile String
    File name where to save data source results.
    userGroupName string
    The name of user group.
    outputFile string
    File name where to save data source results.
    user_group_name str
    The name of user group.
    output_file str
    File name where to save data source results.
    userGroupName String
    The name of user group.
    outputFile String
    File name where to save data source results.

    UserGroupAttachments Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    UserGroupName string
    Users List<UserGroupAttachmentsUser>
    The collection of user.
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    UserGroupName string
    Users []UserGroupAttachmentsUser
    The collection of user.
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    userGroupName String
    users List<UserGroupAttachmentsUser>
    The collection of user.
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    userGroupName string
    users UserGroupAttachmentsUser[]
    The collection of user.
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    user_group_name str
    users Sequence[UserGroupAttachmentsUser]
    The collection of user.
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    userGroupName String
    users List<Property Map>
    The collection of user.
    outputFile String

    Supporting Types

    UserGroupAttachmentsUser

    Description string
    The description of the user.
    DisplayName string
    The display name of the user.
    JoinDate string
    The join date of the user.
    UserId int
    The id of the user.
    UserName string
    The name of the user.
    Description string
    The description of the user.
    DisplayName string
    The display name of the user.
    JoinDate string
    The join date of the user.
    UserId int
    The id of the user.
    UserName string
    The name of the user.
    description String
    The description of the user.
    displayName String
    The display name of the user.
    joinDate String
    The join date of the user.
    userId Integer
    The id of the user.
    userName String
    The name of the user.
    description string
    The description of the user.
    displayName string
    The display name of the user.
    joinDate string
    The join date of the user.
    userId number
    The id of the user.
    userName string
    The name of the user.
    description str
    The description of the user.
    display_name str
    The display name of the user.
    join_date str
    The join date of the user.
    user_id int
    The id of the user.
    user_name str
    The name of the user.
    description String
    The description of the user.
    displayName String
    The display name of the user.
    joinDate String
    The join date of the user.
    userId Number
    The id of the user.
    userName String
    The name of the user.

    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