Creates a new ServerBMCUsersResource instance
The TenantOS client instance
The ID of the server to manage BMC users for
Create a new BMC user
Creates a new BMC user with the provided configuration. Note that this method creates a basic user - use createUserWithPasswordAndPrivilege() for a more complete user setup.
Partial BMC user data
Promise that resolves to the created BMC user
Create a BMC user with password and privilege in one operation
This is the recommended method for creating BMC users as it sets up the username, password, and privilege level in a single atomic operation. This ensures the user is immediately usable for BMC operations.
User creation data including username, password, and privilege
Promise that resolves to the created BMC user
const adminUser = await bmcUsers.createUserWithPasswordAndPrivilege({
username: 'admin',
password: 'secure-password-123',
privilege: 'administrator'
});
const operatorUser = await bmcUsers.createUserWithPasswordAndPrivilege({
username: 'operator',
password: 'operator-password',
privilege: 'operator'
});
List all BMC users for the server
Retrieves a list of all BMC users configured on the server's baseboard management controller. This includes both active and inactive users.
Promise that resolves to an array of BMC users
ProtectedrequestMake a request to the API with automatic error handling
ProtectedvalidateValidate that an ID is a positive integer
ProtectedvalidateValidate required string field
Server BMC (Baseboard Management Controller) User Management Resource
This resource provides comprehensive management of BMC users for a specific server. BMC users are used for out-of-band management operations like power control, console access, and hardware monitoring. This class allows you to create, update, delete, and configure BMC users with appropriate privileges and access controls.
BMC user management is critical for server administration as it provides:
Example