Sets stream-level blocking for live streams by calling SetLiveStreamBlock.
Operation description
You can configure up to 200 live stream area blocking rules for a domain name. If duplicate rules with the same AppName and StreamName exist in the live stream area blocking rules, the most recently updated rule takes effect.
QPS limit
The single-user QPS limit for this operation is 50 calls per second. If this limit is exceeded, the API invocations are throttled, which may affect your business. Invoke this operation appropriately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:SetLiveStreamBlock |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| DomainName |
string |
Yes |
The streaming domain. |
example.com |
| AppName |
string |
Yes |
The name of the application to which the live stream belongs. You can view the AppName on the Stream Management page. |
liveApp**** |
| StreamName |
string |
Yes |
The name of the live stream. You can view the StreamName on the Stream Management page. |
liveStream**** |
| BlockType |
string |
Yes |
The blocking mode. Valid values:
Valid values:
|
blacklist |
| LocationList |
string |
Yes |
The blocked regions, such as CN and AS. Separate multiple regions with commas (,). |
CN |
| ReleaseTime |
string |
No |
The end time of the blocking period in UTC. If this parameter is not specified, the blocking lasts for 7 days by default. |
2016-06-29T19:00:00Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Description |
string |
The result description.
|
ok |
| RequestId |
string |
The request ID. |
3be7ade8-d907-483c-b24a-0dad4595beaf |
| Status |
string |
The task status. Valid values:
Note
The task is considered failed if any single subtask fails to be created. |
ok |
Examples
Success response
JSON format
{
"Description": "ok",
"RequestId": "3be7ade8-d907-483c-b24a-0dad4595beaf",
"Status": "ok"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidReleaseTime.Malformed | Specified ReleaseTime is malformed. | |
| 400 | InvalidParam | Parameter invalid. | Illegal input parameters |
| 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.