Disables stream ingest for a specified stream. You can preset a time to resume the stream.
Operation description
Calls this operation to disable stream ingest for a specified stream. You can preset a time to resume the stream. If no preset time is specified, call the ResumeLiveStream operation to resume the live stream. This operation currently supports only publisher (streamer ingest).
This operation disables live streams by adding them to a blacklist. The upper limit is 10,000 streams. If this limit is exceeded, the disable operation fails. Monitor the number of currently disabled streams. Call the DescribeLiveStreamsBlockList operation to query the number of disabled streams.
If you only interrupt a live stream without adding it to the blacklist, the stream does not count toward the 10,000-stream blacklist quota.
QPS limit
The maximum queries per second (QPS) per user for this operation is 20. If this limit is exceeded, API calls are throttled, which may affect your business. Call this operation appropriately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:ForbidLiveStream |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| DomainName |
string |
Yes |
The ingest domain. |
demo.aliyundoc.com |
| AppName |
string |
Yes |
The name of the application to which the ingest stream belongs. You can view the AppName on the Stream Management page. |
liveApp**** |
| StreamName |
string |
Yes |
The name of the ingest stream. You can view the StreamName on the Stream Management page. |
liveStream**** |
| LiveStreamType |
string |
Yes |
Specifies whether to disable stream ingest or streaming. Currently, only disabling stream ingest is supported: publisher. Valid values:
|
publisher |
| Oneshot |
string |
No |
Specifies whether to only interrupt the stream without adding it to the blacklist. Valid values:
Note
Default value: no. Valid values:
|
yes |
| ResumeTime |
string |
No |
The time to resume the stream. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). Note
|
2015-12-01T10:37:00Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
16BFE188-B193-4C3C-ADC5-79A7E31486EA |
Examples
Success response
JSON format
{
"RequestId": "16BFE188-B193-4C3C-ADC5-79A7E31486EA"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidResumeTime.Malformed | Specified parameter ResumeTime is not valid. | |
| 400 | QuotaExceeded.Blacklist | Exceed max blacklist count limit | |
| 400 | ConfigAlreadyExists | Config has already exist. | |
| 500 | InternalError | The request processing has failed due to backend service exception. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.