listCredUsers()
A MilvusClient interface. This method lists all user names.
R<ListCredUsersResponse> listCredUsers(ListCredUsersParam requestParam);
ListCredUsersParam
Use the ListCredUsersParam.Builder
to construct a ListCredUsersParam
object.
import io.milvus.param.ListCredUsersParam;
ListCredUsersParam.Builder builder = ListCredUsersParam.newBuilder();
Methods of ListCredUsersParam.Builder
:
Method |
Description |
Parameters |
---|---|---|
build() |
Constructs a ListCredUsersParam object. |
N/A |
Returns
This method catches all the exceptions and returns an R<RpcStatus>
object.
If the API fails on the server side, it returns the error code and message from the server.
If the API fails by RPC exception, it returns
R.Status.Unknown
and the error message of the exception.If the API succeeds, it returns a valid
ListCredUsersResponse
held by the R template. You can useListCredUsersResponse
to get the information of users.
Example
import io.milvus.param.*;
ListCredUsersParam param = ListCredUsersParam.newBuilder().build();
R<RpcStatus> response = client.listCredUsers(param)
if (response.getStatus() != R.Status.Success.getCode()) {
System.out.println(response.getMessage());
}