Applies regional blocking to a specific live stream.
Operation description
A domain name supports a maximum of 200 regional blocking rules. If duplicate rules are configured for the same AppName and StreamName, the most recently updated rule is applied.
QPS limit
You can call this operation up to 50 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: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 AppName of the live stream. View AppNames on the Stream Management page. | liveApp**** |
StreamName | string | Yes | The name of the live stream. View StreamNames on the Stream Management page. | liveStream**** |
BlockType | string | Yes | The blocking method. Valid values: blacklist and whitelist. | blacklist |
LocationList | string | Yes | A comma-separated list of region codes to block or allow. | CN |
ReleaseTime | string | No | The time when the block will be automatically lifted, in UTC format. If not specified, it defaults to 7 days. | 2016-06-29T19:00:00Z |
Response elements
Parameter | Type | Description | Example |
object | |||
Description | string | The description of the result.
| ok |
RequestId | string | The ID of the request. | 3be7ade8-d907-483c-b24a-0dad4595beaf |
Status | string | The status of the operation. Valid values:
Note The status is ok only if all tasks succeeded. | 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.