

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

# 用于创建操作的 JSON 有效载荷
<a name="schedule-create-json"></a>

以下各节显示了负载的结构以及 MediaLive 计划中每种创建操作类型的有效负载示例。

**Topics**
+ [输入切换操作 – 有效载荷](cli-schedule-fields-for-input-switch.md)
+ [输入准备操作 – 有效载荷](cli-schedule-fields-for-input-prep.md)
+ [激活全局图像操作 – 有效载荷](cli-schedule-fields-for-activate-image.md)
+ [停用全局叠加操作 – 有效载荷](cli-schedule-fields-for-deactivate-image.md)
+ [激活按输出图像操作 – 有效载荷](cli-schedule-fields-for-activate-image-per-output.md)
+ [停用按输出叠加操作 – 有效载荷](cli-schedule-fields-for-deactivate-image-per-output.md)
+ [激活动态图形叠加 – 有效载荷](cli-schedule-fields-activate-mgi.md)
+ [停用动态图形叠加 – 有效载荷](cli-schedule-fields-deactivate-mgi.md)
+ [Splice\$1insert 消息 – 有效载荷](cli-schedule-fields-for-splice-insert.md)
+ [Time\$1signal 消息 – 有效载荷](cli-schedule-fields-for-time-signal.md)
+ [Return-to-network 消息-有效载荷](cli-schedule-fields-for-return-network.md)
+ [ID3 元数据项-负载](cli-schedule-fields-for-id3.md)
+ [ID3 分段标签项目 — 有效载荷](cli-schedule-fields-id3-segment-tag.md)
+ [暂停管道操作 – 有效载荷](cli-schedule-fields-for-pause.md)
+ [创建操作组合](cli-example-multiple-creates.md)

# 输入切换操作 – 有效载荷
<a name="cli-schedule-fields-for-input-switch"></a>

以下各节显示输入切换操作的有效载荷。

在此有效载荷中，`ScheduleActionStartSettings` 仅包含 `FixedModeScheduleActionStartSettings`、`ImmediateModeScheduleActionStartSettings` 或 `FollowModeScheduleActionStartSettings` 中的一个。

有关每个标签的示例，请参阅以下示例。

有关以下 JSON 中字段和值的含义的信息，请参阅 [输入切换的字段](schedule-fields-for-ips.md)。

```
{
"ChannelId": "string",
"Creates": {
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "FollowModeScheduleActionStartSettings": {
     "FollowPoint": "enum",
     "ReferenceActionName": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
    "InputSwitchSettings": {
     "InputAttachmentNameReference": "string",
     "InputClippingSettings": {
      "InputTimecodeSource": "enum",
      "StartTimecode": {
       "Timecode": "string"
      },
      "StopTimecode": {
       "LastFrameClippingBehavior": "enum",
       "Timecode": "string"
      }
     },
     "UrlPath": ["string", ...]
    }
   }
  ]
 }
}
```

## 切换到固定启动时间的实时输入的示例
<a name="json-switch-example-1"></a>

此请求示例将在固定启动时间切换到实时输入。切换操作称为 `studio-feed`，它会切换到连接到名为 `live-studio-feed` 的输入附件的输入。它会在指定的 UTC 时间切换到此输入。

```
{
  "ChannelId": "999999",
  "Creates": {
    "ScheduleActions": [
      {
       "ScheduleActionStartSettings": {
          "FixedModeScheduleActionStartSettings": {
            "Time": "2018-05-21T20:42:19.000Z"
           }
          },
      "ActionName": "studio-feed",
      "ScheduleActionSettings": {
        "InputSwitchSettings": {
          "InputAttachmentNameReference": "live-studio-feed" 
     }
    }
   }
  ]
 }
}
```

## 静态文件切换为跟随的示例
<a name="json-switch-example"></a>

此请求示例是切换到静态文件输入以跟随前一个输入的结束。切换操作称为 `action-ad-003`，它会切换到连接到名为 `zel-cafe` 的输入附件的输入。当名为 `action-ad-002` 的操作结束时，它会切换到此输入。此操作的文件会被剪辑，使其在 30 秒零 11 帧后结束：

