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

tencentcloud.getWedataTenantRoles

Start a Neo task
Explain and create a tencentcloud.getWedataTenantRoles 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 tenant roles

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getWedataTenantRoles({
        roleDisplayName: "tf_example",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_wedata_tenant_roles(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.GetWedataTenantRoles(ctx, &tencentcloud.GetWedataTenantRolesArgs{
    			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.GetWedataTenantRoles.Invoke(new()
        {
            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.GetWedataTenantRolesArgs;
    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.getWedataTenantRoles(GetWedataTenantRolesArgs.builder()
                .roleDisplayName("tf_example")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getWedataTenantRoles
          arguments:
            roleDisplayName: tf_example
    

    Using getWedataTenantRoles

    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 getWedataTenantRoles(args: GetWedataTenantRolesArgs, opts?: InvokeOptions): Promise<GetWedataTenantRolesResult>
    function getWedataTenantRolesOutput(args: GetWedataTenantRolesOutputArgs, opts?: InvokeOptions): Output<GetWedataTenantRolesResult>
    def get_wedata_tenant_roles(id: Optional[str] = None,
                                result_output_file: Optional[str] = None,
                                role_display_name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetWedataTenantRolesResult
    def get_wedata_tenant_roles_output(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[GetWedataTenantRolesResult]
    func GetWedataTenantRoles(ctx *Context, args *GetWedataTenantRolesArgs, opts ...InvokeOption) (*GetWedataTenantRolesResult, error)
    func GetWedataTenantRolesOutput(ctx *Context, args *GetWedataTenantRolesOutputArgs, opts ...InvokeOption) GetWedataTenantRolesResultOutput

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

    public static class GetWedataTenantRoles 
    {
        public static Task<GetWedataTenantRolesResult> InvokeAsync(GetWedataTenantRolesArgs args, InvokeOptions? opts = null)
        public static Output<GetWedataTenantRolesResult> Invoke(GetWedataTenantRolesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWedataTenantRolesResult> getWedataTenantRoles(GetWedataTenantRolesArgs args, InvokeOptions options)
    public static Output<GetWedataTenantRolesResult> getWedataTenantRoles(GetWedataTenantRolesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getWedataTenantRoles:getWedataTenantRoles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ResultOutputFile string
    Used to save results.
    RoleDisplayName string
    Role Chinese display name fuzzy search, can only pass one value.
    Id string
    ResultOutputFile string
    Used to save results.
    RoleDisplayName string
    Role Chinese display name fuzzy search, can only pass one value.
    id String
    resultOutputFile String
    Used to save results.
    roleDisplayName String
    Role Chinese display name fuzzy search, can only pass one value.
    id string
    resultOutputFile string
    Used to save results.
    roleDisplayName string
    Role Chinese display name fuzzy search, can only pass one value.
    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.
    id String
    resultOutputFile String
    Used to save results.
    roleDisplayName String
    Role Chinese display name fuzzy search, can only pass one value.

    getWedataTenantRoles Result

    The following output properties are available:

    Datas List<GetWedataTenantRolesData>
    Main account role list.
    Id string
    ResultOutputFile string
    RoleDisplayName string
    Role display name.
    Datas []GetWedataTenantRolesData
    Main account role list.
    Id string
    ResultOutputFile string
    RoleDisplayName string
    Role display name.
    datas List<GetWedataTenantRolesData>
    Main account role list.
    id String
    resultOutputFile String
    roleDisplayName String
    Role display name.
    datas GetWedataTenantRolesData[]
    Main account role list.
    id string
    resultOutputFile string
    roleDisplayName string
    Role display name.
    datas Sequence[GetWedataTenantRolesData]
    Main account role list.
    id str
    result_output_file str
    role_display_name str
    Role display name.
    datas List<Property Map>
    Main account role list.
    id String
    resultOutputFile String
    roleDisplayName String
    Role display name.

    Supporting Types

    GetWedataTenantRolesData

    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