createUser()
This method creates a user in Milvus.
Invocation
new milvusClient(MILUVS_ADDRESS).userManager.createUser({
username: your_username,
password: your_password,
});
Parameters
CreateUserReq
Parameter | Description | Type | Required |
---|---|---|---|
username | The username used to log into Milvus | String | True |
password | The password used to log into Milvus. | String | True |
timeout | An optional duration of time in millisecond to allow for the RPC. Default is undefined | Number | False |
Example
new milvusClient(MILUVS_ADDRESS).userManager.createUser({
username: "milvus",
password: "milvus",
});
Return
{ error_code: 'Success', reason: '' }