```
{
  "ChannelId": "999999",
  "Creates": {
      "ScheduleActions": [
          {
            "ScheduleActionStartSettings": {
              "FollowModeScheduleActionStartSettings": {
                "FollowPoint": "END",
                "ReferenceActionName": "action-ad-002"
              }
            },
            "ActionName": "action-ad-003",
              "ScheduleActionSettings": {
                 "InputSwitchSettings": {
                    "InputAttachmentNameReference": "zel-cafe",
                      "InputClippingSettings": {
                          "InputTimecodeSource": "ZEROBASED",
               "StopTimecode":{
                 "Timecode": "00:00:30:11",
                 "LastFrameClippingBehavior": "INCLUDE_LAST_FRAME"
       }
      }
     }
    }
   }
  ]
 }
}
```

## 切换到具有即时启动时间的动态输入的示例
<a name="json-switch-example2"></a>

此请求示例是立即切换到动态文件输入。切换操作称为 `action-unscheduled-standby`，它会切换到连接到名为 `dynamic-unscheduled-standby` 的输入附件的输入。对于这种用于动态输入的用法，要使用的文件是 `oceanwaves.mp4`。

```
{
  "ChannelId": "999999",
  "Creates": {
    "ScheduleActions": [
      {
        "ScheduleActionStartSettings": 
          {
          "ImmediateModeScheduleActionStartSettings": {
          }
         },
       "ActionName": "action-unscheduled-slate",
        "ScheduleActionSettings": {
          "InputSwitchSettings": {
            "InputAttachmentNameReference": "slate",
            "UrlPath":[
              "main/oceanwaves.mp4",
              "redundant/oceanwaves.mp4"]
     }
    }
   }
  ]
 }
}
```

# 输入准备操作 – 有效载荷
<a name="cli-schedule-fields-for-input-prep"></a>

以下各节显示输入切换操作的有效载荷。

在此有效载荷中，`ScheduleActionStartSettings` 仅包含 `FixedModeScheduleActionStartSettings`、`ImmediateModeScheduleActionStartSettings` 或 `FollowModeScheduleActionStartSettings` 中的一个。

有关每个标签的示例，请参阅以下示例。

有关以下 JSON 中字段和值的含义的信息，请参阅 [输入切换的字段](schedule-fields-for-ips.md)。

```
{
"ChannelId": "string",
"Creates": {
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "FollowModeScheduleActionStartSettings": {
     "FollowPoint": "enum",
     "ReferenceActionName": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
    "InputPrepareSettings": {
     "InputAttachmentNameReference": "string",
     "InputClippingSettings": {
      "InputTimecodeSource": "enum",
      "StartTimecode": {
       "Timecode": "string"
      },
      "StopTimecode": {
       "LastFrameClippingBehavior": "enum",
       "Timecode": "string"
      }
     },
     "UrlPath": ["string", ...]
     }
    }
   }
  ]
 }
}
```

## 使用固定启动时间的输入准备示例
<a name="json-prep-example-1"></a>

此请求示例将在固定启动时间切换到实时输入。切换操作称为 `studio-feed`，它会切换到连接到名为 `live-studio-feed` 的输入附件的输入。它会在指定的 UTC 时间切换到此输入。

```
{
  "ChannelId": "999999",
  "Creates": {
    "ScheduleActions": [
      {
       "ScheduleActionStartSettings": {
          "FixedModeScheduleActionStartSettings": {
            "Time": "2018-05-21T20:42:19.000Z"
           }
          },
      "ActionName": "studio-feed",
      "ScheduleActionSettings": {
        "InputSwitchSettings": {
          "InputAttachmentNameReference": "live-studio-feed"
     }
    }
   }
  ]
 }
}
```

## 输入准备为跟随的示例
<a name="json-prep-example-2"></a>

此请求示例是切换到静态文件输入以跟随前一个输入的结束。切换操作称为 `action-ad-003`，它会切换到连接到名为 `zel-cafe` 的输入附件的输入。当名为 `action-ad-002` 的操作结束时，它会切换到此输入。此操作的文件会被剪辑，使其在 30 秒零 11 帧后结束：

