Adds an origin endpoint configuration for a live streaming channel. This operation supports HLS, HLS_CMAF, and DASH protocols and DRM encryption.
Operation description
Operation description
This operation allows you to create an origin endpoint for the live packaging service. The endpoint is used to configure back-to-origin settings, security policies (such as IP blacklists and whitelists and authorization codes), and time-shifting for a channel. Currently, only the HLS protocol is supported for playback. Before creating an origin endpoint, create a live packaging channel group and channel first. After the endpoint is created, the endpoint playback URL and other configuration details are returned.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:CreateLivePackageOriginEndpoint |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GroupName |
string |
Yes |
The name of the channel group. |
channel-group-1 |
| ChannelName |
string |
Yes |
The name of the channel. |
channel-1 |
| EndpointName |
string |
Yes |
The name of the origin endpoint. The name must contain only letters, digits, hyphens (-), and underscores (). The name must be 1 to 200 characters in length. Format: [A-Za-z0-9-]+ |
endpoint-1 |
| Protocol |
string |
Yes |
The distribution protocol. |
HLS |
| ManifestName |
string |
No |
The manifest name. Default value: manifest. |
manifest |
| Description |
string |
No |
The description of the endpoint. |
This is an origin endpoint. |
| TimeshiftVision |
integer |
No |
The number of days for time-shifting. Maximum value: 30. Default value: 0, which indicates that time-shifting is not supported. |
1 |
| AuthorizationCode |
string |
No |
The authorization code. You must specify at least one of AuthorizationCode and IpWhitelist. Maximum length: 200 characters. Format: [A-Za-z0-9-_.]+ |
AbcDef123 |
| IpWhitelist |
string |
No |
The IP whitelist. Subnet masks are supported. The value 0.0.0.0/0 is not allowed. Separate multiple IP addresses with commas (,). You must specify at least one of IpWhitelist and AuthorizationCode. Maximum length: 1000 characters. |
192.168.1.0/24,10.0.0.1/24 |
| IpBlacklist |
string |
No |
The IP blacklist. Subnet masks are supported. The value 0.0.0.0/0 is not allowed. Separate multiple IP addresses with commas (,). Maximum length: 1000 characters. |
103.21.222.1/32,192.168.100.0/24 |
| ClientToken |
string |
No |
The idempotency token. |
****0311a423d11a5f7dee713535**** |
| LivePackagingConfig | LivePackagingConfig |
No |
The live packaging configuration. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| LivePackageOriginEndpoint |
object |
The LivePackageOriginEndpoint object. |
|
| AuthorizationCode |
string |
The authorization code. |
Abcded123 |
| ChannelName |
string |
The name of the channel. |
channel-1 |
| CreateTime |
string |
The time when the endpoint was created. |
2023-04-01T12:00:00Z |
| Description |
string |
The description of the endpoint. |
This is an origin endpoint. |
| EndpointName |
string |
The name of the endpoint. |
endpoint-1 |
| EndpointUrl |
string |
The playback URL of the endpoint. |
https://xxx.packagepull-abcxxx.ap-southeast-1.aliyuncsiceintl.com/v1/group01/1/ch01/manifest |
| GroupName |
string |
The name of the channel group. |
channel-group-1 |
| IpBlacklist |
string |
The IP blacklist. |
103.21.222.1/32,192.168.100.0/24 |
| IpWhitelist |
string |
The IP whitelist. |
192.168.1.0/24,10.0.0.1/24 |
| LastModified |
string |
The time when the endpoint was last modified. |
2023-04-01T12:00:00Z |
| ManifestName |
string |
The manifest name. |
manifest |
| Protocol |
string |
The protocol. Currently, only HLS is supported. |
HLS |
| TimeshiftVision |
integer |
The number of days for time-shifting. Maximum value: 30. |
1 |
| LivePackagingConfig | LivePackagingConfig |
The live packaging configuration. |
|
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
Examples
Success response
JSON format
{
"LivePackageOriginEndpoint": {
"AuthorizationCode": "Abcded123",
"ChannelName": "channel-1",
"CreateTime": "2023-04-01T12:00:00Z",
"Description": "This is an origin endpoint.",
"EndpointName": "endpoint-1",
"EndpointUrl": "https://xxx.packagepull-abcxxx.ap-southeast-1.aliyuncsiceintl.com/v1/group01/1/ch01/manifest",
"GroupName": "channel-group-1",
"IpBlacklist": "103.21.222.1/32,192.168.100.0/24",
"IpWhitelist": "192.168.1.0/24,10.0.0.1/24",
"LastModified": "2023-04-01T12:00:00Z",
"ManifestName": "manifest",
"Protocol": "HLS",
"TimeshiftVision": 1,
"LivePackagingConfig": {
"DrmConfig": {
"SystemIds": [
"9a04f079-9840-4286-ab92-e65be0885f95"
],
"EncryptionMethod": "SAMPLE_AES",
"IV": "00000000000000000000000000000000",
"Url": "https://exampledrm.com/path?arg1=xxx",
"RotatePeriod": 0,
"ContentId": "live-axb1-9dd2fa123"
},
"SegmentDuration": 6,
"UseAudioRenditionGroups": true,
"LiveManifestConfigs": [
{
"SegmentCount": 3,
"DateTimeInterval": 5,
"MinUpdatePeriod": 8,
"AdMarkers": "NONE",
"StreamOrder": "ORIGINAL",
"MinVideoBitrate": 1000000,
"MaxVideoBitrate": 8000000,
"MinBufferTime": 8,
"PresentationDelay": 12,
"ManifestDuration": 60,
"SegmentTemplateFormat": "NUMBER_TIMELINE",
"PartHoldBackMs": 0
}
],
"PartDurationMs": 0
}
},
"RequestId": "******11-DB8D-4A9A-875B-275798******"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.