get Users
This data source provides the Bastionhost Users of the current Alibaba Cloud user.
NOTE: Available in v1.133.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.bastionhost.BastionhostFunctions;
import com.pulumi.alicloud.bastionhost.inputs.GetUsersArgs;
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 ids = BastionhostFunctions.getUsers(GetUsersArgs.builder()
.instanceId("example_value")
.ids(
"1",
"10")
.build());
ctx.export("bastionhostUserId1", ids.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
final var nameRegex = BastionhostFunctions.getUsers(GetUsersArgs.builder()
.instanceId("example_value")
.nameRegex("^my-User")
.build());
ctx.export("bastionhostUserId2", nameRegex.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
}
}
Return
A collection of values returned by getUsers.
Parameters
A collection of arguments for invoking getUsers.
Return
A collection of values returned by getUsers.
See also
Parameters
Specify the New Created the User's Display Name. Supports up to 128 Characters.
A list of User IDs.
You Want to Query the User the Bastion Host ID of.
Specify the New of the User That Created a Different Mobile Phone Number from Your.
A regex string to filter results by User name.
File name where to save data source results (after running pulumi preview
).
Specify the New of the User That Created the Source. Valid Values: Local: Local User RAM: Ram User.
Specify the Newly Created User Is Uniquely Identified. Indicates That the Parameter Is a Bastion Host Corresponding to the User with the Ram User's Unique Identifier. The Newly Created User Source Grant Permission to a RAM User (That Is, Source Used as a Ram), this Parameter Is Required. You Can Call Access Control of Listusers Interface from the Return Data Userid to Obtain the Parameters.
The status of the resource.
Specify the New User Name. This Parameter Is Only by Letters, Lowercase Letters, Numbers, and Underscores (_), Supports up to 128 Characters.
Return
A collection of values returned by getUsers.
See also
Parameters
Builder for com.pulumi.alicloud.bastionhost.kotlin.inputs.GetUsersPlainArgs.