In a Container Service for Kubernetes (ACK) cluster, non-cluster creators, Resource Access Management (RAM) users, and RAM roles do not have any Role-Based Access Control (RBAC) permissions in the cluster by default. You can call this operation to specify the resources that can be accessed, permission scope, and predefined roles. This helps you better manage the access control on resources in ACK clusters.
Operation description
Precautions:
You can update the permissions of a RAM user or RAM role on a cluster by using full update or incremental update. If you use full update, the existing permissions of the RAM user or RAM role on the cluster are overwritten. You must specify all the permissions that you want to grant to the RAM user or RAM role in the request parameters when you call the operation. If you use incremental update, you can grant permissions to or revoke permissions from the RAM user or RAM role on the cluster. In this case, only the permissions that you specify in the request parameters when you call the operation are granted or revoked, other permissions of the RAM user or RAM role on the cluster are not affected.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:UpdateUserPermissions |
none |
*All Resource
|
None | None |
Request syntax
POST /permissions/users/{uid}/update HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| uid |
string |
No |
The ID of the RAM user or RAM role whose permissions you want to update. |
2367**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
array<object> |
No |
The request body. |
|
|
object |
No |
The request parameters. |
||
| cluster |
string |
No |
The ID of the cluster on which you want to grant permissions to the RAM role or RAM role.
|
c796c60*** |
| is_custom |
boolean |
No |
Specifies whether to assign a custom role to the RAM user or RAM role. If you want to assign a custom role to the RAM user or RAM role, set |
false |
| role_name |
string |
No |
The predefined role name. Valid values:
Note:
|
ops |
| role_type |
string |
No |
The authorization type. Valid values:
|
cluster |
| namespace |
string |
No |
The namespace that you want to authorize the RAM user or RAM role to manage. This parameter is required only if you set role_type to namespace. |
test |
| is_ram_role |
boolean |
No |
Specifies whether to use a RAM role to grant permissions. |
false |
| mode |
string |
No |
The authorization method. Valid values:
Default value: |
apply |
Response elements
|
Element |
Type |
Description |
Example |
None defined.
Examples
Success response
JSON format
{}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.