Delete cluster user
The table below lists only the request parameters specific to this API and some common parameters. For more information, see common parameters.
Parameter | Type | Required | Example value | Description |
|---|---|---|---|---|
Action | String | Yes | DeleteClusterUser | The operation to be performed. Value: DeleteClusterUser. |
Version | String | Yes | 2023-08-15 | API version. Value: 2023-08-15. |
ClusterId | String | Yes | emr-xxx | Cluster ID |
UserName | String | Yes | emr_user | Cluster username |
The table below lists only the response parameters specific to this API. For more information, see response structure.
Parameter | Type | Example value | Description |
|---|---|---|---|
Result | String | null | Delete user response |
POST /?Action=DeleteClusterUser&Version=2023-08-15 HTTP/1.1 Host: emr.cn-beijing.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20240701T022750Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240701/cn-beijing/emr/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "ClusterId": "emr-xxx", "UserName": "emr_user" }
{ "ResponseMetadata": { "RequestId": "202407011027592290101220629ECCE6", "Action": "DeleteClusterUser", "Version": "2023-08-15", "Service": "emr", "Region": "cn-beijing" }, "Result": null }
The table below lists the error codes related to the business logic of this API. For common error codes, see the common error codes documentation.
Status code | Error code | Note |
|---|---|---|
400 | InvalidClusterId | Cluster does not exist |
400 | USER.UserNameNotExist | User does not exist |