Query the origin configuration of a domain
Query the origin configuration of a streaming domain name, which affects the HTTP-FLV streams of the domain
Request
Request-Line
GET /lls/v1.0/domain/{domain}/origin
Request Parameters
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
domain | String | Mandatory | Delivery domain name. |
Response
Response Body
Parameter | Type | Required | Description |
---|---|---|---|
-- | Array | Mandatory | Array of Domain Origin Object. |
Object: Location Traffic Summary
Parameter | Type | Required | Description |
---|---|---|---|
originURLPrefix | String | Mandatory | Prefix of URL of origin address. 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. |
Status Codes, Error Codes and Error Messages
Status Code | Error Code | Error Message |
---|---|---|
400 | LLS.Domain.NotFound | Domain name is not found. |
Examples
Modify the origin configuration of a Domain with domain names
Request
GET /lls/v1.0/domain/ingest.example.com/origin HTTP/1.1
{
"sourceType": "domain",
"originSchema": "https",
"sourceDomains": [
"first.customer1.com",
"second.customer2.com",
"third.customer3.com"
]
}
Modify the origin configuration of a Domain with IP addresses
Request
GET /lls/v1.0/domain/ingest2.example.com/origin HTTP/1.1
{
"sourceType": "ip",
"originSchema": "http",
"sourceIPs": [
"38.0.101.76",
"51.15.16.17",
"62.60.226.226"
],
"sourcePort": 443,
"sourceIPHost": "origin2.example.com"
}
Best Practices
Rate Limiting
Rate Limits
Rate limiting is posed upon the API, please kindly check your API calls to ensure complying with the rate limit below:
- 100 requests per minute
- 1000 requests per hour