检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Making an API Request This section describes the structure of a REST API request, and calls the IAM API for obtaining a user token as an example. The obtained token can then be used to authenticate the calling of other APIs.
User roles are essentially IAM permissions. To authorize IAM permissions, an administrator needs to create IAM users, add them to user groups, and assign policies or roles to the user groups. Users in the user groups also obtain the corresponding permissions.
For security purposes, create IAM users and assign them permissions for routine management. IAM user An Identity and Access Management (IAM) user is created using an account and can use cloud services. Each IAM user has its own identity credentials (password and access keys).
IAM users created without being added to any groups do not have permissions. Administrators can assign permissions to these users on the IAM console. Then users can use cloud resources in the account based on the assigned permissions. Custom roles do not have preset permissions.
{Endpoint} indicates the endpoint of IAM, which can be obtained from Endpoints. For details about API authentication, see Authentication.
When using a token for authentication, cache it to prevent frequently calling the Identity and Access Management (IAM) API for obtaining a user token. A token specifies temporary permissions in a computer system.