

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 일정 작업(AWS CLI)


를 사용하여 프로그래밍 방식으로 일정을 작업 AWS CLI 할 수 있습니다. 이 장의 뒷부분에 나오는 섹션에서는 적절한 명령을 입력하는 방법을 설명합니다. 이들 섹션에서는 사용자가 AWS CLI사용의 기본 원리에 대해 잘 알고 있다고 가정합니다. 기본 사항에 대한 자세한 내용은 [AWS CLI 명령 참조](https://docs.aws.amazon.com/cli/latest/reference/)를 참조하세요.

다음 단원에서는 각 명령에 대해 설명하고 이 추가 정보를 제공합니다.
+  AWS CLI 명령 구문에 대한 설명입니다.
+ 요청 또는 응답 JSON 페이로드에 대한 스키마를 설명합니다. 이 페이로드는 AWS CLI에 대한 구문을 사용하여 표시됩니다.
+ 요청 또는 응답 JSON 페이로드의 예. 또한 이 페이로드는 AWS CLI에 대한 구문을 사용하여 표시됩니다.

JSON 콘텐츠에 대한 자세한 내용은 [AWS Elemental MediaLive API 참조](https://docs.aws.amazon.com/medialive/latest/apireference/)를 참조하는 것이 좋습니다. 이 설명서는 JSON 페이로드의 요소에서 요소를 설명하는 테이블로 연결되는 링크가 포함되므로 사용하기가 쉽습니다. 그러나는 요소에 대해 한 가지 대문자 형식(예: `SubSegmentNum`)을 AWS CLI 사용하고 API는 다른 형식(예: )을 사용하기 때문에 JSON 코드에서 요소의 구문을 조정해야 합니다`subSegmentNum`.

**Topics**
+ [

# 배치 명령을 사용하여 생성 및 삭제
](about-batch-update-schedule.md)
+ [

# 배치 업데이트 일정 명령 제출
](submitting-batch-command.md)
+ [

# 작업 생성을 위한 JSON 페이로드
](schedule-create-json.md)
+ [

# 삭제 작업을 위한 JSON 페이로드
](cli-schedule-delete-json.md)
+ [

# 생성 및 삭제 결합을 위한 JSON 페이로드
](schedule-create-and-delete-json.md)
+ [

# 일정 보기(AWS CLI)
](viewing-schedule-using-cli.md)

# 배치 명령을 사용하여 생성 및 삭제
배치 명령 업데이트

채널 일정에서 작업을 생성 및 삭제하려면 배치 업데이트 일정 명령을 사용합니다. 이 명령을 사용하면 한 번의 요청으로 여러 작업을 수행할 수 있습니다. 작업을 생성하는 명령과 삭제하는 명령이 별도로 구분되지 않습니다.

**중요**  
시작 및 실행 중인 채널로 작업할 때는 **batch-update-schedule** 명령을 사용하여 작업을 추가하거나 제거합니다. 유휴 채널에서만 **delete-schedule** 명령을 사용합니다. **delete-schedule** 명령은 예약된 모든 작업을 삭제하고 라이브 채널에서 사용할 경우 서비스 중단을 일으킬 수 있습니다.

명령을 다음과 같이 사용할 수 있습니다.
+ *단일* 요청(예: 다음 작업을 수행하는 요청)을 제출합니다.
  + 작업 하나를 생성합니다.
  + 작업 하나를 삭제합니다.
+ *배치* 요청(예: 다음 작업을 수행하는 단일 요청)을 제출합니다.
  + 여러 작업을 생성합니다.
  + 여러 작업을 삭제합니다.
  + 하나 이상의 작업을 생성하고 하나 이상의 작업을 삭제합니다.

**중요**  
생성 작업과 삭제 작업을 결합하는 명령에서는 삭제 작업이 *항상* 생성 작업보다 먼저 수행됩니다. 즉, MediaLive는 생성 작업을 일정에 추가하기 전에 일정에서 삭제 작업을 제거합니다.

**Topics**
+ [

# 배치 요청 작동 방식
](how-batch-schedule-requests-work.md)
+ [

# 다른 인터페이스의 배치 명령
](batchupdatecommand-interfaces.md)
+ [

# 다른 인터페이스의 JSON 페이로드
](batchupdatecommand-payloads.md)

# 배치 요청 작동 방식


배치의 목적은 모든 작업이 함께 통과/실패하도록 하는 것입니다. 따라서 AWS Elemental MediaLive는 배치 작업을 함께 검증합니다. MediaLive는 다음 검증을 수행합니다.
+ 생성 또는 삭제되는 각 작업은 명시적 또는 암시적으로 최소 15초 후의 시작 시간을 갖도록 합니다.
+ 작업이 일정의 기존 작업을 참조하는 경우 기존 작업에 대한 참조가 올바른지 확인합니다. 예를 들어 팔로우 입력 전환에는 팔로우 작업에 대한 참조가 포함되어 있습니다. 해당 작업이 존재해야 합니다.

한 작업에 대해 확인이 실패할 경우 배치의 모든 작업이 실패합니다.

여러 작업이 함께 통과 또는 실패하도록 하지 않으려면 배치를 제출하지 마십시오. 대신에 고유의 배치 업데이트 일정 명령으로 각 작업을 생성합니다.

확인이 성공하면 MediaLive는 작업 시작 시간과 관계없이 생성 요청 전에 모든 삭제 요청을 처리합니다.

**예제 1.**  
배치의 중요 용도 중 하나는 모두 함께 통과 또는 실패하도록 해야 하는 여러 작업을 수행하는 것입니다. 예를 들어 회사 로고를 제거하고 (광고 가능 구간으로 이동하기 위해) splice\$1insert를 즉시 삽입하려고 한다고 가정하겠습니다. 이렇게 하려면 로고를 제거하는 작업과 spice\$1insert를 삽입하는 또 하나의 작업을 생성해야 합니다. 하지만 splice\$1insert 작업 실패 시 MediaLive에서 제거 작업을 삽입하지 않거나 제거 작업 실패 시 splice\$1insert 작업을 삽입하지 않으려고 합니다. 두 작업이 모두 실패할 경우에는 훨씬 더 쉽습니다. 잘못 구성된 작업을 수정하고 나서 두 작업을 다시 제출하면 됩니다.

그러므로 배치 업데이트 일정 명령 하나를 통해 두 작업을 함께 제출합니다.

**예제 2.**  
배치의 또 한 가지 중요한 용도는 일정에 포함된 작업의 오류를 수정하는 것입니다. 예를 들어, 아직 시작되지 않았으며 잘못된 시작 시간으로 생성된 이미지 오버레이를 수정하고 싶습니다. 이렇게 하려면 다음을 포함하는 JSON을 사용하여 배치 업데이트 일정 명령 하나를 제출합니다.
+ 이미지 오버레이를 활성화하는 원래 작업을 제거하기 위한 페이로드입니다. 이 작업의 시작 시간이 잘못되었습니다.
+ 동일한 이미지 오버레이를 활성화하는 새 작업을 추가하기 위한 페이로드입니다. 이 작업의 시작 시간이 정확합니다.

# 다른 인터페이스의 배치 명령


배치 업데이트 일정 명령은 인터페이스마다 다르게 표시됩니다.
+ 에서 AWS CLI명령은 입니다`batch-update-schedule`.
+ API에서 이 명령은 `channels/channelId/schedule`에 `HTTP PUT`으로 표시됩니다.
+  AWS SDKs에서 명령은 해당 SDK 언어에 적합한 구문으로 표시됩니다.

# 다른 인터페이스의 JSON 페이로드


명령의 JSON 페이로드는 인터페이스마다 다릅니다.
+ 에서 AWS CLI페이로드의 내용은 명령을 사용하는 방법에 따라 달라집니다.
  + 두 파라미터(`channel-id` 및 `--cli-input-json`)를 사용하여 명령을 입력할 수 있습니다. 이 경우 채널 ID를 반복하고 JSON 페이로드를 포함하는 파일을 생성합니다.
  + 파라미터 세 개로 명령을 입력할 수 있습니다. 하나는 채널 ID용이고, 하나는 생성 작업을 위한 JSON 페이로드용이고(해당하는 경우), 다른 하나는 삭제 작업을 위한 JSON 페이로드용입니다(해당하는 경우). 명령에 페이로드를 전달합니다. 두 파라미터가 모두 있는 경우 각 파라미터는 별도의 페이로드를 사용합니다. 그러나 두 페이로드 모두 검증되고 배치로 실행됩니다.

  의 페이로드는 항상 pascal 대/소문자(상위 카멜 대/소문자) AWS CLI 입니다.
+ API에는 두 섹션(`CREATES` 및 `DELETES`)으로 이루어진 페이로드가 한 개 있습니다. 요청에 섹션 중 하나 또는 둘 다 포함할 수 있습니다.

  API의 페이로드는 항상 변수 이름의 경우 Camel 케이스이고 클래스의 경우 Pascal 케이스입니다.
+  AWS SDKs에서 JSON 페이로드는 해당 SDK 언어에 적합한 구문으로 표시됩니다.

개별 작업에 더 익숙해지려면 MediaLive 콘솔을 사용하여 작업을 생성하는 것이 좋습니다. 작업을 생성한 후 적절한 인터페이스(예: AWS CLI 또는 SDK)에서 [DescribeSchedule](viewing-schedule-using-cli.md) 명령을 사용하여 전체 일정에 대한 원시 JSON 페이로드를 가져옵니다. 그런 다음 개별 작업을 복사하여 모델로 저장한 다음 프로그래밍 방식으로 작업할 때 사용할 수 있습니다.

# 배치 업데이트 일정 명령 제출
명령 제출

배치 업데이트 일정 명령을 위한 명령은 작업을 생성하거나, 작업을 삭제하거나, 생성 및 삭제 작업을 조합하여 제출하는 것과 동일합니다. 명령은 동일합니다. JSON 페이로드의 내용만 다릅니다.

명령을 입력하여 작업을 생성하는 방법에는 여러 가지가 있습니다. 이 사용법을 따르는 것이 좋습니다.
+ 두 파라미터(`channel-id` 및 `--cli-input-json`)를 사용하여 명령을 입력합니다. 이 경우 채널 ID를 반복하고 JSON 페이로드를 포함하는 파일을 생성합니다.

이 단원의 지침과 예제에서는 이 사용법을 보여줍니다.

배치 업데이트 명령에는 다음과 같은 일반 규칙이 적용됩니다.
+ 실행 중이거나 유휴 상태인 채널에서 작업을 생성할 수 있습니다.
+ 요청 하나로 원하는 수의 작업 또는 작업 유형 조합을 생성할 수 있습니다. 예를 들면 SCTE 35 메시지 작업과 이미지 오버레이 작업의 혼합 생성이 가능합니다.
+ 요청 하나에서 여러 작업을 생성하는 경우, 생성 요청 중 하나가 실패하면(일반적으로 향후 시작 시간이 충분하지 않기 때문) 모든 생성 요청이 실패합니다.

작업 삭제에는 다음 규칙이 적용됩니다.
+ 실행 중이거나 유휴 상태인 채널에서 작업을 삭제할 수 있습니다.
+ 요청 하나로 원하는 수의 작업 또는 작업 유형 조합을 삭제할 수 있습니다. 예를 들면 SCTE 35 메시지 작업과 이미지 오버레이 작업의 혼합 삭제가 가능합니다.
+ 요청 하나에서 여러 작업을 삭제하는 경우 삭제 요청 중 하나가 실패하면(일반적으로 향후 시작 시간이 충분하지 않기 때문) 모든 삭제 요청이 실패합니다.

**배치 명령을 제출하려면**

1. 작업을 추가하거나 삭제하기 전에 [일정에서 작업 생성(콘솔)](schedule-using-console-create.md) 및 [일정에서 작업 삭제(콘솔)](schedule-using-console-delete.md)를 읽습니다.

1. 해당 작업에 알맞은 JSON 페이로드와 채널 ID가 포함된 파일을 준비합니다. 다양한 작업에 대한 JSON 페이로드의 구조와 예제는 다음 섹션을 참조하세요.

1. 확장명이 `.txt`인 적절한 파일 이름을 지정합니다. 예를 들어 작업만 생성하는 페이로드의 파일 이름은 `schedule-create-actions.txt`과 같습니다.

1.  AWS CLI를 실행 중인 폴더에 파일을 저장합니다.

1. 명령줄에서 이 명령을 입력합니다.

   `AWS medialive batch-update-schedule --channel-id value --cli-input-json value`
   + `--channel-id`의 값에 채널 ID를 숫자로 입력합니다.
   + `--cli-input-json`의 값에 다음 형식으로 파일 이름을 입력합니다.

     `file://filename.txt`

   예제: 

   `aws medialive batch-update-schedule --channel-id 999999 --cli-input-json schedule-create-actions.txt`

1. 명령을 제출하려면 **Enter**를 누릅니다. 응답이 화면에 나타납니다. 응답에 요청 데이터가 반복 표시됩니다.

# 작업 생성을 위한 JSON 페이로드
작업 생성을 위한 JSON

다음 단원에서는 모든 유형의 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)
+ [

# 네트워크로 복귀 메시지 - 페이로드
](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)

# 입력 전환 작업 - 페이로드
입력 전환 작업

다음 섹션에서는 입력 전환 작업에 대한 페이로드를 보여 줍니다.

이 페이로드에서 `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", ...]
    }
   }
  ]
 }
}
```

## 고정 시작 시간을 사용하여 라이브 입력으로 전환 예
고정 시간에 라이브 전환

이 요청의 예에서는 고정 시작 시간에 라이브 입력으로 전환하는 방법을 보여 줍니다. 이 전환 작업은 `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" 
     }
    }
   }
  ]
 }
}
```

## 팔로우로 정적 파일 전환 예
팔로우로 파일 전환

이 요청 예에서는 정적 파일 입력으로 전환하여 이전 입력의 끝을 팔로우하는 방법을 보여 줍니다. 이 전환 작업은 `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"
       }
      }
     }
    }
   }
  ]
 }
}
```

## 즉시 시작 시간을 사용하여 동적 입력으로 전환하는 예
즉시 동적 전환

이 요청의 예에서는 동적 파일 입력으로 즉시 전환하는 방법을 보여 줍니다. 이 전환 작업은 `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"]
     }
    }
   }
  ]
 }
}
```

# 입력 준비 작업 - 페이로드
입력 준비 작업

다음 단원에서는 입력 전환 작업에 대한 페이로드를 보여 줍니다.

이 페이로드에서 `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", ...]
     }
    }
   }
  ]
 }
}
```

## 고정된 시작 시간이 있는 입력 준비의 예
고정 시간에 라이브 전환

이 요청의 예에서는 고정 시작 시간에 라이브 입력으로 전환하는 방법을 보여 줍니다. 이 전환 작업은 `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"
     }
    }
   }
  ]
 }
}
```

## 다음과 같이 준비하는 입력의 예
팔로우로 파일 전환

이 요청 예에서는 정적 파일 입력으로 전환하여 이전 입력의 끝을 팔로우하는 방법을 보여 줍니다. 이 전환 작업은 `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"
              }
            }
          }
        }
      }
    ]
  }
}
```

# 전역 이미지 활성화 작업 - 페이로드
전역 이미지 작업 활성화

다음 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
     }
    }
   }
  ]
 }
}
```

## 예제


요청의 이 예제는 채널의 모든 출력 그룹의 모든 비디오 출력에 삽입할 이미지 오버레이를 생성합니다. 오버레이는 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,
          }
        }
      }
    ]
  }
}
```

