Views a list of jobs.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /api/v1/jobs HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
tenantId | string | No | The tenant ID. | 478403690625249 |
region | string | No | The region ID. | cn-shanghai |
orderColumn | string | No | The column based on which you want to sort query results. | cuUsage |
ascOrder | boolean | No | Specifies whether to sort query results in ascending or descending order. | true |
pageNumber | long | No | The page number. | 1 |
pageSize | long | No | The number of entries per page. | 10 |
body | string | No | The request body parameters. | { "from":1672112000, "to":1672112130, "statusList":[], "quotaNickname":"quota_nickname", "projectList":[], "typeList":[], "jobOwnerList":[], "signatureList":[], "extNodeIdList":[], "instanceIdList":[], "priorityList":[], "settings":{ "key":"value" } } |
Response parameters
Examples
Sample success responses
JSON
format
{
"requestId": "0bc13a9516807484336515320e38f5",
"httpCode": 200,
"data": {
"totalCount": 64,
"pageNumber": 2,
"pageSize": 10,
"jobInfoList": [
{
"tenantId": "213065738244354",
"region": "cn-shanghai",
"cluster": "AY20A",
"instanceId": "20230410050036549gfmsdwf60gg",
"jobOwner": "ALIYUN$xxx@test.aliyunid.com",
"project": "openrec_new",
"jobType": "SQL",
"priority": 1,
"status": "running",
"quotaNickname": "my_quota",
"quotaType": "subscription",
"cuUsage": 10,
"memoryUsage": 40,
"cuSnapshot": 0.48,
"memorySnapshot": 0.42,
"statusSnapshot": "running",
"submittedAtTime": 1672112013,
"waitingTime": 100,
"runningAtTime": 1672112113,
"runningTime": 800,
"endAtTime": 0,
"totalTime": 900,
"signature": "i094KijGrN3kOXZ74kbexB77XQY=",
"extPlantFrom": "platform_3",
"extNodeId": "node_4",
"extNodeOnDuty": "duty_2",
"tags": "[]"
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-08-26 | The internal configuration of the API is changed, but the call is not affected | View Change Details |