```
{
  "ChannelId": "999999",
  "Creates": {
      "ScheduleActions": [
          {
            "ScheduleActionStartSettings": {
              "FollowModeScheduleActionStartSettings": {
                "FollowPoint": "END",
                "ReferenceActionName": "action-ad-002"
              }
            },
            "ActionName": "action-ad-003",
              "ScheduleActionSettings": {
                 "InputSwitchSettings": {
                    "InputAttachmentNameReference": "zel-cafe",
                      "InputClippingSettings": {
                          "InputTimecodeSource": "ZEROBASED",
               "StopTimecode":{
                 "Timecode": "00:00:30:11",
                 "LastFrameClippingBehavior": "INCLUDE_LAST_FRAME"
              }
            }
          }
        }
      }
    ]
  }
}
```

# 激活全局图像操作 – 有效载荷
<a name="cli-schedule-fields-for-activate-image"></a>

有关以下 JSON 中字段和值的含义的信息，请参阅 [激活全局图像叠加的字段](schedule-fields-for-activate-image.md)。

```
{
"ChannelId": "string",
"Creates": {
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
    "StaticImageActivateSettings": {
     "Duration": integer,
     "FadeIn": integer,
     "FadeOut": integer,
     "Height": integer,
     "Image": {
      "PasswordParam": "string",
      "Uri": "string",
      "Username": "string"
     },
     "ImageX": integer,
     "ImageY": integer,
     "Layer": integer,
     "Opacity": integer,
     "Width": integer
     }
    }
   }
  ]
 }
}
```

## 示例
<a name="json-activate-image-example"></a>

此请求示例创建一个图像叠加，将其插入通道中每个输出组的每个视频输出中。叠加使用存储在 Amazon S3 存储桶中的文件。请求不包含持续时间，因此不包含淡出。相反，目的是在适当的时间发送单独的停用请求。所有时间均以毫秒为单位，并且所有位置值都以像素为单位：

```
{
  "ChannelId": "999999",
  "Creates": {
  "ScheduleActions": [
    {
      "ScheduleActionStartSettings": {
        "FixedModeScheduleActionStartSettings": {
          "Time": "2018-05-21T20:42:19.000Z"
        }
      },
      "ActionName": "corporate-logo-030",
      "ScheduleActionSettings": {
        "StaticImageActivateSettings": {
          "Image": {
          "PasswordParam": "corplogo!2312",
          "Uri": "s3ssl://amzn-s3-demo-bucket/logos/corporate/high-res.bmp",
          "Username": "medialiveoperator"
          },
          "Layer": 1,
          "FadeIn": 1500,
          "Height": 900
          "Width": 800,
          "ImageX": 200,
          "ImageY": 300,
          "Opacity": 60,
          }
        }
      }
    ]
  }
}
```

# 停用全局叠加操作 – 有效载荷
<a name="cli-schedule-fields-for-deactivate-image"></a>

有关以下 JSON 中字段和值的含义的信息，请参阅 [停用全局图像叠加的字段](schedule-fields-for-deactivate-image.md)。

```
{
 "ChannelId": "string",
 "Creates": {
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
    "StaticImageDeactivateSettings": {
     "FadeOut": integer,
     "Layer": integer
    }
   }
  }
 ]
}
```

## 示例
<a name="json-deactivate-image-example"></a>

此请求示例创建一个操作来在 20:42:04.000（UTC）使用一个 500 毫秒的淡出（已添加到结束时间）删除图像叠加，这意味着叠加将在 20:42:04.500 不可见。

该操作将删除全局图层第 4 层中的图像叠加。这意味着*只有使用全局操作 (StaticImageActivateSettings) 插入图像时，它才*会将其删除。它不会删除按输出处理的第 4 层的叠加。

```
{
  "ChannelId": "999999",
  "Creates": {
  "ScheduleActions": [
    {
      "ScheduleActionStartSettings": {
        "FixedModeScheduleActionStartSettings": {
          "Time": "2018-05-21T20:42:04.000Z"
        }
      },
      "ActionName": "stop-overlay-029",
      "ScheduleActionSettings": {
        "StaticImageDeactivateSettings": {
          "FadeOut": 500,
          "Layer": 4
          }
        }
      }
    ]
  }
}
```

# 激活按输出图像操作 – 有效载荷
<a name="cli-schedule-fields-for-activate-image-per-output"></a>

有关以下 JSON 中字段和值的含义的信息，请参阅 [激活按输出图像叠加的字段](schedule-fields-activate-image-per-output.md)。

