listFileResources()
This operation lists the file resources registered in Milvus metadata.
Request Syntax
typescript
milvusClient.listFileResources({ timeout? })
PARAMETERS:
-
timeout (number) -
An optional duration of time in milliseconds to allow for the RPC. Default is undefined.
RETURN TYPE:
ListFileResourcesResponse
RETURNS:
The response status and the list of registered file resources.
PARAMETERS:
-
status (ResStatus) -
The operation status:
{error_code, reason}. -
resources (FileResourceInfo[]) -
The registered file resources: each entry carries
{id, name, path}.
EXCEPTIONS:
-
MilvusError
Raised when the server rejects the request or the RPC fails. Inspect the server error message for the exact failure reason.
Example
javascript
const response = await milvusClient.listFileResources({});