检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Tutorials for RBAC This section describes how to use Identity and Access Management (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.
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 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.
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.
Creating an IAM User You can use your account to create IAM users to ensure the security of accounts and resources. For more information about IAM users, see Creating an IAM User. This part describes how to create an IAM user with the COC access permission.
Figure 5 To-do ticket list An IAM user can only view the tickets related to this user on the All To-do Tickets tab page, and cannot view those related to other IAM users on this tab page. Viewing Pending Tickets Log in to COC.
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.
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).
"password": "********", //IAM user password "domain": { "name": "domainname" //Name of the account to which the IAM user belongs } } } }, "scope": {
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
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.
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.
Identity and Access Management (IAM) RBAC and ABAC Authorization Models
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
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
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 4 ScriptParamDefine Parameter Mandatory or Not Type Description param_name Yes String The parameter
The basic user data on the O&M Engineer Management page is synchronized from Identity and Access Management (IAM) and is used by multiple basic functional modules in creating to-do tasks, performing scheduled O&M, managing notifications, managing incidents, and more.
The basic user data on the O&M Engineer Management page is synchronized from Identity and Access Management (IAM) and is used by multiple basic functional modules in creating to-do tasks, performing scheduled O&M, managing notifications, managing incidents, and more.