```
{
"ChannelId": "string",
"Creates": {
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
    "StaticImageOutputActivateSettings": {
     "Duration": integer,
     "FadeIn": integer,
     "FadeOut": integer,
     "Height": integer,
     "Image": {
      "PasswordParam": "string",
      "Uri": "string",
      "Username": "string"
     },
     "ImageX": integer,
     "ImageY": integer,
     "Layer": integer,
     "Opacity": integer,
     "OutputNames": [
       {}
      ],
     "Width": integer
     }
    }
   }
  ]
 }
}
```

## 示例
<a name="json-deactivate-image-per-output-example"></a>

此请求示例创建一个图像叠加，将其插入通道中的特定输出中。叠加使用存储在 Amazon S3 存储桶中的文件。该请求将图像插入输出 `hls-high-res` 和 `mss-high-res`。图像的大小必须适合这些输出中的视频分辨率。

该请求始终存在。因此，它被设置为立即启动（频道启动后）。所有时间均以毫秒为单位，并且所有位置值都以像素为单位：

```
{
  "ChannelId": "999999",
  "Creates": {
  "ScheduleActions": [
    {
        "ScheduleActionStartSettings": 
          {
          "ImmediateModeScheduleActionStartSettings": {
          }
         },
      },
      "ActionName": "logo-1280",
      "ScheduleActionSettings": {
        "StaticImageOutputActivateSettings": {
          "Image": {
          "PasswordParam": "corplogo!2312",
          "Uri": "s3ssl://amzn-s3-demo-bucket/logos/corporate/10percent-1280.bmp",
          "Username": "medialiveoperator"
          },
          "Layer": 0,
          "outputNames": [
            hls-high-res,mss-high-res
           ],
          "ImageX": 200,
          "ImageY": 300,
          "FadeIn": 1500,
          "Opacity": 60
          }
        }
      }
    ]
  }
}
```

# 停用按输出叠加操作 – 有效载荷
<a name="cli-schedule-fields-for-deactivate-image-per-output"></a>

有关以下 JSON 中字段和值的含义的信息，请参阅 [停用按输出图像叠加的字段](schedule-fields-deactivate-image-per-output.md)。

```
{
 "ChannelId": "string",
 "Creates": {
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
    "StaticImageOutputDeactivateSettings": {
     "FadeOut": integer,
     "Layer": integer,
     "OutputNames"
    }
   }
  }
 ]
}
```

## 示例
<a name="cli-schedule-fields-for-deactivate-image-per-output-example"></a>

停用操作会停用指定按输出层、指定输出中的图像。

在此示例中（继激活示例），该操作将移除输出中每输出第 4 层中的所有图像叠加层。 hls-high-res

```
{
  "ChannelId": "999999",
  "Creates": {
  "ScheduleActions": [
    {
      "ScheduleActionStartSettings": {
        "FixedModeScheduleActionStartSettings": {
          "Time": "2018-05-21T20:42:04.000Z"
        }
      },
      "ActionName": "stop-layer4-all-outputs",
      "ScheduleActionSettings": {
        "StaticImageOutputDeactivateSettings": {
          "outputNames": [
            hls-high-res
           ],
          "FadeOut": 500,
          "Layer": 4
          }
        }
      }
    ]
  }
}
```

# 激活动态图形叠加 – 有效载荷
<a name="cli-schedule-fields-activate-mgi"></a>

有关以下 JSON 中字段和值的含义的信息，请参阅 [激活动态图形叠加的字段](schedule-fields-for-mg.md)。

```
{
 "ChannelId": "string",
 "Creates": {
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
    "MotionGraphicsImageActivateSettings": {
     "Duration": integer
     "Url": "string"
     "Username": "string",
     "PasswordParam": "string"
    }
   }
  ]
 }
}
```

## 示例
<a name="json-activate-mgi-example"></a>

此请求示例创建了一个名为 mg\$1ticker\$1tape 的动态图形叠加操作。动态图形资产存储在 http://example.com/ticker\$1tape.html。此服务器需要用户凭证。该请求不包括持续时间。相反，目的是在适当的时间发送单独的停用请求。

```
{
"ChannelId": "999999",
"Creates": {
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "2018-05-21T20:42:04.000Z"
    }
   },
   "ActionName": "mg_ticker_tape",
   "ScheduleActionSettings": {
    "MotionGraphicsImageActivateSettings": {
     "Url": "https://example.com/ticker_tape.html"
     "Username": "medialiveoperator",
     "PasswordParam": "/medialive/12345"
    }
   }
  ]
 }
}
```

