Share via


az security atp cosmosdb

Cosmos DB アカウントの Advanced Threat Protection 設定を表示および管理します。

コマンド

名前 説明 Status
az security atp cosmosdb show

Azure Cosmos DB アカウントの Advanced Threat Protection 設定を表示します。

コア GA
az security atp cosmosdb update

Azure Cosmos DB アカウントの Advanced Threat Protection の状態を切り替えます。

コア GA

az security atp cosmosdb show

Azure Cosmos DB アカウントの Advanced Threat Protection 設定を表示します。

az security atp cosmosdb show --cosmosdb-account
                              --resource-group

サブスクリプション スコープの Azure Cosmos DB アカウントの Advanced Threat Protection 設定を取得します。

az security atp cosmosdb show --resource-group MyResourceGroup --cosmosdb-account MyCosmosDbAccount

必須のパラメーター

--cosmosdb-account

既存の Cosmos DB アカウントの名前。

--resource-group -g

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

グローバル パラメーター
--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 security atp cosmosdb update

Azure Cosmos DB アカウントの Advanced Threat Protection の状態を切り替えます。

az security atp cosmosdb update --cosmosdb-account
                                --is-enabled {false, true}
                                --resource-group

サブスクリプション スコープで Azure Cosmos DB アカウントに対して Advanced Threat Protection を有効にします。

az security atp cosmosdb update --resource-group MyResourceGroup --cosmosdb-account MyCosmosDbAccount --is-enabled true

サブスクリプション スコープで Azure Cosmos DB アカウントの Advanced Threat Protection を無効にします。

az security atp cosmosdb update --resource-group MyResourceGroup --cosmosdb-account MyCosmosDbAccount --is-enabled false

必須のパラメーター

--cosmosdb-account

既存の Cosmos DB アカウントの名前。

--is-enabled

受信したストレージまたは Cosmos DB アカウントの Advanced Threat Protection を有効または無効にします。

承認された値: false, true
--resource-group -g

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

グローバル パラメーター
--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 を使います。