

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

# 暂停管道操作 – 有效载荷
<a name="cli-schedule-fields-for-pause"></a>

有关以下 JSON 中字段和值的含义的信息，请参阅 [暂停字段](schedule-fields-for-pause.md)。

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

## 示例：暂停一个管道
<a name="json-pause-example"></a>

这个请求示例在世界标准时间 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"
              }
            ]
          }
        }
      }
    ]
  }
}
```

## 示例：取消暂停两个管道
<a name="json-unpause-example"></a>

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

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

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