检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Policies that contain actions supported by both IAM and enterprise projects can take effect for user groups of both IAM and Enterprise Management. Policies that contain actions only supported by IAM projects can only take effect for IAM user groups.
"password": "********", //IAM user password "domain": { "name": "domainname" //Name of the account to which the IAM user belongs } } } }, "scope": {
Learning About ABAC To manage permissions on COC, access IAM to: Create IAM users or user groups for personnel based on your enterprise's organizational structure. Each IAM user has their own identity credentials for accessing COC resources.
Learning About RBAC This section describes how to use IAM to implement fine-grained permissions control for your COC resources. With IAM, you can: Create IAM users for employees based on your enterprise's organizational structure.
Listing IAM users iam:users:listUsersV5 Used to synchronize personnel information during personnel management. Obtaining Information about an IAM user iam:users:getUserV5 Used to synchronize personnel information during personnel management.
Solutions Log in to the IAM console as an administrator. In the user list, click Authorize in the row that contains the target user. Figure 1 Authorizing an IAM user Set Authorization Model to RBAC.
For security purposes, create Identity and Access Management (IAM) users and grant them permissions for routine management. User An IAM user is created by an account in IAM to use cloud services. Each IAM user has its own identity credentials (password and access keys).
For example, to obtain an IAM token in the CN-Hong Kong region, obtain the endpoint of IAM (iam.ap-southeast-1.myhuaweicloud.com) for this region and the resource-path (/v3/auth/tokens) in the URI of the API used to obtain a user token.
The basic user data in the O&M Engineer Management page is synchronized from IAM and is used by multiple basic functional modules, such as to-do task creation, scheduled O&M, notification management, and incident center.
username) Minimum length: 1 character Maximum length: 64 characters reviewer_id String Reviewer ID (IAM user ID) Minimum length: 0 character Maximum length: 32 characters Request Example None Response Example None Status Code Status Code Description 200 Details About a Custom Script
Create a policy: Access the IAM service, create a policy on the policy page.
The API used to obtain a project ID is GET https://{Endpoint}/v3/projects, where {Endpoint} indicates the IAM endpoint. You can obtain the IAM endpoint from Regions and Endpoints. For details about API authentication, see Authentication. The following is an example response.
IAM provides identity authentication, permissions management, and access control, helping you to securely access your Huawei Cloud resources. If your HUAWEI ID does not require IAM for permissions management, you can skip this section. IAM can be used on Huawei Cloud for free.
The action IDs are as follows: IAM 3.0 permissions: "iam:roles:listRoles", "iam:permissions:grantRoleToAgency", "iam:permissions:grantRoleToAgencyOnDomain", "iam:roles:createRole", "iam:groups:listGroups", "iam:permissions:listRoleAssignments", "iam:permissions:grantRoleToGroupOnDomain
Solutions Log in to the IAM console as an administrator. Choose Permissions > Policies/Roles and click Create Custom Policy. Figure 1 Creating a custom policy Set the policy content, select CloudOpsCenter, and select the operations you want to authorize by enterprise project.
Agency: name of the agency in IAM Project ID: ID of the project to which the target object belongs. Location concurrency: This parameter is optional.
If you go to the Secure Score area on the Overview page by creating an IAM 3.0 delegation and switching the role, and set the policy authorization scope to global service resources, you need to add the SecMaster ReadOnlyAccess-All resources authorization for the delegation.
username) Minimum length: 1 character Maximum length: 64 characters reviewer_id String Reviewer ID (IAM user ID) Minimum length: 0 character Maximum length: 32 characters Status code: 400 Table 6 Response body parameters Parameter Type Description error_code String Error code Minimum
username) Minimum length: 1 character Maximum length: 64 characters reviewer_id Yes String Reviewer ID (IAM user ID) Minimum length: 0 character Maximum length: 32 characters Table 5 ScriptParamDefine Parameter Mandatory or Not Type Description param_name Yes String The parameter
Access control You can use IAM to securely control access to your COC resources. For more information about IAM and COC permissions management, see Permissions Management. Parent topic: Security