All Products
Search
Document Center

MaxCompute:ListJobSnapshotInfos

Last Updated:Jun 16, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Views a list of job snapshot data at a specific point in time.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
odps:ListJobSnapshotInfoslist
*All Resources
*
    none
none

Request syntax

POST /api/v1/jobs/snapshot HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
tenantIdstringNo

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
regionstringNo

The region ID.

cn-chengdu
orderColumnstringNo

The sorting column.

cpuUsage
ascOrderbooleanNo

Specifies whether to sort data in ascending order.

true
pageNumberlongNo

The page number.

1
pageSizelongNo

The number of entries per page.

10
bodyobjectNo

The request body.

fromlongNo

Start timestamp.

Note This parameter is invalid. The end timestamp should be the time point for the snapshot you want to view.
1706840714
tolongYes

End timestamp.

1706840714
quotaNicknamestringNo

The nickname of the compute Quota used by the job.

quota_A
projectListarrayNo

The name of project.

stringNo

The name of project.

projectA
typeListarrayNo

The type of the job.

stringNo

The type of the job.

SQL
jobOwnerListarrayNo

The account that commits the job.

stringNo

The account that commits the job.

ALIYUN$7632***@aliyun.com
signatureListarrayNo

The signature of the SQL job.

stringNo

The signature of the SQL job.

signatureabc
extNodeIdListarrayNo

The ID of the upstream node.

stringNo

The ID of the upstream node.

76358164
instanceIdListarrayNo

The instance ID.

stringNo

The instance ID.

20241028****jkl
statusListarrayNo

The status of jobs.

stringNo

The status of jobs.

running
priorityListarrayNo

The priority of the job.

longNo

The priority of the job.

9
sortByListarrayNo

The sorting columns.

stringNo

The sorting columns.

cuUsage
sortOrderListarrayNo

The orders for the sorting columns.

stringNo

The orders for the sorting columns.

desc

Response parameters

ParameterTypeDescriptionExample
object

PopResult

requestIdstring

The request ID.

0b87b7e716665825896565060e87a4
httpCodeinteger

The HTTP status code.

  • 1xx: informational response. The request is received and is being processed.
  • 2xx: success. The request is successfully received, understood, and accepted by the server.
  • 3xx: redirection. The request is redirected, and further actions are required to complete the request.
  • 4xx: client error. The request contains invalid request parameters or syntaxes, or specific request conditions cannot be met.
  • 5xx: server error. The server cannot meet requirements due to other reasons.
200
errorCodestring

The error code.

OBJECT_NOT_EXIST
errorMsgstring

The error message.

this quota is not exist.
dataobject

The returned data.

jobInfoListarray<object>

The job snapshots.

jobInfoListobject

The information about the job snapshots.

tenantIdstring

The tenant ID.

213065738244354
regionstring

The region ID.

cn-chengdu
instanceIdstring

The instance ID.

20241028****jkl
jobOwnerstring

The account that commits the job.

ALIYUN$7632***@aliyun.com
projectstring

The name of the MaxCompute project.

projectA
jobTypestring

The type of the job.

SQL
prioritylong

The priority of the job.

9
statusstring

The snapshot status of the job.

Note The snapshot status is only running.
running
quotaNicknamestring

The nickname of the computing Quota used by the job.

quota_A
quotaTypestring

The type of the quota.

subscription
cpuUsagelong

CPU usage of the job at the snapshot time. Unit: Core.

100
memoryUsagelong

Memory usage of the job at the snapshot time. Unit: MB.

409600
maxCpuPctdouble

Not applicable.

-1
minCpuPctdouble

The CPU usage ratio of the annual or monthly subscription job at the snapshot time (CPU usage / (reserved CPU guarantee + elastic reserved CPU)). This parameter is not available for pay-as-you-go jobs.

0.6
maxMemoryPctdouble

Not applicable.

-1
minMemoryPctdouble

The memory usage ratio of the annual or monthly subscription job at the observation time (memory usage / (reserved memory guarantee + elastic reserved memory)). This parameter is not available for pay-as-you-go jobs.

0.6
submittedAtTimelong

The time when the job was committed.

1736821785
waitingTimelong

The duration from the time the job is submitted to the time the job starts to run. Unit: seconds (s).

20
runningAtTimelong

The start time of the job.

Note The time when the job received the first batch of computing resources.
1736821805
runningTimelong

The running duration, which is the duration from the runningAtTime to the snapshotTime of the job. Unit: seconds (s).

43
snapshotTimelong

The snapshot time.

1736821848
totalTimelong

The interval from the time when the job was submitted to the snapshotTime .Unit: seconds (s).

63
signaturestring

The signature of the SQL job.

signatureabc
extPlantFromstring

The upstream platform.

Dataworks
extNodeIdstring

The ID of the upstream node.

76358164
extNodeOnDutystring

The account ID of the task owner.

duty_2
cpuRequestlong

The CPU request amount of the job at the snapshot time point. Unit: Core.

200
memoryRequestlong

The Memory request amount of the job at the snapshot time point. Unit: MB.

409600
cpuUsageToRequestRatiodouble

The CPU satisfaction ratio of the job at the snapshot time point (cpuUsage/cpuRequest).

0.5
memoryUsageToRequestRatiodouble

The Memory satisfaction ratio of the job at the snapshot time point (memoryUsage/memoryRequest).

1
totalCountlong

The total number of returned results.

123
pageNumberlong

The page number.

1
pageSizelong

The number of entries per page.

10

Examples

Sample success responses

JSONformat

{
  "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 timeSummary of changesOperation
2025-02-17The response structure of the API has changedView Change Details