Membuat program baru.
Deskripsi operasi
Memanggil operasi CreateProgram untuk membuat program.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:CreateProgram |
create |
*全部资源
|
None | None |
Sintaks permintaan
POST / HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProgramName |
string |
Yes |
Nama program. |
program1 |
| ChannelName |
string |
Yes |
Nama saluran. |
MyChannel |
| SourceType |
string |
Yes |
Jenis sumber program. |
vodSource |
| SourceLocationName |
string |
Yes |
Nama lokasi sumber. |
MySourceLcation |
| SourceName |
string |
Yes |
Nama sumber. |
MySource |
| Transition |
string |
Yes |
Informasi transisi program. |
{"Type": "RELATIVE", "RelativePosition": "AFTER_PROGRAM", "RelativeProgram": "program2"} |
| ClipRange |
string |
No |
Informasi klip. |
{StartOffsetMillis: 213123, EndOffsetMillis: 213134} |
| AdBreaks |
string |
No |
Informasi jeda iklan. |
[{"MessageType":"SPLICE_INSERT","OffsetMillis":1000,"SourceLocationName":"MySourceLocation","SourceName":"MyAdSource","SpliceInsertSettings":{"AvailNumber":0,"AvailExpected":0,"SpliceEventID":1,"UniqueProgramID":0}}] |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID Permintaan |
xxx-xxxx-xxxxx-xxxx |
| Program | ChannelAssemblyProgram |
Informasi program. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "xxx-xxxx-xxxxx-xxxx",
"Program": {
"GmtCreate": "2024-04-02T00:58:19Z\n",
"ChannelName": "MyChannel",
"SourceLocationName": "MySourceLocation",
"AdBreaks": [
{
"TimeSignalSettings": "{\"segmentationEventID\":0,\"segmentationUPIDType\":14,\"segmentationUPID\":\"upid\",\"segmentationTypeID\":48,\"segmentNumber\":0,\"segmentsExpected\":0,\"subSegmentNumber\":1,\"subSegmentsExpected\":0}\n",
"OffsetMillis": 1000,
"ChannelName": "MyChannel",
"SourceLocationName": "MySourceLocation",
"SpliceInsertSettings": "{\"AvailNumber\":0,\"AvailExpected\":0,\"SpliceEventID\":1,\"UniqueProgramID\":0}\n",
"SourceName": "MyAdSource",
"ProgramName": "program_name\n",
"MessageType": "SPLICE_INSERT"
}
],
"SourceType": "vodSource",
"Transition": "{\"Type\": \"RELATIVE\", \"RelativePosition\": \"AFTER_PROGRAM\", \"RelativeProgram\": \"program2\"}\n",
"GmtModified": "2024-04-02T00:58:19Z\n",
"SourceName": "MySource",
"ClipRange": "{StartOffsetMillis: 213123, EndOffsetMillis: 213134}\n",
"Arn": "acs:ims:mediaweaver:::program/myChannel/MyProgram\n",
"ProgramName": "program1"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.