# 停用动态图形叠加 – 有效载荷
<a name="cli-schedule-fields-deactivate-mgi"></a>

有关以下 JSON 中字段和值的含义的信息，请参阅 [停用动态图形叠加的字段](schedule-fields-for-mg-deactivate.md)。

```
{
"ChannelId": "string",
"Creates": {
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
    "MotionGraphicsImageDeactivateSettings": {
     }
    }
   }
  ]
 }
}
```

## 示例
<a name="json-deactivate-mgi-example"></a>

此请求示例创建了一个操作，用于在 23:59:00.000（UTC）结束动态图形叠加：

```
{
"ChannelId": "999999",
"Creates": {
 "ScheduleActions": [
  {
  "ScheduleActionStartSettings": {
   "FixedModeScheduleActionStartSettings": {
   "Time": "2018-05-21T23:59:00.000Z"
   },
   "ActionName": "deactivate-ticker-tape",
   "ScheduleActionSettings": {
    "MotionGraphicsImageDeactivateSettings": {
     }
    }
   }
  ]
 }
}
```

# Splice\$1insert 消息 – 有效载荷
<a name="cli-schedule-fields-for-splice-insert"></a>

有关以下 JSON 中字段和值的含义的信息，请参阅 [splice\$1insert 消息字段](schedule-fields-for-splice_insert.md)。

```
{
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "FollowModeScheduleActionStartSettings": {
     "FollowPoint": "enum",
     "ReferenceActionName": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
    "Scte35SpliceInsertSettings": {
     "Duration": integer,
     "SpliceEventId": integer
    }
   }
  }
 ]
}
```

## 具有固定启动时间的拼接插入示例
<a name="json-splice-insert-example"></a>

此请求示例为 splice\$1insert 创建了一个 UTC 启动时间为 20:42:04.000 的操作。它还具有一个可能从您数据库引用广告效用的 `ActionName`、一个表示拼接事件 ID 的唯一整数以及持续时间 1350000 kHz 次（15 秒）。

```
{
  "ChannelId": "999999",
  "Creates": {
    "ScheduleActions": [
      {
        "ScheduleActionStartSettings": {
          "FixedModeScheduleActionStartSettings": {
            "Time": "2018-05-21T20:42:04.000Z"
          }
        },
      "ActionName": "adavail-3708",
      "ScheduleActionSettings": {
        "Scte35SpliceInsertSettings": {
          "SpliceEventId": 3708,
          "Duration": 1350000
          }
        }
      }
    ]
  }
}
```

## 拼接插入为跟随的示例
<a name="json-splice-insert-example2"></a>

该请求示例创建一个操作，以便在名为 nature-doco-003 的输入切换结束后插入 splice\$1insert。该操作具有可能从数据库中引用广告效用的 `ActionName`、表示拼接事件 ID 的唯一整数以及表示持续时间的 1,350,000 kHz 时钟周期（15 秒）。

如果您希望在输入完成后立即执行广告效用，但不知道何时执行该广告效用，SCTE 35 消息的跟随模式是非常有用的。

```
{
  "ChannelId": "999999",
  "Creates": {
    "ScheduleActions": [
      {
        "ScheduleActionStartSettings": {
         "FollowModeScheduleActionStartSettings": {
                "FollowPoint": "END",
                "ReferenceActionName": "nature-doco-003"
        }
      },
      "ActionName": "adavail-3708",
      "ScheduleActionSettings": {
        "Scte35SpliceInsertSettings": {
          "SpliceEventId": 3708,
          "Duration": 1350000
          }
        }
      }
    ]
  }
}
```

# Time\$1signal 消息 – 有效载荷
<a name="cli-schedule-fields-for-time-signal"></a>

有关以下 JSON 中字段和值的含义的信息，请参阅 [time\$1signal 消息字段](schedule-fields-for-time-signal.md)。

