az ams content-key-policy
Azure Media Services アカウントのコンテンツ キー ポリシーを管理します。
コマンド
名前 | 説明 | 型 | 状態 |
---|---|---|---|
az ams content-key-policy create |
新しいコンテンツ キー ポリシーを作成します。 |
Core | GA |
az ams content-key-policy delete |
コンテンツ キー ポリシーを削除します。 |
Core | GA |
az ams content-key-policy list |
Azure Media Services アカウント内のすべてのコンテンツ キー ポリシーを一覧表示します。 |
Core | GA |
az ams content-key-policy option |
既存のコンテンツ キー ポリシーのオプションを管理します。 |
Core | GA |
az ams content-key-policy option add |
既存のコンテンツ キー ポリシーに新しいオプションを追加します。 |
Core | GA |
az ams content-key-policy option remove |
既存のコンテンツ キー ポリシーからオプションを削除します。 |
Core | GA |
az ams content-key-policy option update |
既存のコンテンツ キー ポリシーからオプションを更新します。 |
Core | GA |
az ams content-key-policy show |
既存のコンテンツ キー ポリシーを表示します。 |
Core | GA |
az ams content-key-policy update |
既存のコンテンツ キー ポリシーを更新します。 |
Core | GA |
az ams content-key-policy create
新しいコンテンツ キー ポリシーを作成します。
az ams content-key-policy create --account-name
--name
--policy-option-name
--resource-group
[--alt-rsa-token-keys]
[--alt-symmetric-token-keys]
[--alt-x509-token-keys]
[--ask]
[--audience]
[--clear-key-configuration]
[--description]
[--fair-play-pfx]
[--fair-play-pfx-password]
[--fp-playback-duration-seconds]
[--fp-storage-duration-seconds]
[--issuer]
[--open-id-connect-discovery-document]
[--open-restriction]
[--play-ready-template]
[--rental-and-lease-key-type]
[--rental-duration]
[--token-claims]
[--token-key]
[--token-key-type]
[--token-type]
[--widevine-template]
例
FairPlay 構成を使用してコンテンツ キー ポリシーを作成します。
az ams content-key-policy create -a amsAccount -g resourceGroup -n contentKeyPolicyName --policy-option-name policyOptionName --open-restriction --ask "ask-32-chars-hex-string" --fair-play-pfx pfxPath --fair-play-pfx-password "pfxPassword" --rental-and-lease-key-type PersistentUnlimited --rental-duration 5000
必須のパラメーター
Azure Media Services アカウントの名前。
コンテンツ キー ポリシー名。
コンテンツ キー ポリシー オプション名。
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
代替 rsa トークン キーのスペース区切りの一覧。
プロパティ | 値 |
---|---|
Parameter group: | Token Restriction Arguments |
代替対称トークン キーのスペース区切りの一覧。
プロパティ | 値 |
---|---|
Parameter group: | Token Restriction Arguments |
代替 x509 証明書トークン キーのスペース区切りの一覧。
プロパティ | 値 |
---|---|
Parameter group: | Token Restriction Arguments |
FairPlay アプリケーションシークレットキーとして使用する必要があるキー。これは 32 文字の 16 進文字列です。
プロパティ | 値 |
---|---|
Parameter group: | FairPlay Configuration Arguments |
トークンの対象ユーザー。
プロパティ | 値 |
---|---|
Parameter group: | Token Restriction Arguments |
クリア キー構成 (AES 暗号化) を使用します。 これは、DRM 以外のキーを対象としています。
プロパティ | 値 |
---|---|
Parameter group: | Clear Key Configuration (AES Encryption) Arguments |
規定値: | False |
コンテンツ キー ポリシーの説明。
PKCS 12 (pfx) 形式の FairPlay 証明書ファイルへのファイルパス (秘密キーを含む)。
プロパティ | 値 |
---|---|
Parameter group: | FairPlay Configuration Arguments |
PKCS 12 (pfx) 形式の FairPlay 証明書を暗号化するパスワード。
プロパティ | 値 |
---|---|
Parameter group: | FairPlay Configuration Arguments |
Playback duration.
プロパティ | 値 |
---|---|
Parameter group: | FairPlay Configuration Arguments |
Storage duration.
プロパティ | 値 |
---|---|
Parameter group: | FairPlay Configuration Arguments |
トークン発行者。
プロパティ | 値 |
---|---|
Parameter group: | Token Restriction Arguments |
OpenID 接続探索ドキュメント。
プロパティ | 値 |
---|---|
Parameter group: | Token Restriction Arguments |
オープン制限を使用します。 ライセンスまたはキーは、すべての要求で配信されます。 運用環境では推奨されません。
プロパティ | 値 |
---|---|
Parameter group: | Open Restriction Arguments |
規定値: | False |
JSON PlayReady ライセンス テンプレート。 @{file} を使用してファイルから読み込みます。
プロパティ | 値 |
---|---|
Parameter group: | PlayReady Configuration Arguments |
レンタル キーとリース キーの種類。 使用可能な値: Undefined、DualExpiry、PersistentUnlimited、PersistentLimited。
プロパティ | 値 |
---|---|
Parameter group: | FairPlay Configuration Arguments |
レンタル期間。 0 以上である必要があります。
プロパティ | 値 |
---|---|
Parameter group: | FairPlay Configuration Arguments |
'[key=value]' 形式のスペース区切りの必須トークン要求。
プロパティ | 値 |
---|---|
Parameter group: | Token Restriction Arguments |
文字列 (対称キーの場合) または証明書へのファイルパス (x509) または公開キー (rsa) のいずれか。 --token-key-type と組み合わせて使用する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Token Restriction Arguments |
プライマリ検証キーに使用するトークン キーの種類。 使用できる値: Symmetric、RSA、X509。
プロパティ | 値 |
---|---|
Parameter group: | Token Restriction Arguments |
トークンの種類。 使用できる値: Jwt、Swt。
プロパティ | 値 |
---|---|
Parameter group: | Token Restriction Arguments |
JSON Widevine ライセンス テンプレート。 @{file} を使用してファイルから読み込みます。
プロパティ | 値 |
---|---|
Parameter group: | Widevine Configuration Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az ams content-key-policy delete
コンテンツ キー ポリシーを削除します。
az ams content-key-policy delete [--account-name]
[--ids]
[--name]
[--resource-group]
[--subscription]
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Azure Media Services アカウントの名前。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
コンテンツ キー ポリシー名。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az ams content-key-policy list
Azure Media Services アカウント内のすべてのコンテンツ キー ポリシーを一覧表示します。
az ams content-key-policy list --account-name
--resource-group
[--filter]
[--orderby]
[--top]
例
フィルター句を使用して、Azure Media Services アカウント内のコンテンツ キー ポリシーを一覧表示します。
az ams content-key-policy list -a amsAccount -g resourceGroup --filter "properties/lastModified gt 2022-08-16 or properties/created lt 2022-08-17"
必須のパラメーター
Azure Media Services アカウントの名前。
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
返される項目のセットを制限します。
結果コレクションを並べ替えるキーを指定します。
コレクションから返される項目の数を制限する負以外の整数 n を指定します。 サービスは、指定された値 n 以下の使用可能な項目の数を返します。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az ams content-key-policy show
既存のコンテンツ キー ポリシーを表示します。
az ams content-key-policy show [--account-name]
[--ids]
[--name]
[--resource-group]
[--subscription]
[--with-secrets]
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Azure Media Services アカウントの名前。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
コンテンツ キー ポリシー名。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
コンテンツ キー ポリシーのシークレット値を含めます。
プロパティ | 値 |
---|---|
規定値: | False |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az ams content-key-policy update
既存のコンテンツ キー ポリシーを更新します。
az ams content-key-policy update [--account-name]
[--add]
[--description]
[--force-string]
[--ids]
[--name]
[--remove]
[--resource-group]
[--set]
[--subscription]
例
既存のコンテンツ キー ポリシーを更新し、新しい説明を設定し、新しい発行者と対象ユーザーを設定する最初のオプションを編集します。
az ams content-key-policy update -n contentKeyPolicyName -a amsAccount --description newDescription --set options[0].restriction.issuer=newIssuer --set options[0].restriction.audience=newAudience
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Azure Media Services アカウントの名前。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
パスとキー値のペアを指定して、オブジェクトの一覧にオブジェクトを追加します。 例: --add property.listProperty <key=value, string or JSON string>
。
プロパティ | 値 |
---|---|
Parameter group: | Generic Update Arguments |
規定値: | [] |
コンテンツ キー ポリシーの説明。
'set' または 'add' を使用する場合は、JSON に変換するのではなく、文字列リテラルを保持します。
プロパティ | 値 |
---|---|
Parameter group: | Generic Update Arguments |
規定値: | False |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
コンテンツ キー ポリシー名。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リストからプロパティまたは要素を削除します。 例: --remove property.list <indexToRemove>
OR --remove propertyToRemove
。
プロパティ | 値 |
---|---|
Parameter group: | Generic Update Arguments |
規定値: | [] |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
設定するプロパティ パスと値を指定して、オブジェクトを更新します。 例: --set property1.property2=<value>
。
プロパティ | 値 |
---|---|
Parameter group: | Generic Update Arguments |
規定値: | [] |
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |