Help Center/ API Gateway/ Service Overview/ Permissions Management
Updated on 2025-12-10 GMT+08:00

Permissions Management

If you need to assign different permissions to personnel in your enterprise to access your APIG resources, Identity and Access Management (IAM) is a good choice for fine-grained permissions management. IAM provides identity authentication, permissions management, and access control. If your HUAWEI ID does not require IAM for permissions management, you can skip this section.

IAM is a free service. You only pay for the resources in your account.

With IAM, you can control access to specific Huawei Cloud resources. For example, if you want some software developers in your enterprise to use APIG resources but do not want them to delete resources or perform any other high-risk operations, you can grant permission to use APIG resources but not permission to delete them.

IAM supports role/policy-based authorization and identity policy-based authorization.

The following table describes the differences between these two authorization models.

Table 1 Differences between role/policy-based and identity policy-based authorization

Authorization Model

Core Relationship

Permissions

Authorization Method

Scenario

Role/Policy

User-permission-authorization scope

  • System-defined role
  • System-defined policy
  • Custom policy

Assigning roles or policies to principals

To authorize a user, you need to add it to a user group first and then specify the scope of authorization. It provides a limited number of condition keys and cannot meet the requirements of fine-grained permissions control. This method is suitable for small- and medium-sized enterprises.

Identity policy

User-policy

  • System-defined policy
  • Custom identity policies
  • Assigning identity policies to principals
  • Attach identity policies to principals

You can grant permissions directly to a user. A variety of key conditions are available for more fine-grained permissions control. However, this model requires a certain level of expertise and is suitable for medium- and large-sized enterprises.

Assume that you want to grant IAM users the permissions needed to create ECSs in CN North-Beijing4 and OBS buckets in CN South-Guangzhou. With role/policy-based authorization, you need to create two custom policies and assign them to the IAM users. With identity policy-based authorization, the administrator only needs to create one custom identity policy and configure the condition key g:RequestedRegion for the policy, and then attach the policy to the principals or grant the principals access to the specified regions. Identity policy-based authorization is more flexible than role/policy-based authorization.

Policies/identity policies and actions in the two authorization models are not interoperable. You are advised to use the identity policy-based authorization model. For details about system-defined permissions, see System-defined Permissions in Role/Policy-based Authorization and Identity Policy-based Permissions Management.

For more information about IAM, see IAM Service Overview.

System-defined Permissions in Role/Policy-based Authorization

APIG supports role/policy-based authorization. New IAM users do not have any permissions assigned by default. You need to first add them to one or more groups and attach policies or roles to these groups. The users then inherit permissions from the groups and can perform specified operations on cloud services based on the permissions they have been assigned.

APIG is a project-level service deployed for specific regions. When you set Scope to Region-specific projects and select the specified projects (for example, ap-southeast-2) in the specified regions (for example, AP-Bangkok), the users only have permissions for ECSs in the selected projects. If you set Scope to All resources, the users have permissions for ECSs in all region-specific projects. When accessing APIG, the users need to switch to the authorized region.

The following table lists all the system-defined permissions for APIG. System-defined policies in role/policy-based authorization are not interoperable with those in identity policy-based authorization.

Table 2 System-defined permissions for APIG

Role/Policy Name

Description

Type

Dependency

APIG Administrator

Administrator permissions for APIG. Users granted these permissions can use all functions of APIG.

System-defined role

If a user needs to create, delete, or change resources of other services, the user must also be granted administrator permissions of the corresponding services in the same project.

APIG FullAccess

Full permissions for APIG. Users granted these permissions can use all functions of APIG.

System-defined policy

Actions required for creating yearly/monthly gateways:

  • bss:order:update
  • bss:order:pay

APIG ReadOnlyAccess

Read-only permissions for APIG. Users granted these permissions can only view APIG.

System-defined policy

None

Table 3 lists the common operations supported by system-defined permissions for APIG.

Table 3 Common operations supported by system-defined permissions

Operation

APIG Administrator

APIG FullAccess

APIG ReadOnlyAccess

Creating a dedicated gateway

x

Querying dedicated gateways

Querying details of a dedicated gateway

Updating a dedicated gateway

x

Publishing an API

x

Table 4 lists the roles or policies of the dependent services of the APIG console. You can configure roles or policies by referring to this table.

Table 4 Role/Policy dependencies of the APIG console

Console Function

Dependent Service

Role/Policy Required

Importing a CSE microservice

CSE

To import a CSE microservice, an IAM user must be granted APIG FullAccess and CSE ReadOnlyAccess.

Interconnecting with APM applications

APM

After assigning the APIG FullAccess permission to an IAM user, you need to add the following permissions: apm:apm2BusinessBusiness:list, apm:apm2Admin:create, apm:apm2Admin:update, apm:apm2Admin:delete, and apm:apm2Admin:get. Then, the IAM user can bind APM applications to an APIG gateway.

Query an LTS structuring configuration

Log Tank Service (LTS)

To query LTS structuring configurations, an IAM user must be granted the APIG FullAccess and lts:structConfig:get permissions.

Identity Policy-based Permissions Management

APIG supports authorization with identity policies. Table 5 lists all the system-defined policies for APIG. System-defined identity policies and system-defined policies in the two authorization models are not interoperable.

Table 5 System-defined policies for APIG

Identity Policy Name

Description

Type

APIGFullAccessPolicy

Full permissions for APIG.

System-defined identity policy

APIGReadOnlyAccessPolicy

Read-only permissions for APIG.

System-defined identity policy

Table 6 lists the common operations supported by system-defined policies for APIG.

Table 6 Common operations supported by system-defined policies

Operation

APIGFullAccessPolicy

APIGReadOnlyAccessPolicy

Querying dedicated gateways

Querying details of a dedicated gateway

Publishing an API or taking an API offline

x

Table 7 lists the identity policies of the dependent services of the APIG console. You can configure identity policies by referring to this table.

Table 7 Identity policies required by APIG dependency services

Console Function

Dependent Service

Identity Policy Required

Importing a CSE microservice

CSE

To import a CSE microservice, an IAM user must be granted APIGFullAccessPolicy and CSEReadOnlyPolicy.

Interconnecting with APM applications

APM

To bind an APM application list to an APIG gateway, an IAM user must be assigned the APIGFullAccessPolicy and the following permissions: apm:application:list, apm:apm2Admin:create, apm::updateAdminInfo, apm::deleteAdminInfo, and apm::getAdminInfo.

Query an LTS structuring configuration

LTS

To query LTS structuring configurations, an IAM user must be granted the APIGFullAccessPolicy and lts:structConfig:getStructConfig permissions.