az ams content-key-policy option

既存のコンテンツ キー ポリシーのオプションを管理します。

コマンド

名前 説明 Status
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 Media Services アカウントの名前。

--alt-rsa-token-keys

代替 rsa トークン キーのスペース区切りの一覧。

--alt-symmetric-token-keys

代替対称トークン キーのスペース区切りの一覧。

--alt-x509-token-keys

代替 x509 証明書トークン キーのスペース区切りの一覧。

--ask

FairPlay アプリケーションシークレットキーとして使用する必要があるキー。これは 32 文字の 16 進文字列です。

--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

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--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

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--token-claims

'[key=value]' 形式のスペース区切りの必須トークン要求。

--token-key

文字列 (対称キーの場合) または証明書へのファイルパス (x509) または公開キー (rsa) のいずれか。 --token-key-type と組み合わせて使用する必要があります。

--token-key-type

プライマリ検証キーに使用するトークン キーの種類。 使用できる値: Symmetric、RSA、X509。

--token-type

トークンの種類。 使用できる値: 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

サブスクリプションの名前または ID。 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

コンテンツ キー ポリシー オプション識別子。 この値は、コンテンツ キー ポリシー リソースに対して show 操作を実行することで、"policyOptionId" プロパティから取得できます。

省略可能のパラメーター

--account-name -a

Azure Media Services アカウントの名前。

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--name -n

コンテンツ キー ポリシー名。

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--subscription

サブスクリプションの名前または ID。 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

サブスクリプションの名前または ID。 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]

既存のオプションに代替トークン キーを追加して、既存のコンテンツ キー ポリシーを更新します。

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

コンテンツ キー ポリシー オプション識別子。 この値は、コンテンツ キー ポリシー リソースに対して show 操作を実行することで、"policyOptionId" プロパティから取得できます。

省略可能のパラメーター

--account-name -a

Azure Media Services アカウントの名前。

--add-alt-token-key

文字列 (対称キーの場合) または証明書へのファイルパス (x509) または公開キー (rsa) を使用して代替トークン キーを作成します。 --add-alt-token-key-type と組み合わせて使用する必要があります。

--add-alt-token-key-type

代替検証キーに使用するトークン キーの型。 使用できる値: Symmetric、RSA、X509。

--ask

FairPlay アプリケーションシークレットキーとして使用する必要があるキー。これは 32 文字の 16 進文字列です。

--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

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--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

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--token-claims

'[key=value]' 形式のスペース区切りの必須トークン要求。

--token-key

文字列 (対称キーの場合) または証明書へのファイルパス (x509) または公開キー (rsa) のいずれか。 --token-key-type と組み合わせて使用する必要があります。

--token-key-type

プライマリ検証キーに使用するトークン キーの種類。 使用できる値: Symmetric、RSA、X509。

--token-type

トークンの種類。 使用できる値: 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

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。