Updated on 2023-06-21 GMT+08:00

Introduction

This section describes fine-grained permissions management for your IMS. If your Huawei account does not need individual IAM users, you may skip over this section.

By default, new IAM users do not have any permissions assigned. 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 cloud services based on the permissions.

You can grant user permissions by using roles and policies.

  • Roles: A type of coarse-grained authorization mechanism that defines permissions related to user responsibilities. This mechanism provides only a limited number of service-level roles for authorization.
  • Policies: A type of fine-grained authorization mechanism that defines permissions required to perform operations on specific cloud resources under certain conditions. This mechanism allows for API-level policies for authorization, meeting requirements for secure access control.

Policy-based authorization is useful if you want to allow or deny the access to an API.

An account has all of the permissions required to call all APIs, but IAM users must have the required permissions specifically assigned. The permissions required for calling an API are determined by the actions supported by the API. Only users who have been granted permissions allowing the actions can call the API successfully. For example, if an IAM user queries images using an API, the user must have been granted permissions that allow the ims:images:list action.

Supported Actions

IMS provides system-defined policies. You can also create custom policies for more specific access control. The following are related concepts:

  • Permissions: Allow or deny certain operations.
  • APIs: APIs that will be called for performing certain operations.
  • Actions: Operations that will be allowed or denied.
  • Dependent actions: When assigning permissions for an action, you also need to assign permissions for the dependent actions.
  • IAM projects or enterprise projects: Applicable scope of custom policies. For example, if an action supports both IAM and enterprise projects, the policy that contains this action will take effect for user groups assigned in IAM and Enterprise Management. If an action supports only IAM projects, the policy will take effect only for user groups assigned in IAM. For details about the differences between IAM and enterprise projects, see What Are the Differences Between IAM and Enterprise Management?

√: supported; x: not supported

IMS supports the following actions that can be defined in custom policies:

  • Image Management, including actions supported by IMS's image management APIs, such as the APIs for querying images, updating image information, creating images, registering images, and exporting images.
  • Image Tagging, including actions supported by IMS's tag management APIs, such as the APIs for adding tags, deleting tags, and querying images.
  • Image Schema, including actions supported by IMS's image schema management APIs, such as the APIs for querying an image schema, querying an image list schema, querying an image sharing member schema, and query an image sharing member list schema.
  • Image Sharing, including actions supported by IMS's shared image APIs, such as the APIs for adding an image sharing member, updating the status of image sharing members, querying image sharing member details, and deleting an image sharing member.
  • Image Replication, including actions supported by IMS's image replication APIs, such as the API for replicating an image within a region.
  • Image Quota, including actions supported by IMS's image quota APIs, such as the API for querying image quotas.

Error messages returned for native OpenStack APIs are in XML format. JSON format of the fine-grained policy is not supported.