Creates the mapping between a main streaming domain and a sub-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 AddLiveDomainPlayMapping

The operation that you want to perform. Set the value to Add Live Domain PlayMapping.

PlayDomain String Yes play.example.com

The sub-streaming domain.

PullDomain String Yes example.com

The main streaming domain.

RegionId String No cn-beijing

The ID of the region where the streaming domain resides.

Response parameters

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

The ID of the request.

Examples

Sample requests

http(s)://live.aliyuncs.com? Action=AddLiveDomainPlayMapping
&PlayDomain=play.example.com
&PullDomain=example.com
&<Common request parameters>

Sample success responses

XML format

<AddLiveDomainPlayMappingResponse>
  <RequestId>16A96B9A-F203-4EC5-8E43-CB92E68F4CD8</RequestId>
</AddLiveDomainPlayMappingResponse>

JSON format

{
    "RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8" 
}

Error codes

HTTP status code Error code Error message Description
400 ConfigAlreadyExists Config has already exist. The error message returned because an existing mapping is found.

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