Adds a ZooKeeper SASL user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:AddZooKeeperSaslUser |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
mse-cn-st21ri2**** |
| SaslUser |
array<object> |
Yes |
The SASL users to add. |
|
|
object |
No |
|||
| UserName |
string |
No |
The username. |
user |
| Password |
string |
No |
The password. |
traaqwrasdf |
| Description |
string |
No |
The description. |
description |
| Reload |
boolean |
No |
Specifies whether to immediately restart the cluster to apply the changes. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
RestResult |
||
| RequestId |
string |
The request ID. |
5B170A0D-2C5D-4CF8-B808-03966B86**** |
| Data |
boolean |
The result. |
true |
Examples
Success response
JSON format
{
"RequestId": "5B170A0D-2C5D-4CF8-B808-03966B86****",
"Data": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.