SubmitLiveSnapshotJob
Submits a real-time snapshot task. If the task is submitted during an active stream, it is automatically started asynchronously. Otherwise, the task remains in an unstarted state.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SubmitLiveSnapshotJob |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobName |
string |
Yes |
The task name.
|
Screenshot task1 |
| StreamInput |
object |
Yes |
The stream input information. |
|
| Type |
string |
Yes |
The stream input type. Currently, only rtmp is supported. Valid values:
|
rtmp |
| Url |
string |
Yes |
The stream input URL.
|
rtmp://www.aliyun.com/stream |
| SnapshotOutput |
object |
Yes |
The snapshot output information. |
|
| Bucket |
string |
Yes |
The bucket of the snapshot output endpoint. |
testbucket |
| Endpoint |
string |
Yes |
The snapshot output endpoint. |
oss-cn-shanghai.aliyuncs.com |
| StorageType |
string |
Yes |
The snapshot storage type. Currently, only oss is supported. Valid values:
|
oss |
| TemplateId |
string |
Yes |
The template ID. |
****a046-263c-3560-978a-fb287782**** |
| CallbackUrl |
string |
No |
The snapshot callback URL.
|
http://www.aliyun.com/snapshot/callback |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| JobId |
string |
The task ID. |
****a046-263c-3560-978a-fb287666**** |
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
Examples
Success response
JSON format
{
"JobId": "****a046-263c-3560-978a-fb287666****",
"RequestId": "******11-DB8D-4A9A-875B-275798******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | %s | |
| 400 | InvalidParameter | %s | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | UserDisable | User is disable. | |
| 403 | Forbidden | User not authorized to operate on the specified resource. | |
| 403 | OperationDenied | Your account has not enabled the ICE service. | |
| 404 | TemplateNotFound | No such template. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.