Deletes kubeconfig files that may pose potential risks from a user and revokes Role-Based Access Control (RBAC) permissions on a cluster.
Operation description
-
To call this operation, make sure that you have the AliyunCSFullAccess permission.
-
You cannot revoke the permissions of an Alibaba Cloud account.
-
You cannot revoke the permissions of the account that you use to call this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:CleanClusterUserPermissions |
none |
*Cluster
|
None | None |
Request syntax
DELETE /cluster/{ClusterId}/user/{Uid}/permissions HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the cluster. |
c5b5e80b0b64a4bf6939d2d8fbbc5**** |
| Uid |
string |
Yes |
The ID of the specified Resource Access Management (RAM) user or RAM role within the Alibaba Cloud account. |
2xxxxxxxxxxxxxxxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Force |
boolean |
No |
Specifies whether to forcefully delete the specified kubeconfig files. Valid values:
|
false |
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.