# 글로벌 오버레이 작업 비활성화 - 페이로드
전역 오버레이 작업 비활성화

다음 JSON에서 필드의 의미 및 값에 대한 자세한 내용은 [이미지 오버레이 비활성화 필드](schedule-fields-for-deactivate-image.md)을 참조하세요.

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

## 예제


이 요청 예제는 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
          }
        }
      }
    ]
  }
}
```

# 출력당 이미지 작업 활성화 - 페이로드
출력당 이미지 작업 활성화

다음 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
     }
    }
   }
  ]
 }
}
```

## 예제


요청의 이 예제는 채널의 특정 출력에 삽입할 이미지 오버레이를 생성합니다. 오버레이는 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
          }
        }
      }
    ]
  }
}
```

# 출력당 오버레이 작업 비활성화 - 페이로드
오버레이 비활성화 작업

다음 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"
    }
   }
  }
 ]
}
```

## 예제


비활성화 작업은 지정된 출력 또는 출력의 지정된 출력별 계층에서 이미지를 비활성화합니다.

활성화 예제의 뒤를 잇는 이 예제에서는 작업이 출력 hls-high-res의 출력당 계층 4에 있는 모든 이미지 오버레이를 제거합니다.

```
{
  "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
          }
        }
      }
    ]
  }
}
```

