Views a list of job snapshot data at a specific point in time.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
odps:ListJobSnapshotInfos | list | *All Resources * |
| none |
Request syntax
POST /api/v1/jobs/snapshot HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
tenantId | string | No | The ID of the tenant. You can log on to the MaxCompute console, and choose Tenants > Tenant Property from the left-side navigation pane to view the tenant ID. | 478403690625249 |
region | string | No | The region ID. | cn-chengdu |
orderColumn | string | No | The sorting column. | cpuUsage |
ascOrder | boolean | No | Specifies whether to sort data in ascending order. | true |
pageNumber | long | No | The page number. | 1 |
pageSize | long | No | The number of entries per page. | 10 |
body | object | No | The request body. | |
from | long | No | Start timestamp. Note
This parameter is invalid. The end timestamp should be the time point for the snapshot you want to view.
| 1706840714 |
to | long | Yes | End timestamp. | 1706840714 |
quotaNickname | string | No | The nickname of the compute Quota used by the job. | quota_A |
projectList | array | No | The name of project. | |
string | No | The name of project. | projectA | |
typeList | array | No | The type of the job. | |
string | No | The type of the job. | SQL | |
jobOwnerList | array | No | The account that commits the job. | |
string | No | The account that commits the job. | ALIYUN$7632***@aliyun.com | |
signatureList | array | No | The signature of the SQL job. | |
string | No | The signature of the SQL job. | signatureabc | |
extNodeIdList | array | No | The ID of the upstream node. | |
string | No | The ID of the upstream node. | 76358164 | |
instanceIdList | array | No | The instance ID. | |
string | No | The instance ID. | 20241028****jkl | |
statusList | array | No | The status of jobs. | |
string | No | The status of jobs. | running | |
priorityList | array | No | The priority of the job. | |
long | No | The priority of the job. | 9 | |
sortByList | array | No | The sorting columns. | |
string | No | The sorting columns. | cuUsage | |
sortOrderList | array | No | The orders for the sorting columns. | |
string | No | The orders for the sorting columns. | desc |
Response parameters
Examples
Sample success responses
JSON
format
{
"requestId": "0b87b7e716665825896565060e87a4",
"httpCode": 200,
"errorCode": "OBJECT_NOT_EXIST",
"errorMsg": "this quota is not exist.",
"data": {
"jobInfoList": [
{
"tenantId": 213065738244354,
"region": "cn-chengdu",
"instanceId": "20241028****jkl",
"jobOwner": "ALIYUN$7632***@aliyun.com",
"project": "projectA",
"jobType": "SQL",
"priority": 9,
"status": "running",
"quotaNickname": "quota_A",
"quotaType": "subscription",
"cpuUsage": 100,
"memoryUsage": 409600,
"maxCpuPct": -1,
"minCpuPct": 0.6,
"maxMemoryPct": -1,
"minMemoryPct": 0.6,
"submittedAtTime": 1736821785,
"waitingTime": 20,
"runningAtTime": 1736821805,
"runningTime": 43,
"snapshotTime": 1736821848,
"totalTime": 63,
"signature": "signatureabc",
"extPlantFrom": "Dataworks",
"extNodeId": 76358164,
"extNodeOnDuty": "duty_2",
"cpuRequest": 200,
"memoryRequest": 409600,
"cpuUsageToRequestRatio": 0.5,
"memoryUsageToRequestRatio": 1
}
],
"totalCount": 123,
"pageNumber": 1,
"pageSize": 10
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2025-02-17 | The response structure of the API has changed | View Change Details |