暂停管道操作-有效载荷 - MediaLive

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

暂停管道操作-有效载荷

有关以下 JSON 中字段的含义和值的信息,请参阅暂停字段

{ "ScheduleActions": [ { "ScheduleActionStartSettings": { "FixedModeScheduleActionStartSettings": { "Time": "string" }, "ImmediateModeScheduleActionStartSettings": { } }, "ActionName": "string", "ScheduleActionSettings": { "PauseStateSettings": { "Pipelines": [ { "PipelineId": "enum" } ] } } } ] }

示例:暂停一条管道

这个请求示例在世界标准时间 20:42:19 暂停管道 0。 MediaLive 始终将命令读为:将指定的一个或多个管道设置为暂停,将所有其他管道设置为未暂停

{ "ChannelId": "999999", "Creates": { "ScheduleActions": [ { "ScheduleActionStartSettings": { "FixedModeScheduleActionStartSettings": { "Time": "2018-05-21T20:42:19Z" } }, "ActionName": "pause-pipeline-0-now", "ScheduleActionSettings": { "PauseStateSettings": { "Pipelines": [ { "PipelineId": "PIPELINE_0" } ] } } } ] } }

示例:取消暂停两个管道

此请求示例取消暂停所有当前已暂停的管道。

注意

MediaLive 始终将命令读为:将指定的一个或多个管道设置为暂停,将所有其他管道设置为未暂停。在此示例中,数Pipelines组为空。 MediaLive将这个空数组解释为:将所有管道设置为未暂停

{ "ChannelId": "999999", "Creates": { "ScheduleActions": [ { "ScheduleActionStartSettings": { "ImmediateModeScheduleActionStartSettings": {} }, "ActionName": "unpause-pipeline-0", "ScheduleActionSettings": { "PauseStateSettings": { "Pipelines": [ {} ] } } } ] } }