# 모션 그래픽 오버레이 활성화 - 페이로드
모션 그래픽 오버레이 활성화

다음 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"
    }
   }
  ]
 }
}
```

## 예제


요청의 이 예제는 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"
    }
   }
  ]
 }
}
```

# 모션 그래픽 오버레이 비활성화 - 페이로드
모션 그래픽 오버레이 비활성화

다음 JSON에서 필드의 의미 및 값에 대한 자세한 내용은 [모션 그래픽 오버레이를 비활성화하기 위한 필드](schedule-fields-for-mg-deactivate.md)을 참조하세요.

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

## 예제


이 요청 예제는 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 메시지 - 페이로드
Splice\$1insert 메시지

다음 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
    }
   }
  }
 ]
}
```

## 시작 시간이 고정된 스플라이스 삽입의 예


이 요청 예제는 UTC 시작 시간이 20:42:04.000인 splice\$1insert에 대한 작업을 생성합니다. 또한 데이터베이스의 광고 가능성, 스플라이스 이벤트 ID에 대한 고유 정수, 1,350,000kHz 틱(15초)의 지속 시간을 참조하는 `ActionName`도 있습니다.

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

## 후속 작업으로 수행되는 스플라이스 삽입의 예


이 요청의 예는 nature-doco-003이라는 입력 전환 작업이 종료된 후에 수행될 스플라이스 삽입 작업을 생성합니다. 또한 이 작업에는 데이터베이스의 광고 가능 구간, 스플라이스 이벤트 ID에 대한 고유 정수, 1,350,000kHz 틱(15초)의 지속 시간을 참조하는 `ActionName`도 있습니다.

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 메시지 - 페이로드
Time\$1signal 메시지

다음 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
        }
       }
      }
     ]
    }
   }
  }
 ]
}
```

