Disables the ingest of a live stream and resumes stream ingest at a specific point in time.

Note You can disable the ingest of a maximum of 10,000 live streams. If the limit is reached, you cannot disable the ingest of more live streams. Pay attention to the number of live streams that you have disabled stream ingest for. This operation can be called up to 20 times per second.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ForbidLiveStream

The operation that you want to perform. The value is ForbidLiveStream.

AppName String Yes testApp

The name of the application to which the live stream belongs.

DomainName String Yes www.yourdomain.com

The main streaming domain.

LiveStreamType String Yes publisher

The type of the live stream. The value is publisher.

StreamName String Yes testStream

The name of the live stream.

Oneshot String No yes

Specifies whether to disable stream ingest without adding the live stream to the blacklist. Valid values:

  • yes: Disable stream ingest but do not add the live stream to the blacklist. This value is available only when the live stream is ingested or played in the upstream.
  • no: Disable stream ingest and add the live stream to the blacklist
ResumeTime String No 2015-12-01T10:37:00Z

The time to resume stream ingest. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

Response parameters

Parameter Type Example Description
RequestId String 16BFE188-B193-4C3C-ADC5-79A7E31486EA

The ID of the request.

Examples

Sample requests

http(s)://live.aliyuncs.com/? Action=ForbidLiveStream
&AppName=testApp
&DomainName=www.yourdomain.com
&LiveStreamType=publisher
&StreamName=testStream
&<Common request parameters>

Sample success responses

XML format

<ForbidLiveStreamResponse>
      <RequestId>16BFE188-B193-4C3C-ADC5-79A7E31486EA</RequestId>
</ForbidLiveStreamResponse>

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. The error message returned because the specified value of the ResumeTime parameter is invalid. Specify a valid value.
400 ConfigAlreadyExists Config has already exist. The error message returned because the ingest of the live stream has been disabled.

For a list of error codes, visit the API Error Center.