

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 檢視排程 (AWS CLI)
<a name="viewing-schedule-using-cli"></a>

您可以使用 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** 以提交命令。回應會顯示於畫面。

## 範例
<a name="viewing-schedule-using-cli-example"></a>

命令*回應*的 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\_insert 做為停用動作
+ `ActionName` 為「**end-adavail-3708**」，在 20:42:19 UTC 的 15 秒後 return-to-network 的動作
+ `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
          }
        }
      }
    ]   
  }
```