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:
- Instance
Id string ID of the ALIKAFKA Instance that owns the sasl users.
- Name
Regex string A regex string to filter results by the username.
- Output
File string
- Instance
Id string ID of the ALIKAFKA Instance that owns the sasl users.
- Name
Regex string A regex string to filter results by the username.
- Output
File string
- instance
Id string ID of the ALIKAFKA Instance that owns the sasl users.
- name
Regex string A regex string to filter results by the username.
- output
File 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.
- Instance
Id string - Names List<string>
A list of sasl usernames.
- Users
List<Pulumi.
Ali Cloud. Action Trail. Outputs. Get Sasl Users User> A list of sasl users. Each element contains the following attributes:
- Name
Regex string - Output
File string
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Id string - Names []string
A list of sasl usernames.
- Users
[]Get
Sasl Users User A list of sasl users. Each element contains the following attributes:
- Name
Regex string - Output
File string
- id string
The provider-assigned unique ID for this managed resource.
- instance
Id string - names string[]
A list of sasl usernames.
- users
Get
Sasl Users User[] A list of sasl users. Each element contains the following attributes:
- name
Regex string - output
File 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[Get
Sasl Users User] 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.