```
{
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "FollowModeScheduleActionStartSettings": {
     "FollowPoint": "enum",
     "ReferenceActionName": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
    "Scte35TimeSignalSettings": {
     "Scte35Descriptors": [
      {
       "Scte35DescriptorSettings": {
        "SegmentationDescriptorScte35DescriptorSettings": {
         "DeliveryRestrictions": {
          "ArchiveAllowedFlag": "enum",
          "DeviceRestrictions": "enum",
          "NoRegionalBlackoutFlag": "enum",
          "WebDeliveryAllowedFlag": "enum"
         },
         "SegmentNum": integer,
         "SegmentationCancelIndicator": "enum",
         "SegmentationDuration": integer,
         "SegmentationEventId": integer,
         "SegmentationTypeId": integer,
         "SegmentationUpid": "string",
         "SegmentationUpidType": integer,
         "SegmentsExpected": integer,
         "SubSegmentNum": integer,
         "SubSegmentsExpected": integer
        }
       }
      }
     ]
    }
   }
  }
 ]
}
```

## 示例
<a name="json-time-signal-example"></a>

此请求示例为 time\$1signal 创建一个操作，其 UTC 启动时间为 20:42:04.000，`SegmentationEventId` 为唯一整数。对于限制字段，`NoRegionalBlackoutFlag` 具有一个限制集（已发生区域遮蔽）。

```
{
  "ChannelId": "999999",
  "Creates": {
  "ScheduleActions": [
    {
      "ScheduleActionStartSettings": {
        "FixedModeScheduleActionStartSettings": {
          "Time": "2018-05-21T20:42:04.000Z"
        }
      },
      "ActionName": "adavail-3708",
      "ScheduleActionSettings": {
        "Scte35TimeSignalSettings": {
          "Scte35Descriptors": [
          {
            "Scte35DescriptorSettings": {
              "SegmentationDescriptorScte35DescriptorSettings": {
                "SubSegmentsExpected": 0,
                "SegmentationEventId": 7054,
                "SegmentationDuration": 1350000,
                "SegmentationCancelIndicator": 0,
                "SubSegmentNum": 0,
                "SegmentationUpidType": 12,
                "SegmentNum": 0,
                "SegmentationCancelIndicator": "SEGMENTATION_EVENT_NOT_CANCELED",
                "DeliveryRestrictions": {
                  "DeviceRestrictions": "NONE",
                  "WebDeliveryAllowedFlag": "WEB_DELIVERY_ALLOWED",
                  "NoRegionalBlackoutFlag": "REGIONAL_BLACKOUT",
                  "ArchiveAllowedFlag": "ARCHIVE_ALLOWED"
                },
                "SegmentationUpid": "4a414e3136494e4155303031",
                "SegmentationTypeId": 52,
                "SegmentsExpected": 0
                  }
                }
              }
            ]
          }
        }
      }
    ]
  }
}
```

# Return-to-network 消息-有效载荷
<a name="cli-schedule-fields-for-return-network"></a>

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

```
{
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "FollowModeScheduleActionStartSettings": {
     "FollowPoint": "enum",
     "ReferenceActionName": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
    "Scte35ReturnToNetworkSettings": {
     "SpliceEventId": integer                
    }
   }
  }
 ]
}
```

## 示例
<a name="json-return-network-example"></a>

此请求示例创建了 UTC 开始时间 return-to-network为 20:42:19 的。

```
{
  "ChannelId": "999999",
  "Creates": {
    "ScheduleActions": [
      {
        "ScheduleActionStartSettings": {
          "FixedModeScheduleActionStartSettings": {
            "Time": "2018-05-21T20:42:19.000Z"
          }
      },
      "ActionName": "end-adavail-3708",
      "ScheduleActionSettings": {
        "Scte35ReturnToNetworkSettings": {
          }
        }
      }
    ]
  }
}
```

# ID3 元数据项-负载
<a name="cli-schedule-fields-for-id3"></a>

有关以下 JSON 中字段和值的含义的信息，请参阅 [ID3 元数据字段](schedule-fields-for-id3-userdata.md)。

** HlsTimedMetadataSettings动作的有效载荷**

```
{
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
     "HlsTimedMetadataSettings": {
     "Id3": "string"
    }
   }
  }
 ]
}
```

** TimedMetadataSettings动作的有效载荷**

```
{
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
     "TimedMetadataSettings": {
     "Id3": "string"
    }
   }
  }
 ]
}
```

## 示例
<a name="json-id3-example"></a>

此请求示例使用`HlsTimedMetadataSettings`操作。它会创建 ID3 元数据，以便在世界标准时间 13:35:59 插入到相应的输出组中。

