EIP Permissions
If you need to assign different permissions to employees in your enterprise to control their access to your cloud resources, you can use Identity and Access Management (IAM) for fine-grained permissions management. IAM provides identity authentication, permissions management, and access control, helping you to securely access your cloud resources. If your HUAWEI ID does not need individual IAM users, you may skip this chapter.
IAM can be used free of charge. You pay only for the resources in your account.
With IAM, you can create IAM users and assign permissions to control their access to specific resources. For example, if you want some software developers in your enterprise to use EIPs but do not want them to release EIPs or perform any other high-risk operations, you can grant permissions to use EIPs but not permission to delete them.
IAM supports role/policy-based authorization and identity policy-based authorization.
|
Authorization Model |
Authorization Using |
Permissions |
Authorization Method |
Scenario |
|---|---|---|---|---|
|
Role/Policy |
User-permission-authorization scope |
|
Granting 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 is hard to provide fine-grained permissions control using authorization by user groups and a limited number of condition keys. This method is suitable for small- and medium-sized enterprises. |
|
Identity policy |
Policies |
|
|
You can authorize a user by attaching an identity policy to it. User-specific authorization and a variety of key conditions allow for more fine-grained permissions control. However, this model can be hard to set up. It requires a certain amount of expertise and is suitable for medium- and large-sized enterprises. |
Assume that you want to grant IAM users the permissions to create VPCs in CN North-Beijing4 and OBS buckets in CN South-Guangzhou. With role/policy-based authorization, the administrator needs to create two custom policies and attach both to the IAM users. With identity policy-based authorization, the administrator only needs to create one custom policy and configure the condition key g:RequestedRegion for the policy, and then attach the policy to the principals or grant the principals the access permissions 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 Role/Policy-based Authorization and Identity Policy-based Authorization.
For more information, see IAM Service Overview.
Role/Policy-based Authorization
EIP supports authorization with roles and policies. 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.
EIP 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 EIPs in the selected projects. If you set Scope to All resources, the users have permissions for images in all region-specific projects. When accessing EIPs, the users need to switch to the authorized region.
Table 2 lists all the system-defined permissions for EIP. System-defined policies in role/policy-based authorization are not interoperable with those in identity policy-based authorization.
|
Role/Policy Name |
Description |
Type |
Dependencies |
|---|---|---|---|
|
EIP FullAccess |
All permissions for EIP |
System-defined policy |
None |
|
EIP ReadOnlyAccess |
Read-only permissions on EIP |
System-defined policy |
None |
Table 3 lists the common operations supported by system-defined permissions for EIP.
|
Operation |
EIP ReadOnlyAccess |
EIP FullAccess |
|---|---|---|
|
Assigning an EIP |
x |
√ |
|
Viewing EIP list |
√ |
√ |
|
Viewing details about an EIP |
√ |
√ |
|
Releasing an EIP |
x |
√ |
|
Binding, unbinding, or updating an EIP |
x |
√ |
|
Adding an EIP to a shared bandwidth |
x |
√ |
|
Removing an EIP from a shared bandwidth |
x |
√ |
|
Assigning a bandwidth |
x |
√ |
|
Viewing bandwidth list |
√ |
√ |
|
Viewing details about a bandwidth |
√ |
√ |
|
Modifying a bandwidth |
x |
√ |
|
Deleting a bandwidth |
x |
√ |
|
Viewing an EIP tag |
√ |
√ |
|
Creating an EIP tag |
x |
√ |
|
Deleting an EIP tag |
x |
√ |
Identity Policy-based Authorization
EIP supports authorization with identity policies. Table 4 lists all system-defined identity policies for EIP. System-defined policies in identity policy-based authorization are not interoperable with those in role/policy-based authorization.
|
Policy |
Description |
Type |
|---|---|---|
|
EIPFullAccessPolicy |
All permissions for EIP |
System-defined identity policies |
|
EIPReadOnlyAccessPolicy |
Read-only permissions on EIP |
System-defined identity policies |
Table 5 lists the common operations supported by system-defined identity policies for EIP.
|
Operation |
EIPFullAccessPolicy |
EIPReadOnlyAccessPolicy |
|---|---|---|
|
Assigning an EIP |
√ |
x |
|
Batch assigning EIPs |
√ |
x |
|
Viewing EIP list |
√ |
√ |
|
Viewing the number of EIPs |
√ |
√ |
|
Viewing details about an EIP |
√ |
√ |
|
Releasing an EIP |
√ |
x |
|
Updating the EIP name and description |
√ |
x |
|
Binding an EIP to an instance |
√ |
x |
|
Unbinding an EIP from an instance |
√ |
x |
|
Adding an EIP to a shared bandwidth |
√ |
x |
|
Removing an EIP from a shared bandwidth |
√ |
x |
|
Assigning a bandwidth |
√ |
x |
|
Batch assigning bandwidths |
√ |
x |
|
Viewing bandwidth list |
√ |
√ |
|
Viewing details about a bandwidth |
√ |
√ |
|
Modifying a bandwidth |
√ |
x |
|
Deleting a bandwidth |
√ |
x |
|
Viewing an EIP tag |
√ |
√ |
|
Creating an EIP tag |
√ |
x |
|
Deleting an EIP tag |
√ |
x |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot