GetSaslUsers

This data source provides a list of ALIKAFKA Sasl users in an Alibaba Cloud account according to the specified filters.

NOTE: Available in 1.66.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var saslUsersDs = Output.Create(AliCloud.ActionTrail.GetSaslUsers.InvokeAsync(new AliCloud.ActionTrail.GetSaslUsersArgs
        {
            InstanceId = "xxx",
            NameRegex = "username",
            OutputFile = "saslUsers.txt",
        }));
        this.FirstSaslUsername = saslUsersDs.Apply(saslUsersDs => saslUsersDs.Users[0].Username);
    }

    [Output("firstSaslUsername")]
    public Output<string> FirstSaslUsername { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

sasl_users_ds = alicloud.actiontrail.get_sasl_users(instance_id="xxx",
    name_regex="username",
    output_file="saslUsers.txt")
pulumi.export("firstSaslUsername", sasl_users_ds.users[0]["username"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const saslUsersDs = pulumi.output(alicloud.actiontrail.getSaslUsers({
    instanceId: "xxx",
    nameRegex: "username",
    outputFile: "saslUsers.txt",
}, { async: true }));

export const firstSaslUsername = saslUsersDs.users[0].username;

Using GetSaslUsers

function getSaslUsers(args: GetSaslUsersArgs, opts?: InvokeOptions): Promise<GetSaslUsersResult>
function  get_sasl_users(instance_id=None, name_regex=None, output_file=None, opts=None)
func GetSaslUsers(ctx *Context, args *GetSaslUsersArgs, opts ...InvokeOption) (*GetSaslUsersResult, error)
public static class GetSaslUsers {
    public static Task<GetSaslUsersResult> InvokeAsync(GetSaslUsersArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

InstanceId string

ID of the ALIKAFKA Instance that owns the sasl users.

NameRegex string

A regex string to filter results by the username.

OutputFile string
InstanceId string

ID of the ALIKAFKA Instance that owns the sasl users.

NameRegex string

A regex string to filter results by the username.

OutputFile string
instanceId string

ID of the ALIKAFKA Instance that owns the sasl users.

nameRegex string

A regex string to filter results by the username.

outputFile string
instance_id str

ID of the ALIKAFKA Instance that owns the sasl users.

name_regex str

A regex string to filter results by the username.

output_file str

GetSaslUsers Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

InstanceId string
Names List<string>

A list of sasl usernames.

Users List<Pulumi.AliCloud.ActionTrail.Outputs.GetSaslUsersUser>

A list of sasl users. Each element contains the following attributes:

NameRegex string
OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

InstanceId string
Names []string

A list of sasl usernames.

Users []GetSaslUsersUser

A list of sasl users. Each element contains the following attributes:

NameRegex string
OutputFile string
id string

The provider-assigned unique ID for this managed resource.

instanceId string
names string[]

A list of sasl usernames.

users GetSaslUsersUser[]

A list of sasl users. Each element contains the following attributes:

nameRegex string
outputFile string
id str

The provider-assigned unique ID for this managed resource.

instance_id str
names List[str]

A list of sasl usernames.

users List[GetSaslUsersUser]

A list of sasl users. Each element contains the following attributes:

name_regex str
output_file str

Supporting Types

GetSaslUsersUser

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Password string

The password of the user.

Username string

The username of the user.

Password string

The password of the user.

Username string

The username of the user.

password string

The password of the user.

username string

The username of the user.

password str

The password of the user.

username str

The username of the user.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.