Disables a live stream. You can schedule the time when this live stream is resumed.
Operation description
If you do not specify a recovery time, call the ResumeLiveStream operation to resume the disabled live stream. This operation can only be performed by hosts (publisher).
This operation disables a live stream by adding the stream to the blacklist. You can disable up to 10,000 live streams. Call the DescribeLiveStreamsBlockList operation to query the number of live streams that are disabled.
An interrupted live stream is not added to the blacklist and does not occupy the quota.
QPS limit
You can call this operation up to 20 times per second per account. Requests that exceed this limit are dropped and you may experience service interruptions.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
live:ForbidLiveStream | get | *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 view AppName, go to Stream Management. | liveApp**** |
StreamName | string | Yes | The name of the stream. To view StreamName, go to Stream Management. | liveStream**** |
LiveStreamType | string | Yes | Specifies whether the stream is ingested by a streamer or played by a client. Currently, only publisher (streamer ingest) is supported. | publisher |
Oneshot | string | No | Specifies whether to only interrupt the stream without adding it to the blacklist. Valid values:
Note Default value: no. | yes |
ResumeTime | string | No | The time when the blacklisted stream is automatically unblocked. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in 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.