Lists dataset jobs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidataset:ListDatasetJobs |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/datasets/{DatasetId}/datasetjobs HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DatasetId |
string |
Yes |
The ID of the dataset. To obtain this ID, see ListDatasets. |
d-lfd60v0p****ujtsdx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DatasetVersion |
string |
No |
The name of the dataset version. |
v1 |
| WorkspaceId |
string |
No |
The ID of the workspace. To obtain this ID, see ListWorkspaces. |
1234 |
| JobAction |
string |
No |
The job action. |
SemanticIndex |
| PageNumber |
integer |
No |
The page number. Pages are 1-indexed. Default: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
50 |
| Status |
string |
No |
The job status. Valid values:
|
Running |
| Order |
string |
No |
The order in which to sort the results. This parameter is used with
|
DESC |
| SortBy |
string |
No |
The field by which to sort the results. By default, the results are sorted by Valid values:
|
CreateTime |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
8D7B2E70-F770-505B-A672-09F1D8F2EC1E |
| TotalCount |
integer |
The total number of jobs. |
1 |
| DatasetJobs |
array |
A list of dataset jobs. |
|
| DatasetJob |
The details of a dataset job. |
Examples
Success response
JSON format
{
"RequestId": "8D7B2E70-F770-505B-A672-09F1D8F2EC1E",
"TotalCount": 1,
"DatasetJobs": [
{
"DatasetJobId": "dsjob-9jx1*****uj9e",
"JobAction": "SemanticIndex",
"CreateTime": "2023-06-20T04:05:59Z",
"FinishTime": "2023-06-20T06:03:48Z",
"Status": "Running",
"Description": "这是一个数据集任务描述。",
"JobMode": "Full",
"JobSpec": "{\\\"modelId\\\":\\\"xxx\\\"}",
"Logs": [
"2025-02-17 09:58:10.143 INFO: Job completed successfully."
],
"TotalFileCount": 1000,
"CompletedFileCount": 990,
"FailedFileCount": 10,
"DatasetVersion": "v1",
"WorkspaceId": "145883"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.