ListDatasetFileMetas
Queries the list of dataset files.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidataset:ListDatasetFileMetas |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/datasets/{DatasetId}/datasetfilemetas HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DatasetId |
string |
Yes |
The dataset ID. For more information about how to obtain the dataset ID, see ListDatasets. |
d-rbvg5*****jhc9ks92 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DatasetVersion |
string |
Yes |
The dataset version name. |
v1 |
| WorkspaceId |
string |
Yes |
The ID of the workspace to which the dataset belongs. For more information about how to obtain the workspace ID, see ListWorkspaces. |
105173 |
| QueryType |
string |
No |
The retrieve type. Valid values:
Valid values:
|
MIX |
| QueryText |
string |
No |
The text content to search. |
A fallen water |
| TopK |
integer |
No |
The number of search results to return. A maximum of TopK search results are returned. Note
This parameter takes effect only when QueryType is set to VECTOR or MIX. |
100 |
| ScoreThreshold |
number |
No |
The similarity score threshold for filtering. Only results with a score greater than ScoreThreshold are returned. Note
This parameter takes effect only when QueryType is set to VECTOR or MIX. |
0.6 |
PageSize
deprecated
|
integer |
No |
The number of entries per page. If MaxResults is also specified, MaxResults prevails. Note
This parameter will soon be offline. We recommend that you use NextToken and MaxResults for paging in paged query operations. |
10 |
| NextToken |
string |
No |
The pagination cursor. Note
If this parameter is not specified, the first page of data is returned. If this parameter has a return value, it indicates that there is a next page. You can use the returned NextToken as a parameter to request the next page of data until Null is returned, which indicates that all data is retrieved. |
90a6ee35-****-4cd4-927e-1f45e1cb8b62_1729644433000 |
| SortBy |
string |
No |
The sorting field for paged query. If this parameter is not specified, the results are sorted by retrieve relevance in descending order during paging. Valid values:
Valid values:
|
FileCreateTime |
| Order |
string |
No |
The ascending or descending order for the specified sorting field in a paged query. This parameter is used together with SortBy during paging. Default value: DESC. Valid values:
Valid values:
|
DESC |
| EndFileUpdateTime |
string |
No |
The end time of the file update time range for the query. Specify the time in the ISO 8601 standard in UTC. |
2025-01-12T14:36:01.000Z |
| StartFileUpdateTime |
string |
No |
The start time of the file update time range for the query. Specify the time in the ISO 8601 standard in UTC. |
2025-01-12T14:36:01.000Z |
| QueryImage |
string |
No |
The image information for image-to-image search.
Note
This parameter takes effect only when QueryType is set to VECTOR or MIX. |
oss://test-xxx-oss/car/0001.png |
| ThumbnailMode |
string |
No |
The thumbnail mode for images. Currently, only OSS files support thumbnails. Valid values:
|
w_100 |
| DatasetFileMetaIds |
array |
No |
The list of metadata IDs to query. |
|
|
string |
No |
The metadata ID. |
5dc037c8ec0a6fc4e15741328e531bbee036exxxxxxxxx722eff66c38a90e08c |
|
| QueryTagsIncludeAll |
array |
No |
The search condition for "including all of the following tags". You can select multiple tags, and the search results must meet all these tags simultaneously. If this parameter is empty, this condition is not applied. Separate multiple tags with commas. Note
This parameter takes effect only when QueryType is set to TAG or MIX. When QueryType is set to TAG, QueryText is added to this condition. |
|
|
string |
No |
The tag name. |
Lane line |
|
| QueryTagsIncludeAny |
array |
No |
The search condition for "including any of the following tags". You can select multiple tags, and the search results only need to meet one of them. If this parameter is empty, this condition is not applied. Separate multiple tags with commas. Note
This parameter takes effect only when QueryType is set to TAG or MIX. |
|
|
string |
No |
The tag name. |
Lane line |
|
| QueryTagsExclude |
array |
No |
The search condition for "excluding the following tags". You can select multiple tags, and the search results must not contain these tags. If this parameter is empty, this condition is not applied. Note
This parameter takes effect only when QueryType is set to TAG or MIX. |
|
|
string |
No |
The tag name. |
Lane line |
|
| QueryFileName |
string |
No |
The file name search condition. Fuzzy search is supported. |
car |
| QueryFileDir |
string |
No |
The file directory search condition. Fuzzy search is supported. |
cars/20250221/ |
| QueryFileTypeIncludeAny |
array |
No |
The search condition for "including any of the following file types". You can select multiple file types, and the search results only need to meet one of them. If this parameter is empty, this condition is not applied. Separate multiple file types with commas. |
|
|
string |
No |
The file type. |
image |
|
| QueryContentTypeIncludeAny |
array |
No |
The search condition for "including any of the following file content types". You can select multiple file content types, and the search results only need to meet one of them. If this parameter is empty, this condition is not applied. Separate multiple file content types with commas. |
|
|
string |
No |
The file content type. |
image/jpeg |
|
| StartTagUpdateTime |
string |
No |
The start time of the tag last update time range for the query. Specify the time in the ISO 8601 standard in UTC. |
2025-01-12T14:36:01.000Z |
| EndTagUpdateTime |
string |
No |
The end time of the tag last update time range for the query. Specify the time in the ISO 8601 standard in UTC. |
2025-01-12T14:36:01.000Z |
| MaxResults |
integer |
No |
The maximum number of results to return per query when NextToken is used. Valid values: 1 to 100. Default value: 10. |
10 |
| QueryExpression |
string |
No |
The query statement (DSL) is a domain-specific language used to express complex search conditions. It supports grouping, Boolean logic (AND/OR/NOT), range comparison (>, >=, <, <=), property existence (HAS/NOT HAS), token matching (:), and exact matching (=), and is suitable for advanced search scenarios. It is generally used for complex advanced search conditions. Important To avoid conflicts, do not mix this query statement with other query parameters. |
(FileUpdateTime > '2025-02-28T00:00:00Z' AND FileUpdateTime < '2025-05-30T09:27:29Z') AND FileDir:'blue_car' AND NOT FileName="toyota.jpg" AND (( Tags.all='lane line' AND Tags.all='barrier gate') OR NOT Tags.user='rainy days' ) AND HAS SemanticIndexJobId AND Content:'a fallen water horse' AND TopK=100 AND SignMode='PUBLIC' |
| Status |
string |
No |
The metadata status to query. Valid values:
Valid values:
|
ACTIVE |
| QueryVideo |
string |
No |
The video file information for video search.
Note
This parameter takes effect only when QueryType is set to VECTOR or MIX. |
oss://test-xxx-oss/car/0001.mp4 |
DSL query syntax
| Keyword | Description | Example |
| : | Token matching | FileName:'lane line'Finds data whose file name contains the token "lane line" after tokenization. |
| NOT : | Token mismatch | NOT FileName : 'lane line'Finds data whose file name does not contain the token "lane line" after tokenization. |
| = | Exact value matching | FileType='image'Finds data whose file type is "image" (exact match). |
| NOT = | Exact value exclusion | NOT FileType = 'video'Finds all data whose FileType is not equal to "video". |
| HAS | Exists | HAS SemanticIndexJobIdFinds all data that has the SemanticIndexJobId property. |
| NOT HAS | Does not exist | NOT HAS SemanticIndexJobIdFinds all data that does not have the SemanticIndexJobId property. |
| "" | Wraps the string type of the value | Single and double quotes have the same effect. |
| () | Grouping operation | (FileName:'black' AND ContentType='image/jpeg') OR (FileName:'white' AND ContentType='image/png')Finds data where FileName fuzzy matches black and ContentType is image/jpeg, or FileName fuzzy matches white and ContentType is image/png. |
| > | Range query: Greater than | FileUpdateTime> '2025-01-16T11:52:56.000Z' AND DataSize >= 12345Finds data whose file last modification time is after 2025-01-16T11:52:56.000Z and file size is greater than or equal to 12345 bytes. |
| >= | Range query: Greater than or equal to | Same as above. |
| < | Range query: Less than | FileUpdateTime < '2025-01-16T11:52:56.000Z' AND DataSize <= 12345Finds data whose file last modification time is before 2025-01-16T11:52:56.000Z and file size is less than or equal to 12345 bytes. |
| <= | Range query: Less than or equal to | Same as above. |
| AND | And Case-insensitive | FileType='image' AND ContentType:'image/png'Finds images whose file type is image and file format is png. |
| OR | Or Case-insensitive | FileType='image' OR FileType='video'Finds data whose file type is image or video. |
Supported DSL query properties
Supports basic file metadata properties, label properties, AISearch properties, and general retrieve properties. All properties must be optional in query conditions.
Property types:
KEYWORD: Supports only one or more of equal to, not equal to, exists, and does not exist.
TEXT: Supports only one or more of token inclusion, token exclusion, equal to, not equal to, exists, and does not exist.
NUMBER: Supports only one or more of range query, equal to, exists, and does not exist.
DATE: Supports only one or more of range query, exists, and does not exist.
Basic metadata properties
| Property name | Internal type | Token inclusion | Token exclusion | Equal to | Not equal to | Exists/Does not exist | Range query | AND logic | OR logic |
| DatasetFileMetaId | KEYWORD | - | - | ✅ | ✅ | ✅ | - | ✅ | ✅ |
| FileName | TEXT | ✅ | ✅ | ✅ | ✅ | ✅ | - | ✅ | ✅ |
| FileDir | TEXT | ✅ | ✅ | ✅ | ✅ | ✅ | - | ✅ | ✅ |
| FileType | KEYWORD | - | - | ✅ | ✅ | ✅ | - | ✅ | ✅ |
| ContentType | KEYWORD | - | - | ✅ | ✅ | ✅ | - | ✅ | ✅ |
| DataSize | NUMBER | - | - | ✅ | - | ✅ | ✅ | ✅ | ✅ |
| FileUpdateTime | DATE | - | - | - | - | ✅ | ✅ | ✅ | ✅ |
| SyncTime | DATE | - | - | - | - | ✅ | ✅ | ✅ | ✅ |
| TagUpdateTime | DATE | - | - | - | - | ✅ | ✅ | ✅ | ✅ |
| SemanticIndexUpdateTime | DATE | - | - | - | - | ✅ | ✅ | ✅ | ✅ |
| Status | KEYWORD | - | - | ✅ | ❌ | ❌ | - | ✅ | ❌ |
Tag properties
| Property name | Internal type | Token inclusion | Token exclusion | Equal to | Not equal to | Exists/Does not exist | Range query | AND logic | OR logic |
| Tags.ai | KEYWORD | - | - | ✅ | ✅ | ✅ | - | ✅ | ✅ |
| Tags.user | KEYWORD | - | - | ✅ | ✅ | ✅ | - | ✅ | ✅ |
| Tags.all | KEYWORD | - | - | ✅ | ✅ | ✅ | - | ✅ | ✅ |
Vector query properties
| Property name | Internal type | Token inclusion | Token exclusion | Equal to | Not equal to | Exists/Does not exist | Range query | AND logic | OR logic |
| Content | TEXT | ✅ | - | ❌ | ❌ | ❌ | - | ✅ | ❌ |
| TopK | NUMBER | - | - | ✅ | - | ❌ | ❌ | ✅ | ❌ |
| ScoreThreshold | NUMBER | - | - | ✅ | - | ❌ | ❌ | ✅ | ❌ |
General query properties
| Property name | Internal type | Token inclusion | Token exclusion | Equal to | Not equal to | Exists/Does not exist | Range query | AND logic | OR logic |
| QueryType | KEYWORD | - | - | ✅ | ❌ | ❌ | - | ✅ | ❌ |
| SignMode | KEYWORD | - | - | ✅ | ❌ | ❌ | - | ✅ | ❌ |
| ThumbnailMode | KEYWORD | - | - | ✅ | ❌ | ❌ | - | ✅ | ❌ |
| SortBy | KEYWORD | - | - | ✅ | ❌ | ❌ | - | ✅ | ❌ |
| Order | KEYWORD | - | - | ✅ | ❌ | ❌ | - | ✅ | ❌ |
| NextToken | KEYWORD | - | - | ✅ | ❌ | ❌ | - | ✅ | ❌ |
| MaxResults | NUMBER | - | - | ✅ | - | ❌ | ❌ | ✅ | ❌ |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request result. |
||
| TotalCount |
integer |
The total number of returned entries. |
123 |
PageSize
deprecated
|
integer |
The number of entries on the current page. |
30 |
| NextToken |
string |
The pagination cursor. If the number of returned results that match the query conditions exceeds the page size, this pagination cursor is returned. To obtain the next page of data, use the returned cursor value as a request parameter until no cursor value is returned, which indicates that all data is retrieved. |
90******-f5c5-4cd4-927e-1f45e1cb8b62_1729644433000 |
| DatasetFileMetas |
array |
The list of dataset file metadata details. |
|
| DatasetFileMeta |
The dataset file metadata details. |
||
| DatasetId |
string |
The dataset ID. |
d-rbvg5*****jhc9ks92 |
| WorkspaceId |
string |
The workspace ID. |
105173 |
| DatasetVersion |
string |
The dataset version name. |
v1 |
| MaxResults |
integer |
The maximum number of results to return per query when NextToken is used. |
10 |
Examples
Success response
JSON format
{
"TotalCount": 123,
"PageSize": 30,
"NextToken": "90******-f5c5-4cd4-927e-1f45e1cb8b62_1729644433000",
"DatasetFileMetas": [
{
"DatasetFileMetaId": "07914c9534586e4e7aa6e9dbca5009082df******fd8a0d857b33296c59bf6",
"Uri": "oss://test-bucket/dataset/cat.png",
"FileName": "cat.png",
"DownloadUrl": "https://test-bucket.oss-cn-shanghai.aliyuncs.com/dataset/cat.png?Expires=171280****&OSSAccessKeyId=LTAI************&Signature=****jZcXOn7FHMCT1DLE22NuNjs%3D",
"Score": 0.6,
"DataSize": 120000,
"FileFingerPrint": "D41D8CD98F*****E9800998ECF8\n",
"FileUpdateTime": "2025-01-12T14:36:01Z",
"Tags": "{\n \"ai\":\n [\n \"Lane line\",\n \"Water horse\",\n \"Sunny day\"\n ],\n \"user\":\n [\n \"Everett\",\n \"Intelligent driving Dataset 1\",\n \"Cloudy day\"\n ],\n \"user-delete-ai-tags\":\n [\n \"Sunny day\"\n ]\n}",
"ThumbnailUrl": "https://test-bucket.oss-cn-shanghai.aliyuncs.com/dataset/cat.png?Expires=171280****&OSSAccessKeyId=LTAI************&Signature=****jZcXOn7FHMCT1DLE22NuNjs%3D",
"MetaAttributes": "{ \"ImageHeight\": 400, \"ImageWidth\": 800 }",
"SemanticIndexJobId": "dsjob-klfwtjto****scvt3",
"SemanticIndexUpdateTime": "2021-01-12T14:36:01.000Z",
"FileCreateTime": "2021-01-12T14:36:01.000Z",
"FileType": "image",
"ContentType": "image/jpeg",
"Status": "ACTIVE"
}
],
"DatasetId": "d-rbvg5*****jhc9ks92\n",
"WorkspaceId": "105173",
"DatasetVersion": "v1",
"MaxResults": 10
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.