

# 取得 IVS 播放金鑰的相關資訊
<a name="private-channels-get-info"></a>

Amazon IVS 客戶可以取得有關播放金鑰資源的資訊。請務必注意，即使 Amazon IVS 透過主控台建立了播放金鑰，相關聯的私有金鑰也無法使用。

## 主控台說明
<a name="private-channels-info-console"></a>

1. 開啟 [Amazon IVS 主控台](https://console.aws.amazon.com/ivs)。如果您尚未使用頻道區域，請選擇頻道區域。

1. 在左側導覽功能表中，選擇**播放安全性 > 播放金鑰**。

1. 選擇您要取得更多詳細資訊的金鑰，然後選擇 **View details** (檢視詳細資訊)。

## CLI 說明
<a name="private-channels-info-cli"></a>

```
aws ivs get-playback-key-pair --arn arn:aws:ivs:us-west-2:991729659840:playback-key/3db9fc15-df57-4c02-b5a6-d4ee3448b8ad --region <aws-region>
```

如果區域位於本機 AWS 組態檔案中，您可以省略 `--region <aws-region>`。

回應範例：

```
{
    "keyPair": {
        "arn": "arn:aws:ivs:us-west-2:991729659840:playback-key/3ff88c71-b18e-415f-948b-18bbde605a97",
        "fingerprint": "a2:b5:b3:0b:be:8e:73:00:0e:ad:e9:bb:02:c9:81:9a",
        "tags": {}
    }
}
```

## API 請求
<a name="private-channels-info-api"></a>

如需相關使用資訊，請參閱《IVS 低延遲串流 API 參考》**中的 [GetPlaybackKeyPair](https://docs.aws.amazon.com//ivs/latest/LowLatencyAPIReference/API_GetPlaybackKeyPair.html)。

```
POST /GetPlaybackKeyPair HTTP/1.1
{
   "arn": "<playback key arn>"
}
```