获取数据集列表(GetDataSet)
更新时间:2025-04-09 15:16:56
基本信息
Action:/qai/aicp/data
Method: GET
Content-Type:application/json
请求参数
参数 | 类型 | 描述 | 是否必须 |
---|---|---|---|
offset |
integer |
表示数据偏移量,默认值为 |
no |
limit |
integer |
表示返回数据长度,默认值为 |
no |
reverse |
boolean |
是否倒序排序,默认值为 |
no |
order_by |
string |
排序依据,默认值为创建时间。 |
no |
search_word |
string |
搜索关键词。 |
no |
响应参数
此接口包含的公共响应参数,可参见前文内容,其他参数如下:
参数 | 类型 | 描述 |
---|---|---|
data.da_id |
string |
数据集的 ID。 |
data.data_name |
string |
数据集的名称。 |
data.data_size |
string |
数据集的大小。 |
data.data_type |
integer |
类型。 |
data.storage_path |
string |
数据集存储路径。 |
data.notebook_path |
string |
数据集在实例中的路径。 |
data.publisher |
string |
发布方。 |
data.owner |
string |
数据集所有者。 |
data.description |
string |
针对当前数据集的描述信息 |
data.create_time |
string |
数据集创建时间。 |
data.user_id |
string |
用户 ID。 |
data.root_user_id |
string |
Root 用户 ID。 |
data.total |
integer |
统计数量。 |
请求示例
curl -X 'GET' \
'https://ai.coreshub.cn/qai/aicp/data?offset=0&limit=20&reverse=false&order_by=create_time&search_word=WikiText' \
-H 'accept: application/json'
响应示例
{
"ret_code": 0,
"message": "success",
"meta": {
"X_REQUEST_ID": "9fdf028f",
"X_REQUEST_USER": "usr-5HY8cxxx"
},
"data": [
{
"da_id": "ds-9lsyx26j",
"data_name": "WikiText",
"data_size": "1.1G",
"data_type": 1,
"storage_path": "/share/preset-datasets/WikiText",
"notebook_path": "/root/public/preset-datasets/WikiText",
"publisher": "root",
"owner": "user-kse-admin",
"description": "WikiText 语言建模数据集是从 Wikipedia 上经过验证的优质和精选文章集中提取的超过 1 亿个标记的集合。",
"create_time": "2024-09-09T15:42:32.604956",
"user_id": null,
"root_user_id": null,
"total": 0
}
],
"counts": 1
}