## 예제


이 요청 예제는 UTC 시작 시간이 20:42:04.000이고 `SegmentationEventId`로 고유 정수를 사용하는 time\$1signal 작업을 생성합니다. 제한 필드의 경우 `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
                  }
                }
              }
            ]
          }
        }
      }
    ]
  }
}
```

# 네트워크로 복귀 메시지 - 페이로드
네트워크로 복귀 메시지

다음 JSON에서 필드의 의미 및 값에 대한 자세한 내용은 [네트워크로 복귀 메시지 필드](schedule-fields-for-return-to-network.md)을 참조하세요.

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

## 예제


이 요청 예제는 UTC 시작 시간이 20:42:19인 네트워크로 복귀 작업을 생성합니다.

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

# ID3 메타데이터 항목 - 페이로드
ID3 메타데이터 항목

다음 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"
    }
   }
  }
 ]
}
```

## 예제


이 요청 예제에서는 `HlsTimedMetadataSettings` 작업을 사용합니다. 13:35:59 UTC에 적절한 출력 그룹에 삽입할 ID3 메타데이터를 생성합니다.

```
{
  "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 세그먼트 태그 항목 - 페이로드
ID3 세그먼트 태그 항목

다음 JSON에서 필드의 의미 및 값에 대한 자세한 내용은 [ID3 세그먼트 태그에 대한 필드](schedule-fields-for-id3-segment-tags.md)을 참조하세요.

**HlsId3SegmentTaggingSettings 작업의 페이로드**

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

**Id3SegmentTaggingSettings 작업의 페이로드**

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

## 태그 속성 사용 예제


이 요청 예제에서는 `HlsId3SegmentTaggingSettings` 작업을 사용합니다. 13:35:59 UTC부터 삽입할 ID3 세그먼트 태그를 생성합니다. 이 예제에서는 `Tag` 속성를 사용합니다. 즉, `TXXX` 필드에 `value`의 콘텐츠만 지정합니다. 예제에는 세그먼트의 날짜, 시간 및 번호가 포함됩니다.

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

## Id3 속성 사용 예


이 요청 예제에서는 즉시 삽입할 ID3 세그먼트 태그를 생성합니다. 이 예제에서는 `Id3` 속성을 사용합니다. 즉, 콘텐츠가 base64로 인코딩됩니다.

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

# 파이프라인 일시 중지 작업 - 페이로드
파이프라인 작업 일시 중지

다음 JSON에서 필드의 의미 및 값에 대한 자세한 내용은 [일시 중지 필드](schedule-fields-for-pause.md)을 참조하세요.

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

## 예: 하나의 파이프라인 일시 중지


요청의 이 예제는 파이프라인 0을 20:42:19 UTC에 일시 중지합니다. 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": [
       {}
      ]
     }
    }
   }
  ]
 }
}
```

# 생성 작업 조합


다음은 `batch-update-schedule` AWS CLI 명령의 `--creates` 파라미터에 전달할 JSON 본문의 예입니다. 여기에는 생성할 두 가지 작업이 포함되어 있습니다. 이 예제에서는 두 작업이 모두 splice\$1insert이지만, 실제로 모든 유형의 생성 작업을 원하는 개수만큼 결합할 수 있습니다.

```
{
    "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"
          }
        }
      }
    ]
  }
