ListSemanticJobs
Lists semantic job definitions for the current tenant with pagination. Use Name to run or delete a job, ProjectId to query run details, and Source to verify the input scope.
Operation description
Scenarios
List saved semantic job definitions for the current tenant to display available jobs, select a job to run, or find the workspace that owns a job.
Workflow
Use
PageNumberandPageSizeto page throughData.SemanticJobs.Use the
Nameof a list item to invokeRunSemanticJob,DeleteSemanticJob, orListSemanticJobRuns.Use the
ProjectIdof a list item together withExecutorJobIdto invoke the details, log, and stop operations.
Precautions
This operation returns job definitions. For current run status, call ListSemanticJobRuns.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:ListSemanticJobs |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number. Pages start from 1. If this parameter is not specified or is set to a value less than or equal to 0, the first page is returned. |
1 |
| PageSize |
integer |
No |
The number of job definitions to return on each page. If this parameter is not specified or is set to a value less than or equal to 0, the default value 50 is used. Maximum value: 200. |
50 |
Construct the call parameters based on the description of each request field.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The paginated response. Each item in Data.SemanticJobs is a job definition that you can use to run or query a job. |
||
| RequestId |
string |
The request ID. You can use the ID to locate logs and troubleshoot issues. |
676271D6-53B4-57BE-89FA-72F7AE1418DF |
| Success |
boolean |
Indicates whether the request is successful. |
|
| Data |
object |
The paged results of job definitions. Use the Name of a list item to run or delete a job, query its run records, or download its results. Use the ProjectId to query run details and logs, or stop a run. |
|
| TotalCount |
integer |
The total number of job definitions that meet the query conditions in the current tenant. |
1 |
| PageNumber |
integer |
The page number of the returned page. Pages start from 1. |
1 |
| PageSize |
integer |
The number of job definitions returned on each page. |
50 |
| SemanticJobs |
array<object> |
The list of job definitions. |
|
|
array<object> |
A saved semantic job definition. The field meanings are the same as those in the Data field returned by CreateSemanticJob. |
||
| Id |
integer |
The internal unique ID of the job definition. |
1 |
| Name |
string |
The job name. This name is used in RunSemanticJob, DeleteSemanticJob, ListSemanticJobRuns, and DownloadSemanticResults. |
semantic-job-demo |
| UserId |
string |
The user identifier of the creator of the semantic job. |
user-demo |
| Creator |
string |
The user identifier of the creator of the semantic job. |
user-demo |
| ProjectId |
integer |
The ID of the workspace to which the job belongs. This ID is used in GetSemanticJobDetail, GetSemanticJobLog, and KillSemanticJob. |
100 |
| Type |
string |
The data source type saved in the Source.type field of the job. |
maxcompute |
| Source |
object |
The input data source configuration saved for the job. The job uses this configuration to determine the analysis scope at runtime. |
{"type":"maxcompute","domain":"sales","pinnedScopeInfo":[{"type":"project","name":"mc_project"}]} |
| ReferenceFileIds |
array |
The list of IDs of the uploaded files associated with the job. |
|
|
string |
The ID of an uploaded reference file. |
semantic-job-value |
|
| ReferenceFileUris |
array |
The list of URIs of the external reference files associated with the job. |
|
|
string |
The URI of an accessible reference file. |
semantic-job-value |
|
| GmtCreate |
integer |
The creation time. The value is a UNIX timestamp in milliseconds. |
1700000000000 |
| GmtModified |
integer |
The last modification time. The value is a UNIX timestamp in milliseconds. |
1700000000000 |
| ResourceGroupId |
string |
The identifier of the resource group used to run the job. |
rg-demo |
For the meanings of response fields and subsequent call relationships, refer to the description of each field.
Examples
Success response
JSON format
{
"RequestId": "676271D6-53B4-57BE-89FA-72F7AE1418DF",
"Success": false,
"Data": {
"TotalCount": 1,
"PageNumber": 1,
"PageSize": 50,
"SemanticJobs": [
{
"Id": 1,
"Name": "semantic-job-demo",
"UserId": "user-demo",
"Creator": "user-demo",
"ProjectId": 100,
"Type": "maxcompute",
"Source": {
"type": "maxcompute",
"domain": "sales",
"pinnedScopeInfo": [
{
"type": "project",
"name": "mc_project"
}
]
},
"ReferenceFileIds": [
"semantic-job-value"
],
"ReferenceFileUris": [
"semantic-job-value"
],
"GmtCreate": 1700000000000,
"GmtModified": 1700000000000,
"ResourceGroupId": "rg-demo"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.