```
{
  "ChannelId": "999999",
  "Creates": {
  "ScheduleActions": [
    {
      "ScheduleActionStartSettings": {
        "FixedModeScheduleActionStartSettings": {
          "Time": "2019-01-02T13:35:59Z"
        }
      },
      "ActionName": "id3-metadata.2019-01-02T13:35:59Z",
      "ScheduleActionSettings": {
        "HlsTimedMetadataSettings": {
          "Id3": "SUQzBAAAAAAAF1RJVDIAAAANAAADSGVsbG8gV29ybGQA"
          }
        }
      }
    ]
  }
}
```

# ID3 分段标签项目 — 有效载荷
<a name="cli-schedule-fields-id3-segment-tag"></a>

有关以下 JSON 中字段和值的含义的信息，请参阅 [ID3 区段标签字段](schedule-fields-for-id3-segment-tags.md)。

** HlsId3 SegmentTaggingSettings 动作的有效载荷**

```
{
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
	"HlsId3SegmentTaggingSettings": {
         "Tag": "string"
         "Id3": "string"
    }
   }
  }
 ]
}
```

**Id3 SegmentTaggingSettings 操作的有效载荷**

```
{
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
	"Id3SegmentTaggingSettings": {
         "Tag": "string"
         "Id3": "string"
    }
   }
  }
 ]
}
```

## 使用标签属性的示例
<a name="json-id3-segment-example"></a>

此请求示例使用`HlsId3SegmentTaggingSettings`操作。它会创建一个 ID3 分段标签，从世界标准时间 13:35:59 开始插入。此示例使用`Tag`属性，这意味着您仅`value`为该`TXXX`字段指定内容。在此示例中，内容是段的日期、时间和编号。

```
{
  "ChannelId": "999999",
  "Creates": {
  "ScheduleActions": [
    {
      "ScheduleActionStartSettings": {
        "FixedModeScheduleActionStartSettings": {
          "Time": "2020-01-02T13:35:59Z"
        }
      },
      "ActionName": "id3-datetime-and-segment",
      "ScheduleActionSettings": {
        "HlsId3SegmentTaggingSettings": {
          "Tag": "$dt$-$sn$"
          }
        }
      }
    ]
  }
}
```

## 使用 Id3 属性的示例
<a name="json-ide-segment-id3-example"></a>

这个请求示例创建了一个要立即插入的 ID3 段标记。此示例使用`Id3`属性，这意味着内容被编码为 base64。

```
{
  "ChannelId": "999999",
  "Creates": {
  "ScheduleActions": [
    {
      "ScheduleActionStartSettings": {
        ImmediateModeScheduleActionStartSettings
       }
      },
      "ActionName": "id3-song309",
      "ScheduleActionSettings": {
        "HlsId3SegmentTaggingSettings": {
          "Id3": "SUQzBAAAAAAAF1RJVDIAAAANAAADSGVsbG8gV29ybGQA"
          }
        }
      }
    ]
  }
}
```

# 暂停管道操作 – 有效载荷
<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": [
       {}
      ]
     }
    }
   }
  ]
 }
}
```

# 创建操作组合
<a name="cli-example-multiple-creates"></a>

以下是要传递给`batch-update-schedule` AWS CLI 命令`--creates`参数的 JSON 正文的示例。它包含两个要创建的操作。在此示例中，两个操作均为 splice\$1inserts，但实际上您可以组合任意数量和任意类型的创建操作。

```
{
    "ScheduleActions": [
      {
        "ScheduleActionSettings": {
          "Scte35SpliceInsertSettings": {
            "Duration": 1350000,
            "SpliceEventId": 3
          }
        },
        "ActionName": "SpliceInsert-01",
        "ScheduleActionStartSettings": {
          "FixedModeScheduleActionStartSettings": {
            "Time": "2018-11-05T16:10:30.000Z"
          }
        }
      },
      {
        "ScheduleActionSettings": {
          "Scte35SpliceInsertSettings": {
            "Duration": 2700000,
            "SpliceEventId": 3
          }
        },
        "ActionName": "SpliceInsert-02",
        "ScheduleActionStartSettings": {
          "FixedModeScheduleActionStartSettings": {
            "Time": "2018-11-05T16:30:45.000Z"
          }
        }
      }
    ]
  }
```