1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getWedataProjectRoles
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

tencentcloud.getWedataProjectRoles

Start a Neo task
Explain and create a tencentcloud.getWedataProjectRoles resource
tencentcloud logo
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

    Use this data source to query detailed information of WeData project roles

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getWedataProjectRoles({
        projectId: "2982667120655491072",
        roleDisplayName: "tf_example",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_wedata_project_roles(project_id="2982667120655491072",
        role_display_name="tf_example")
    
    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.GetWedataProjectRoles(ctx, &tencentcloud.GetWedataProjectRolesArgs{
    			ProjectId:       "2982667120655491072",
    			RoleDisplayName: pulumi.StringRef("tf_example"),
    		}, 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 example = Tencentcloud.GetWedataProjectRoles.Invoke(new()
        {
            ProjectId = "2982667120655491072",
            RoleDisplayName = "tf_example",
        });
    
    });
    
    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.GetWedataProjectRolesArgs;
    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 example = TencentcloudFunctions.getWedataProjectRoles(GetWedataProjectRolesArgs.builder()
                .projectId("2982667120655491072")
                .roleDisplayName("tf_example")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getWedataProjectRoles
          arguments:
            projectId: '2982667120655491072'
            roleDisplayName: tf_example
    

    Using getWedataProjectRoles

    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 getWedataProjectRoles(args: GetWedataProjectRolesArgs, opts?: InvokeOptions): Promise<GetWedataProjectRolesResult>
    function getWedataProjectRolesOutput(args: GetWedataProjectRolesOutputArgs, opts?: InvokeOptions): Output<GetWedataProjectRolesResult>
    def get_wedata_project_roles(id: Optional[str] = None,
                                 project_id: Optional[str] = None,
                                 result_output_file: Optional[str] = None,
                                 role_display_name: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetWedataProjectRolesResult
    def get_wedata_project_roles_output(id: Optional[pulumi.Input[str]] = None,
                                 project_id: Optional[pulumi.Input[str]] = None,
                                 result_output_file: Optional[pulumi.Input[str]] = None,
                                 role_display_name: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetWedataProjectRolesResult]
    func GetWedataProjectRoles(ctx *Context, args *GetWedataProjectRolesArgs, opts ...InvokeOption) (*GetWedataProjectRolesResult, error)
    func GetWedataProjectRolesOutput(ctx *Context, args *GetWedataProjectRolesOutputArgs, opts ...InvokeOption) GetWedataProjectRolesResultOutput

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

    public static class GetWedataProjectRoles 
    {
        public static Task<GetWedataProjectRolesResult> InvokeAsync(GetWedataProjectRolesArgs args, InvokeOptions? opts = null)
        public static Output<GetWedataProjectRolesResult> Invoke(GetWedataProjectRolesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWedataProjectRolesResult> getWedataProjectRoles(GetWedataProjectRolesArgs args, InvokeOptions options)
    public static Output<GetWedataProjectRolesResult> getWedataProjectRoles(GetWedataProjectRolesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getWedataProjectRoles:getWedataProjectRoles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    Project ID.
    Id string
    ResultOutputFile string
    Used to save results.
    RoleDisplayName string
    Role Chinese display name fuzzy search, can only pass one value.
    ProjectId string
    Project ID.
    Id string
    ResultOutputFile string
    Used to save results.
    RoleDisplayName string
    Role Chinese display name fuzzy search, can only pass one value.
    projectId String
    Project ID.
    id String
    resultOutputFile String
    Used to save results.
    roleDisplayName String
    Role Chinese display name fuzzy search, can only pass one value.
    projectId string
    Project ID.
    id string
    resultOutputFile string
    Used to save results.
    roleDisplayName string
    Role Chinese display name fuzzy search, can only pass one value.
    project_id str
    Project ID.
    id str
    result_output_file str
    Used to save results.
    role_display_name str
    Role Chinese display name fuzzy search, can only pass one value.
    projectId String
    Project ID.
    id String
    resultOutputFile String
    Used to save results.
    roleDisplayName String
    Role Chinese display name fuzzy search, can only pass one value.

    getWedataProjectRoles Result

    The following output properties are available:

    Id string
    Items List<GetWedataProjectRolesItem>
    Role information.
    ProjectId string
    ResultOutputFile string
    RoleDisplayName string
    Role display name.
    Id string
    Items []GetWedataProjectRolesItem
    Role information.
    ProjectId string
    ResultOutputFile string
    RoleDisplayName string
    Role display name.
    id String
    items List<GetWedataProjectRolesItem>
    Role information.
    projectId String
    resultOutputFile String
    roleDisplayName String
    Role display name.
    id string
    items GetWedataProjectRolesItem[]
    Role information.
    projectId string
    resultOutputFile string
    roleDisplayName string
    Role display name.
    id String
    items List<Property Map>
    Role information.
    projectId String
    resultOutputFile String
    roleDisplayName String
    Role display name.

    Supporting Types

    GetWedataProjectRolesItem

    Description string
    Description.
    RoleDisplayName string
    Role Chinese display name fuzzy search, can only pass one value.
    RoleId string
    Role ID.
    RoleName string
    Role name.
    Description string
    Description.
    RoleDisplayName string
    Role Chinese display name fuzzy search, can only pass one value.
    RoleId string
    Role ID.
    RoleName string
    Role name.
    description String
    Description.
    roleDisplayName String
    Role Chinese display name fuzzy search, can only pass one value.
    roleId String
    Role ID.
    roleName String
    Role name.
    description string
    Description.
    roleDisplayName string
    Role Chinese display name fuzzy search, can only pass one value.
    roleId string
    Role ID.
    roleName string
    Role name.
    description str
    Description.
    role_display_name str
    Role Chinese display name fuzzy search, can only pass one value.
    role_id str
    Role ID.
    role_name str
    Role name.
    description String
    Description.
    roleDisplayName String
    Role Chinese display name fuzzy search, can only pass one value.
    roleId String
    Role ID.
    roleName String
    Role name.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate