Configure Origin Configuration of a Domain
Create or modify the origin configuration of a streaming domain name, which affects the HTTP-FLV streams of the domain
Request
Request-Line
POST /lls/v1.0/domain/{domain}/origin
Request Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| domain | String | Mandatory | Delivery domain name. |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| originURLPrefixes | Array | Mandatory | Array of prefix of URL of origin address. Every prefix has the following format: [http[s]://]hostname[:port][/path/prefix]. The bits in [] are optional. If the scheme (http/https) is explicitly specified then it is forced for all origin requests, otherwise (scheme is omitted) the protocol used by client is used to contact the origin. |
Response
Response Body
Status Codes, Error Codes and Error Messages
| Status Code | Error Code | Error Message |
|---|---|---|
| 400 | LLS.Domain.NotFound | Domain name is not found. |
Examples
Configure the origin configuration of a Domain with domain names
Request
POST /lls/v1.0/domain/ingest.example.com/origin HTTP/1.1
{
"originURLPrefixes": [
"first.customer1.com",
"23.138.88.3:13889",
"http://third.customer3.com"
]
}
Configure the origin configuration of a Domain with IP addresses
Request
POST /lls/v1.0/domain/ingest2.example.com/origin HTTP/1.1
{
"originURLPrefixes": [
"first.customer1.com",
"http://23.138.88.3:13889",
"https://third.customer3.com"
]
}
Best Practices
Rate Limiting
Rate Limits
Rate limiting is posed upon the API, check API calls to comply with the rate limit below:
- 100 requests per minute
- 1000 requests per hour