1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getCkafkaUsers
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getCkafkaUsers

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed user information of Ckafka

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = tencentcloud.getCkafkaUsers({
        accountName: "test",
        instanceId: "ckafka-f9ife4zz",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.get_ckafka_users(account_name="test",
        instance_id="ckafka-f9ife4zz")
    
    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.GetCkafkaUsers(ctx, &tencentcloud.GetCkafkaUsersArgs{
    			AccountName: pulumi.StringRef("test"),
    			InstanceId:  "ckafka-f9ife4zz",
    		}, 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 foo = Tencentcloud.GetCkafkaUsers.Invoke(new()
        {
            AccountName = "test",
            InstanceId = "ckafka-f9ife4zz",
        });
    
    });
    
    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.GetCkafkaUsersArgs;
    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 foo = TencentcloudFunctions.getCkafkaUsers(GetCkafkaUsersArgs.builder()
                .accountName("test")
                .instanceId("ckafka-f9ife4zz")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          function: tencentcloud:getCkafkaUsers
          arguments:
            accountName: test
            instanceId: ckafka-f9ife4zz
    

    Using getCkafkaUsers

    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 getCkafkaUsers(args: GetCkafkaUsersArgs, opts?: InvokeOptions): Promise<GetCkafkaUsersResult>
    function getCkafkaUsersOutput(args: GetCkafkaUsersOutputArgs, opts?: InvokeOptions): Output<GetCkafkaUsersResult>
    def get_ckafka_users(account_name: Optional[str] = None,
                         id: Optional[str] = None,
                         instance_id: Optional[str] = None,
                         result_output_file: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetCkafkaUsersResult
    def get_ckafka_users_output(account_name: Optional[pulumi.Input[str]] = None,
                         id: Optional[pulumi.Input[str]] = None,
                         instance_id: Optional[pulumi.Input[str]] = None,
                         result_output_file: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetCkafkaUsersResult]
    func GetCkafkaUsers(ctx *Context, args *GetCkafkaUsersArgs, opts ...InvokeOption) (*GetCkafkaUsersResult, error)
    func GetCkafkaUsersOutput(ctx *Context, args *GetCkafkaUsersOutputArgs, opts ...InvokeOption) GetCkafkaUsersResultOutput

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

    public static class GetCkafkaUsers 
    {
        public static Task<GetCkafkaUsersResult> InvokeAsync(GetCkafkaUsersArgs args, InvokeOptions? opts = null)
        public static Output<GetCkafkaUsersResult> Invoke(GetCkafkaUsersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCkafkaUsersResult> getCkafkaUsers(GetCkafkaUsersArgs args, InvokeOptions options)
    public static Output<GetCkafkaUsersResult> getCkafkaUsers(GetCkafkaUsersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCkafkaUsers:getCkafkaUsers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Id of the ckafka instance.
    AccountName string
    Account name used when query ckafka users' infos. Could be a substr of user name.
    Id string
    ResultOutputFile string
    Used to save results.
    InstanceId string
    Id of the ckafka instance.
    AccountName string
    Account name used when query ckafka users' infos. Could be a substr of user name.
    Id string
    ResultOutputFile string
    Used to save results.
    instanceId String
    Id of the ckafka instance.
    accountName String
    Account name used when query ckafka users' infos. Could be a substr of user name.
    id String
    resultOutputFile String
    Used to save results.
    instanceId string
    Id of the ckafka instance.
    accountName string
    Account name used when query ckafka users' infos. Could be a substr of user name.
    id string
    resultOutputFile string
    Used to save results.
    instance_id str
    Id of the ckafka instance.
    account_name str
    Account name used when query ckafka users' infos. Could be a substr of user name.
    id str
    result_output_file str
    Used to save results.
    instanceId String
    Id of the ckafka instance.
    accountName String
    Account name used when query ckafka users' infos. Could be a substr of user name.
    id String
    resultOutputFile String
    Used to save results.

    getCkafkaUsers Result

    The following output properties are available:

    Id string
    InstanceId string
    UserLists List<GetCkafkaUsersUserList>
    A list of ckafka users. Each element contains the following attributes:
    AccountName string
    Account name of user.
    ResultOutputFile string
    Id string
    InstanceId string
    UserLists []GetCkafkaUsersUserList
    A list of ckafka users. Each element contains the following attributes:
    AccountName string
    Account name of user.
    ResultOutputFile string
    id String
    instanceId String
    userLists List<GetCkafkaUsersUserList>
    A list of ckafka users. Each element contains the following attributes:
    accountName String
    Account name of user.
    resultOutputFile String
    id string
    instanceId string
    userLists GetCkafkaUsersUserList[]
    A list of ckafka users. Each element contains the following attributes:
    accountName string
    Account name of user.
    resultOutputFile string
    id str
    instance_id str
    user_lists Sequence[GetCkafkaUsersUserList]
    A list of ckafka users. Each element contains the following attributes:
    account_name str
    Account name of user.
    result_output_file str
    id String
    instanceId String
    userLists List<Property Map>
    A list of ckafka users. Each element contains the following attributes:
    accountName String
    Account name of user.
    resultOutputFile String

    Supporting Types

    GetCkafkaUsersUserList

    AccountName string
    Account name used when query ckafka users' infos. Could be a substr of user name.
    CreateTime string
    Creation time of the account.
    UpdateTime string
    The last update time of the account.
    AccountName string
    Account name used when query ckafka users' infos. Could be a substr of user name.
    CreateTime string
    Creation time of the account.
    UpdateTime string
    The last update time of the account.
    accountName String
    Account name used when query ckafka users' infos. Could be a substr of user name.
    createTime String
    Creation time of the account.
    updateTime String
    The last update time of the account.
    accountName string
    Account name used when query ckafka users' infos. Could be a substr of user name.
    createTime string
    Creation time of the account.
    updateTime string
    The last update time of the account.
    account_name str
    Account name used when query ckafka users' infos. Could be a substr of user name.
    create_time str
    Creation time of the account.
    update_time str
    The last update time of the account.
    accountName String
    Account name used when query ckafka users' infos. Could be a substr of user name.
    createTime String
    Creation time of the account.
    updateTime String
    The last update time of the account.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack