检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
For example, if you want to create an IAM user, use the endpoint of any region because IAM is a global service.
Access Control CodeArts Pipeline supports access control through IAM permissions.
For example, if status code 201 is returned after calling the API for creating an IAM user as an administrator, the request has succeeded. Response Header Similar to a request, a response also has a header, for example, Content-Type.
For security purposes, create IAM users and grant them permissions for routine management. User An identity and access management (IAM) user is created using an account to use cloud services. Each IAM user has their own identity credentials (password and access keys).
Access Key Id The AK of the IAM user to connect. Obtain it from the My Credentials page. For details, see Access Keys. Secret Access Key The SK of the IAM user to connect. Obtain it from the My Credentials page. For details, see Access Keys.
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 a sample response.
IAM Authentication If you need to enable IAM authentication, add the user IAM token to the API request header.
//TODO: To access a global service, such as IAM, DNS, CDN, and TMS, add the X-Domain-Id header to specify an account ID. //TODO: To add a header, find "Add special headers" in the AccessServiceImple.java file.
It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.
It can be obtained by calling the IAM API. The value of X-Subject-Token in the response header is the user token. Constraints: None. Value range: None. Default value: None. X-Language No String Language. The value can be zh-cn (Chinese) or en-us (English).
It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.
It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.
It can be obtained by calling the IAM API. The value of X-Subject-Token in the response header is the user token. Constraints: None. Value range: None. Default value: None.
Agency URN Unique identifier of IAM agency. If set: uses this agency identity and permissions to access other cloud services. If not set: uses the operator's identity and permissions. - Project Project that a pipeline belongs to.
It can be obtained by calling the IAM API. The value of X-Subject-Token in the response header is the user token. Constraints: None. Value range: None. Default value: None.
It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.
It can be obtained by calling the IAM API. The value of X-Subject-Token in the response header is the user token. Constraints: None. Value range: None. Default value: None.
It can be obtained by calling the IAM API. The value of X-Subject-Token in the response header is the user token. Constraints: None. Value range: None. Default value: None. Table 4 FormData parameters Parameter Mandatory Type Description upload_file Yes File Icon file.
It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.
It can be obtained by calling the IAM API. The value of X-Subject-Token in the response header is the user token. Constraints: None. Value range: None. Default value: None.