createUser()
This operation creates a new user account for the Milvus server.
Request Syntax
milvusClient.createUser({ username, password, description?, timeout? })
PARAMETERS:
-
username (string) -
The username of the new user.
-
password (string) -
The password for the new user.
-
description (string) -
An optional description for the new user.
-
timeout (number) -
An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined.
RETURN TYPE:
ResStatus
RETURNS:
The response status: {error_code, reason}.
PARAMETERS:
-
error_code (number) -
The error code number: 0 means success.
-
reason (string) -
The cause of the error, if any.
EXCEPTIONS:
-
MilvusError
Raised when the server rejects the request or the RPC fails. Inspect the server error message for the exact failure reason.
Example
await milvusClient.createUser({
username: 'exampleUser',
password: 'examplePassword',
});