All Products
Search
Document Center

Intelligent Media Services:ListSnapshotJobs

Last Updated:Dec 23, 2025

Queries a list of snapshot jobs.

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
ice:ListSnapshotJobs
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
StartOfCreateTimestringNo

The beginning of the time range during which the jobs to be queried were created.

2022-07-12T00:00:00Z
EndOfCreateTimestringNo

The end of the time range during which the jobs to be queried were created.

2022-07-14T00:00:00Z
StatusstringNo

The state of the job.

Valid values:

  • Init: The job is submitted.
  • Success: The job is successful.
  • Fail: The job failed.
Success
OrderBystringNo

The order that you use to sort the query results.

  1. CreateTimeDesc
  2. CreateTimeAsc

Valid values:

  • CreateTimeDesc: sorts the jobs by creation time in descending order
  • CreateTimeAsc: sorts the jobs by creation time in ascending order.
CreateTimeDesc
JobIdstringNo

The job ID.

****20b48fb04483915d4f2cd8ac****
PageSizeintegerNo

The number of entries per page. Default value: 20. Maximum value: 100.

20
NextPageTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results.

****20b48fb04483915d4f2cd8ac****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

******11-DB8D-4A9A-875B-275798******
Jobsarray<object>

The list of jobs.

Jobobject

The information about the snapshot job.

JobIdstring

The job ID.

****20b48fb04483915d4f2cd8ac****
TriggerSourcestring

The request trigger source.

Valid values:

  • Console
  • Workflow
  • API
API
Namestring

The name of the job.

SampleJob
Typestring

The type of the job.

Valid values:

  • WebVtt
  • Sprite
  • Normal
Sprite
Inputobject

The input of the job.

Typestring

The type of the input file. Valid values:

  1. OSS: an Object Storage Service (OSS) object.
  2. Media: a media asset.
OSS
Mediastring

The input file. If Type is set to OSS, the URL of an OSS object is returned. If Type is set to Media, the ID of a media asset is returned. The URL of an OSS object can be in one of the following formats: 1. OSS://bucket/object 2. http(s)://bucket.oss-[RegionId].aliyuncs.com/object In the URL, bucket specifies an OSS bucket that resides in the same region as the job, and object specifies the object URL in OSS.

oss://bucket/object.mp4
Outputobject

The output of the job.

Typestring

The type of the output file. Valid values:

  1. OSS: an OSS object.
  2. Media: a media asset.
OSS
Mediastring

The output file. If Type is set to OSS, the URL of an OSS object is returned. If Type is set to Media, the ID of a media asset is returned. The URL of an OSS object can be in one of the following formats:

  1. OSS://bucket/object
  2. http(s)://bucket.oss-[RegionId].aliyuncs.com/object

In the URL, bucket specifies an OSS bucket that resides in the same region as the job, and object specifies the object URL in OSS. If multiple static snapshots were captured, the object must contain the "{Count}" placeholder. In the case of a sprite, the object must contain the "{TileCount}" placeholder. The suffix of the WebVTT snapshot objects must be ".vtt".

http://test-bucket.oss-cn-shanghai.aliyuncs.com/output-{Count}.jpg
Countinteger

The number of snapshots.

10
Asyncboolean

Indicates whether the snapshots were captured in asynchronous mode.

true
TemplateIdstring

The template ID.

****20b48fb04483915d4f2cd8ac****
PipelineIdstring

The ID of the MPS queue to which the job was submitted.

****20b48fb04483915d4f2cd8ac****
Statusstring

The state of the job.

  • Success: The job is successful.
  • Fail: The job failed.
  • Init: The job is submitted.
Success
SubmitTimestring

The time when the job was submitted.

2022-07-12T16:17:54Z
FinishTimestring

The time when the job was complete.

2022-07-12T16:30:54Z
CreateTimestring

The time when the job was created.

2022-07-12T16:17:54Z
ModifiedTimestring

The time when the job was last modified.

2022-07-12T16:30:54Z
NextPageTokenstring

The pagination token that is used in the next request to retrieve a new page of results.

****20b48fb04483915d4f2cd8ac****

Examples

Sample success responses

JSONformat

{
  "RequestId": "******11-DB8D-4A9A-875B-275798******",
  "Jobs": [
    {
      "JobId": "****20b48fb04483915d4f2cd8ac****",
      "TriggerSource": "API",
      "Name": "SampleJob",
      "Type": "Sprite",
      "Input": {
        "Type": "OSS",
        "Media": "oss://bucket/object.mp4"
      },
      "Output": {
        "Type": "OSS",
        "Media": "http://test-bucket.oss-cn-shanghai.aliyuncs.com/output-{Count}.jpg"
      },
      "Count": 10,
      "Async": true,
      "TemplateId": "****20b48fb04483915d4f2cd8ac****",
      "PipelineId": "****20b48fb04483915d4f2cd8ac****",
      "Status": "Success",
      "SubmitTime": "2022-07-12T16:17:54Z",
      "FinishTime": "2022-07-12T16:30:54Z",
      "CreateTime": "2022-07-12T16:17:54Z",
      "ModifiedTime": "2022-07-12T16:30:54Z"
    }
  ],
  "NextPageToken": "****20b48fb04483915d4f2cd8ac****"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-07-15Add OperationView Change Details
2022-07-11Add OperationView Change Details