Queries the information about a snapshot job.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:GetSnapshotJob |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
string |
Yes |
The ID of the snapshot job. |
****d80e4e4044975745c14b**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PlainResponse |
||
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
| SnapshotJob |
object |
The information about the snapshot job. |
|
| JobId |
string |
The job ID. |
****d80e4e4044975745c14b**** |
| TriggerSource |
string |
The request trigger source. Valid values:
Valid values:
|
API |
| Name |
string |
The name of the job. |
Test task |
| Type |
string |
Snapshot types 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:
|
oss://test-bucket/object.mp4 |
| OssFile |
object |
The three key elements of OSS. |
|
| Bucket |
string |
The OSS bucket. |
test-bucket |
| Location |
string |
The OSS location. |
oss-cn-shanghai |
| Object |
string |
The OSS object. |
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 |
| OssFile |
object |
The three key elements of OSS. |
|
| Bucket |
string |
The OSS bucket. |
test-bucket |
| Location |
string |
The OSS location. |
oss-cn-shanghai |
| Object |
string |
The OSS object. |
output-{Count}.jpg |
| Count |
integer |
The number of snapshots. |
8 |
| Async |
boolean |
Indicates whether the snapshots were captured in asynchronous mode. Default value: true. |
true |
| TemplateId |
string |
The template ID. |
****d80e4e4044975745c14b**** |
| TemplateConfig |
string |
The snapshot template configuration. |
{"Type":"Normal","FrameType":"normal","Time":0,"Count":10} |
| PipelineId |
string |
The ID of the MPS queue to which the job was submitted. |
****d80e4e4044975745c14b**** |
| Status |
string |
The state of the job. Valid values:
Valid values:
|
Success |
| Code |
string |
Error codes |
ResourceNotFound |
| Message |
string |
The error message that is returned. |
The specified resource for "Pipeline" could not be found. |
| 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 |
| UserData |
string |
The user-defined parameters. |
{"test parameter": "test value"} |
| 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 |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"SnapshotJob": {
"JobId": "****d80e4e4044975745c14b****",
"TriggerSource": "API",
"Name": "Test task",
"Type": "Sprite",
"Input": {
"Type": "OSS",
"Media": "oss://test-bucket/object.mp4",
"OssFile": {
"Bucket": "test-bucket",
"Location": "oss-cn-shanghai",
"Object": "object.mp4"
}
},
"Output": {
"Type": "OSS",
"Media": "http://test-bucket.oss-cn-shanghai.aliyuncs.com/output-{Count}.jpg",
"OssFile": {
"Bucket": "test-bucket",
"Location": "oss-cn-shanghai",
"Object": "output-{Count}.jpg"
}
},
"Count": 8,
"Async": true,
"TemplateId": "****d80e4e4044975745c14b****",
"TemplateConfig": "{\"Type\":\"Normal\",\"FrameType\":\"normal\",\"Time\":0,\"Count\":10}",
"PipelineId": "****d80e4e4044975745c14b****",
"Status": "Success",
"Code": "ResourceNotFound",
"Message": "The specified resource for \"Pipeline\" could not be found.",
"SubmitTime": "2022-07-12T16:17:54Z",
"FinishTime": "2022-07-12T16:30:54Z",
"UserData": "{\"test parameter\": \"test value\"}",
"CreateTime": "2022-07-12T16:17:54Z",
"ModifiedTime": "2022-07-12T16:30:54Z"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.