```

# 삭제 작업을 위한 JSON 페이로드
삭제 작업을 위한 JSON

 `Deletes` 섹션에 `ActionNames` 배열을 입력하여 삭제할 작업 목록을 포함합니다. 이 배열에는 하나 이상의 작업 이름이 포함되어 있습니다. `DescribeChannel` 명령을 사용하여 이러한 작업 이름을 얻을 수 있습니다([일정 보기(AWS CLI)](viewing-schedule-using-cli.md) 참조).

```
{
  "ChannelId": "string",
  "Deletes": {
      "ActionNames": [
          ""
    ]
  }
}
```

## 예제


이 요청 예제에서는 작업을 생성할 때 할당된 `ActionNames`로 식별되는 세 가지 작업을 삭제합니다.

```
{
  "ChannelId": "999999",
  "Deletes": {
      "ActionNames": [
          "stop-overlay-33",
          "adavail-3711",
          "end-adavail-3711"
      ]
  }
}
```

# 생성 및 삭제 결합을 위한 JSON 페이로드
조합을 위한 JSON

생성 및 삭제 배치를 결합하려면 JSON 페이로드에 `Creates` 섹션과 `Deletes` 섹션을 모두 포함시킵니다.

이 예에서 `Deletes` 섹션의 페이로드는 잘못된 시작 시간에 이미지 오버레이를 활성화하는 작업을 제거합니다. 작업의 이름은 `overlay-21`입니다. `Creates` 섹션의 페이로드는 이제 올바른 시작 시간으로 해당 작업을 다시 삽입합니다.

`Creates` 섹션이 JSON 페이로드에 먼저 표시되더라도 MediaLive는 항상 삭제 작업을 먼저 수행합니다.

이 작업에서는 삭제 작업과 생성 작업의 `ActionName`이 동일합니다. 배치가 "삭제 및 바꾸기"이므로 이름을 재사용하고 있습니다. 하지만 생성 작업에 다른 이름을 할당할 수 있습니다.

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

# 일정 보기(AWS CLI)
일정 보기

 AWS CLI 를 사용하여 현재 한 채널의 일정에 있는 작업 목록을 볼 수 있습니다.
+ 채널에서 아직 실행되지 않은 작업
+ 이전에 수행된 작업 

일정을 보려면 `DescribeSchedule` 명령을 사용합니다. 이 명령은 인터페이스마다 다르게 표현됩니다.
+ 에서 AWS CLI명령은 입니다`describe-schedule`.
+ API에서 이 명령은 `channels/channelId/schedule`에 `HTTP GET`으로 표시됩니다.
+  AWS SDKs에서 명령은 해당 SDK 언어에 적합한 구문으로 표시됩니다.

**작업을 보려면(AWS CLI)**

1. 이 명령을 입력합니다.

   **aws medialive describe-schedule --channel-id *value* --max-results value**

1. 명령을 제출하려면 **Enter**를 누릅니다. 응답이 화면에 나타납니다.

1. `-max-results` 옵션을 사용했으며 응답에 `NextToken`이 포함된 경우 **DescribeChannel** 명령을 입력하고 `--next-token`에 `NextToken`의 값을 전달합니다. 예제:

   **aws medialive describe-schedule --channel-id *value* --next-token 3jhrprd0**

1. 명령을 제출하려면 **Enter**를 누릅니다. 응답이 화면에 나타납니다.

## 예제
일정 보기

명령 *응답*의 JSON 본문은 `BatchUpdateSchedule` 명령 *요청*의 JSON 본문과 유사합니다.

다음 응답 예제는 다음 작업을 보여줍니다.
+ `ActionName`이 **corporate-logo-029**이고 20:30:00 UTC에 계층 1에서 이미지 오버레이를 활성화하는 작업
+ `ActionName`이 **stop-overlay-029**이고 20:42:04 UTC에 계층 1에서 이미지 오버레이를 비활성화하는 작업
+ `ActionName`이 **adavail-3708**이고 비활성화와 동시에 splice\$1insert를 삽입하는 작업
+ `ActionName`이 **end-adavail-3708**이고 20:42:19 UTC에 15초 이후 네트워크로 복귀하는 작업
+ `ActionName`이 **corporate-logo-030**이고 복귀와 동시에 계층 1에서 동일 오버레이를 다시 활성화하는 작업

이 일정은 일반적으로 회사 로고를 표시하는 워크플로를 설명하지만, 각 광고 가능 구간 시작 시 회사 로고를 제거하고 나서 광고 가능 구간이 끝날 때 다시 표시할 수 있습니다.

```
 {
  "NextToken": "3jhrprd0",
      "ScheduleActions": [
      {
        "ScheduleActionStartSettings": {
          "FixedModeScheduleActionStartSettings": {
            "Time": "2018-05-21T20:30:00.000Z"
          }
        },
        "ActionName": "corporate-logo-029",
        "ScheduleActionSettings": {
          "StaticImageActivateSettings": {
            "Image": {
            "PasswordParam": "corplogo!2312",
            "Uri": "s3ssl://amzn-s3-demo-bucket/logos/corporate/high-res.bmp",
            "Username": "medialiveoperator"
            },
            "ImageY": 300,
            "FadeIn": 1500,
            "ImageX": 200,
            "Width": 800,
            "Opacity": 60,
            "Layer": 1,
            "Height": 900
          }
        }
      },
      {
        "ScheduleActionStartSettings": {
          "FixedModeScheduleActionStartSettings": {
            "Time": "2018-05-21T20:42:04.000Z"
          }
        },
        "ActionName": " stop-overlay-029",
        "ScheduleActionSettings": {
          "StaticImageDeactivateSettings": {
            "FadeOut": 1500,
            "Layer": 1
          }
        }
      },
      {
        "ScheduleActionStartSettings": {
          "FixedModeScheduleActionStartSettings": {
            "Time": "2018-05-21T20:42:04.000Z"
          }
        },
        "ActionName": "adavail-3708",
        "ScheduleActionSettings": {
          "Scte35SpliceInsertSettings": {
            "SpliceEventId": 3708,
            "Duration": 1350000
          }
        }
      },
      {
        "ScheduleActionStartSettings": {
          "FixedModeScheduleActionStartSettings": {
            "Time": "2018-05-21T20:42:19.000Z"
          }
        },
        "ActionName": "end-adavail-3708",
        "ScheduleActionSettings": {
          "Scte35ReturnToNetworkSettings": {
            "SpliceEventId": 3708
          }
        }
      },
      {
        "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"
            },
            "ImageY": 300,
            "FadeIn": 1500,
            "ImageX": 200,
            "Width": 800,
            "Opacity": 60,
            "Layer": 1,
            "Height": 900
          }
        }
      }
    ]   
  }
```