Queries a list of snapshot jobs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:ListSnapshotJobs |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StartOfCreateTime |
string |
No |
The beginning of the time range during which the jobs to be queried were created. |
2022-07-12T00:00:00Z |
| EndOfCreateTime |
string |
No |
The end of the time range during which the jobs to be queried were created. |
2022-07-14T00:00:00Z |
| Status |
string |
No |
The state of the job. Valid values:
Valid values:
|
Success |
| OrderBy |
string |
No |
The order that you use to sort the query results.
Valid values:
Valid values:
|
CreateTimeDesc |
| JobId |
string |
No |
The job ID. |
****20b48fb04483915d4f2cd8ac**** |
| PageSize |
integer |
No |
The number of entries per page. Default value: 20. Maximum value: 100. |
20 |
| NextPageToken |
string |
No |
The pagination token that is used in the next request to retrieve a new page of results. |
****20b48fb04483915d4f2cd8ac**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
| Jobs |
array<object> |
The list of jobs. |
|
|
array<object> |
The information about the snapshot job. |
||
| JobId |
string |
The job ID. |
****20b48fb04483915d4f2cd8ac**** |
| TriggerSource |
string |
The request trigger source. Valid values:
Valid values:
|
API |
| Name |
string |
The name of the job. |
SampleJob |
| Type |
string |
The type of the job. Valid values:
Valid values:
|
Sprite |
| Input |
object |
The input of the job. |
|
| Type |
string |
The type of the input file. Valid values:
|
OSS |
| Media |
string |
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 |
| Output |
object |
The output of the job. |
|
| Type |
string |
The type of the output file. Valid values:
|
OSS |
| Media |
string |
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:
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 |
| Count |
integer |
The number of snapshots. |
10 |
| Async |
boolean |
Indicates whether the snapshots were captured in asynchronous mode. |
true |
| TemplateId |
string |
The template ID. |
****20b48fb04483915d4f2cd8ac**** |
| PipelineId |
string |
The ID of the MPS queue to which the job was submitted. |
****20b48fb04483915d4f2cd8ac**** |
| Status |
string |
The state of the job.
Valid values:
|
Success |
| SubmitTime |
string |
The time when the job was submitted. |
2022-07-12T16:17:54Z |
| FinishTime |
string |
The time when the job was complete. |
2022-07-12T16:30:54Z |
| CreateTime |
string |
The time when the job was created. |
2022-07-12T16:17:54Z |
| ModifiedTime |
string |
The time when the job was last modified. |
2022-07-12T16:30:54Z |
| NextPageToken |
string |
The pagination token that is used in the next request to retrieve a new page of results. |
****20b48fb04483915d4f2cd8ac**** |
Examples
Success response
JSON format
{
"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
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.