az ams content-key-policy option

管理現有內容金鑰原則的選項。

命令

名稱 Description 類型 狀態
az ams content-key-policy option add

將新選項新增至現有的內容金鑰原則。

核心 GA
az ams content-key-policy option remove

從現有的內容金鑰原則中移除選項。

核心 GA
az ams content-key-policy option update

從現有的內容金鑰原則更新選項。

核心 GA

az ams content-key-policy option add

將新選項新增至現有的內容金鑰原則。

az ams content-key-policy option add --policy-option-name
                                     [--account-name]
                                     [--alt-rsa-token-keys]
                                     [--alt-symmetric-token-keys]
                                     [--alt-x509-token-keys]
                                     [--ask]
                                     [--audience]
                                     [--clear-key-configuration]
                                     [--fair-play-pfx]
                                     [--fair-play-pfx-password]
                                     [--fp-playback-duration-seconds]
                                     [--fp-storage-duration-seconds]
                                     [--ids]
                                     [--issuer]
                                     [--name]
                                     [--open-id-connect-discovery-document]
                                     [--open-restriction]
                                     [--play-ready-template]
                                     [--rental-and-lease-key-type]
                                     [--rental-duration]
                                     [--resource-group]
                                     [--subscription]
                                     [--token-claims]
                                     [--token-key]
                                     [--token-key-type]
                                     [--token-type]
                                     [--widevine-template]

必要參數

--policy-option-name

內容金鑰原則選項名稱。

選擇性參數

--account-name -a

Azure 媒體服務帳戶的名稱。

--alt-rsa-token-keys

替代 rsa 權杖金鑰的空間分隔清單。

--alt-symmetric-token-keys

替代對稱權杖金鑰的空間分隔清單。

--alt-x509-token-keys

替代 x509 憑證權杖金鑰的空間分隔清單。

--ask

必須做為 FairPlay 應用程式秘密金鑰的金鑰,這是 32 個字元的十六進位字串。

--audience

權杖的物件。

--clear-key-configuration

使用清除金鑰組態,也就是 AES 加密。 其適用于非 DRM 金鑰。

預設值: False
--fair-play-pfx

PKCS 12 (pfx) 格式之 FairPlay 憑證檔案的檔案路徑(包括私密金鑰)。

--fair-play-pfx-password

以 PKCS 12 (pfx) 格式加密 FairPlay 憑證的密碼。

--fp-playback-duration-seconds

播放持續時間。

--fp-storage-duration-seconds

儲存體持續時間。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--issuer

權杖簽發者。

--name -n

內容金鑰原則名稱。

--open-id-connect-discovery-document

OpenID 連線探索檔。

--open-restriction

使用開啟限制。 授權或金鑰將會在每個要求上傳遞。 不建議用於生產環境。

預設值: False
--play-ready-template

JSON PlayReady 授權範本。 使用 @{file} 從檔案載入。

--rental-and-lease-key-type

租用和租用金鑰類型。 可用值:Undefined、DualExpiry、PersistentUnlimited、PersistentLimited。

--rental-duration

租用期間。 必須大於或等於 0。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--token-claims

以 '[key=value]' 格式分隔必要的權杖宣告。

--token-key

字串(適用于對稱金鑰)或憑證的檔案路徑(x509)或公開金鑰(rsa)。 必須與 --token-key-type 搭配使用。

--token-key-type

要用於主要驗證金鑰的權杖金鑰類型。 允許的值:對稱、RSA、X509。

--token-type

Token 的類型。 允許的值:Jwt、Swt。

--widevine-template

JSON Widevine 授權範本。 使用 @{file} 從檔案載入。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az ams content-key-policy option remove

從現有的內容金鑰原則中移除選項。

az ams content-key-policy option remove --policy-option-id
                                        [--account-name]
                                        [--ids]
                                        [--name]
                                        [--resource-group]
                                        [--subscription]

必要參數

--policy-option-id

內容金鑰原則選項識別碼。 這個值可以從 「policyOptionId」 屬性取得,方法是在內容金鑰原則資源上執行顯示作業。

選擇性參數

--account-name -a

Azure 媒體服務帳戶的名稱。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--name -n

內容金鑰原則名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az ams content-key-policy option update

從現有的內容金鑰原則更新選項。

az ams content-key-policy option update --policy-option-id
                                        [--account-name]
                                        [--add-alt-token-key]
                                        [--add-alt-token-key-type]
                                        [--ask]
                                        [--audience]
                                        [--fair-play-pfx]
                                        [--fair-play-pfx-password]
                                        [--fp-playback-duration-seconds]
                                        [--fp-storage-duration-seconds]
                                        [--ids]
                                        [--issuer]
                                        [--name]
                                        [--open-id-connect-discovery-document]
                                        [--play-ready-template]
                                        [--policy-option-name]
                                        [--rental-and-lease-key-type]
                                        [--rental-duration]
                                        [--resource-group]
                                        [--subscription]
                                        [--token-claims]
                                        [--token-key]
                                        [--token-key-type]
                                        [--token-type]
                                        [--widevine-template]

範例

將替代權杖金鑰新增至現有選項,以更新現有的 content-key-policy。

az ams content-key-policy option update -n contentKeyPolicyName -g resourceGroup -a amsAccount --policy-option-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx --add-alt-token-key tokenKey --add-alt-token-key-type Symmetric

必要參數

--policy-option-id

內容金鑰原則選項識別碼。 這個值可以從 「policyOptionId」 屬性取得,方法是在內容金鑰原則資源上執行顯示作業。

選擇性參數

--account-name -a

Azure 媒體服務帳戶的名稱。

--add-alt-token-key

使用字串(適用于對稱金鑰)或憑證的檔案路徑(x509)或公開金鑰(rsa)建立替代權杖金鑰。 必須與 --add-alt-token-key-type 搭配使用。

--add-alt-token-key-type

要用於替代驗證金鑰的權杖金鑰類型。 允許的值:對稱、RSA、X509。

--ask

必須做為 FairPlay 應用程式秘密金鑰的金鑰,這是 32 個字元的十六進位字串。

--audience

權杖的物件。

--fair-play-pfx

PKCS 12 (pfx) 格式之 FairPlay 憑證檔案的檔案路徑(包括私密金鑰)。

--fair-play-pfx-password

以 PKCS 12 (pfx) 格式加密 FairPlay 憑證的密碼。

--fp-playback-duration-seconds

播放持續時間。

--fp-storage-duration-seconds

儲存體持續時間。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--issuer

權杖簽發者。

--name -n

內容金鑰原則名稱。

--open-id-connect-discovery-document

OpenID 連線探索檔。

--play-ready-template

JSON PlayReady 授權範本。 使用 @{file} 從檔案載入。

--policy-option-name

內容金鑰原則選項名稱。

--rental-and-lease-key-type

租用和租用金鑰類型。 可用值:Undefined、DualExpiry、PersistentUnlimited、PersistentLimited。

--rental-duration

租用期間。 必須大於或等於 0。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--token-claims

以 '[key=value]' 格式分隔必要的權杖宣告。

--token-key

字串(適用于對稱金鑰)或憑證的檔案路徑(x509)或公開金鑰(rsa)。 必須與 --token-key-type 搭配使用。

--token-key-type

要用於主要驗證金鑰的權杖金鑰類型。 允許的值:對稱、RSA、X509。

--token-type

Token 的類型。 允許的值:Jwt、Swt。

--widevine-template

JSON Widevine 授權範本。 使用 @{file} 從檔案載入。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。