Creates a recording callback configuration for a streaming domain.

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 AddLiveRecordNotifyConfig

The operation that you want to perform. Set the value to AddLiveRecordNotifyConfig.

DomainName String Yes www.yourdomain.com

The main streaming domain.

NotifyUrl String Yes http://www.yourdomain.cn/examplecallback.action

The callback URL that is used to receive notifications about recording events and status. The URL must start with http:// or https://. For more information, see Recording event callbacks.

OnDemandUrl String No http://www.yourdomain.cn/ondemandcallback.action

The callback URL for on-demand recordings. The URL must start with http:// or https://. For more information, see On-demand recording callbacks.

NeedStatusNotify Boolean No false

Specifies whether to enable callbacks for recording status. Valid values:

  • true: enables callbacks for recording status.
  • false: disables callbacks for recording status. This is the default value.

Response parameters

Parameter Type Example Description
RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

The ID of the request.

Examples

Sample requests

https://live.aliyuncs.com/?Action=AddLiveRecordNotifyConfig
&DomainName=www.yourdomain.com
&NotifyUrl=http://www.yourdomain.cn/examplecallback.action
&<Common request parameters>

Sample success responses

XML format

<AddLiveRecordNotifyConfigResponse>
      <RequestId>394966CA-5940-44D7-A1C5-24211C7B07A9</RequestId>
</AddLiveRecordNotifyConfigResponse>

JSON format

{
    "RequestId": "394966CA-5940-44D7-A1C5-24211C7B07A9"
}

Error codes

HTTP status code Error code Error message Description
400 InvalidNotifyUrl.Malformed Specified NotifyUrl is invalid. The error message returned because the format of the callback URL is invalid. Check whether the value of the NotifyUrl parameter is correct.
400 InvalidNotifyUrl.Unsafe Specified NotifyUrl is not safe. The error message returned because the callback URL is unsafe. Check whether the value of the NotifyUrl parameter is correct.
400 ConfigAlreadyExists Config has already exist. The error message returned because the URL that is used to receive callback notifications is added.

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