Adds a watermark rule.
Operation description
After you add a watermark template by calling the AddLiveStreamWatermark operation, call this operation to create a rule that applies the template.
QPS limits
You can call this operation up to 60 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:AddLiveStreamWatermarkRule | create | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
RegionId | string | No | The region ID. | cn-shanghai |
Name | string | Yes | The name of the custom rule. | WatermarkRule**** |
Domain | string | Yes | The streaming domain. | example.aliyundoc.com |
App | string | Yes | The AppName of the live stream. | liveApp**** |
Stream | string | Yes | The stream name. The following rules apply:
Note
| liveStreamA |
TemplateId | string | Yes | The ID of the watermark template. Note Get the template ID from the response of the AddLiveStreamWatermark operation. | 445409ec-7eaa-461d-8f29-4bec2eb9**** |
Description | string | No | The description of the custom rule. | my rule |
Response elements
Element | Type | Description | Example |
object | |||
RuleId | string | The ID of the watermark rule. | 445409ec-7eaa-461d-8f29-4bec2eb9**** |
RequestId | string | The request ID. | 5c6a2a0df228-4a64-af62-20e91b96**** |
Examples
Success response
JSON format
{
"RuleId": "445409ec-7eaa-461d-8f29-4bec2eb9****",
"RequestId": "5c6a2a0df228-4a64-af62-20e91b96****"
}Error codes
HTTP status code | Error code | Error message | Description |
400 | InvalidParameters | %s Please check and try again later. | Exception parameter exists, please check and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.