Help Center> Bare Metal Server> Service Overview> Permissions Management

Permissions Management

Background

If you need to grant different permissions to employees in your enterprise to access your BMS resources, IAM is a good choice for fine-grained permissions management. IAM provides identity authentication, permissions management, and access control, helping you secure access to your HUAWEI CLOUD resources.

With IAM, you can use your HUAWEI CLOUD account to create IAM users for your employees, and grant permissions to the users to control their access to specific resource types. For example, some software developers in your enterprise need to use BMS resources but must not delete them or perform any high-risk operations. To achieve this result, you can create IAM users for the software developers and grant them only the permissions required for using BMS resources.

If your HUAWEI CLOUD account does not need individual IAM users for permissions management, you may skip over this chapter.

IAM can be used free of charge. You pay only for the resources in your account. For more information about IAM, see IAM Service Overview.

BMS Permissions

By default, new IAM users do not have any permissions granted. You need to add a user to one or more groups, and assign policies or roles to these groups. The user then inherits permissions from the groups it is a member of. This process is called authorization. After authorization, the user can perform specified operations on BMS based on the permissions.

BMS is a project-level service deployed and accessed in specific physical regions. To grant BMS permissions to a user group, specify the scope as region-specific projects and select projects for the permissions to take effect. If All projects is selected, the permissions will take effect for the user group in all region-specific projects. Users need to switch to the authorized region when accessing BMS.

You can grant users permissions by using roles and policies.

  • Roles: A coarse-grained authorization mechanism provided by IAM to define permissions based on users' job responsibilities. This mechanism provides only a limited number of service-level roles for authorization. When using roles to grant permissions, you also need to assign other roles that the permissions depend on to take effect. However, roles are not an ideal choice for fine-grained authorization and secure access control.
  • Policies: A fine-grained authorization mechanism that defines permissions required to perform operations on specific cloud resources under certain conditions. This mechanism allows for more flexible policy-based authorization, meeting requirements for secure access control. For example, you can grant BMS users only the permissions for managing a certain type of BMSs. Most policies define permissions based on APIs. For the API actions supported by BMS, see Permissions Policies and Supported Actions.

Table 1 lists all the system-defined permissions supported by BMS.

Table 1 System-defined permissions supported by BMS

Role/Policy Name

Description

Role/Policy Type

BMS FullAccess

Administrator permissions for BMS. Users granted these permissions can perform all operations on BMSs.

System-defined policy

BMS CommonOperations

Common permissions for BMS. Users granted these permissions can only start, stop, restart, and query BMSs.

System-defined policy

BMS ReadOnlyAccess

Read-only permissions for BMS. Users granted these permissions can only view BMS list and details.

System-defined policy

Table 2 lists the common operations supported by each system-defined permission of BMS. Select the permissions as needed.

Table 2 Common operations supported by each system-defined permission

Operation

BMS FullAccess

BMS CommonOperations

BMS ReadOnlyAccess

Creating a BMS

x

x

Querying BMSs

Querying BMS details

Changing the name of a BMS

x

x

Starting a BMS

x

Stopping a BMS

x

Restarting a BMS

x

Attaching a data disk to a BMS

x

Detaching a data disk from a BMS

x

Reinstalling the BMS OS

x

x

Resetting the BMS password by a few clicks

x

x