

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# CloudHSM CLI で mTLS 適用レベルを取得する
<a name="cloudhsm_cli-cluster-mtls-get-enforcement"></a>

CloudHSM CLI の **cluster mtls get-enforcement** コマンドを使用して、クライアントと AWS CloudHSMの間の相互 TLS の使用の適用レベルを取得します。

## ユーザーのタイプ
<a name="cluster-mtls-get-enforcement-userType"></a>

このコマンドは、次のユーザーが実行できます。
+ 管理者
+ Crypto User (CU)

## 要件
<a name="cluster-mtls-get-enforcement-requirements"></a>
+ このコマンドを実行するには、管理者ユーザーまたは Crypto User (CU) としてログインする必要があります。

## Syntax
<a name="cluster-mtls-get-enforcement-syntax"></a>

```
aws-cloudhsm > help cluster mtls get-enforcement
            
Get the status of mtls enforcement in the cluster

Usage: cluster mtls get-enforcement [OPTIONS]

Options:
      --cluster-id <CLUSTER_ID>  Unique Id to choose which of the clusters in the config file to run the operation against. If not provided, will fall back to the value provided when interactive mode was started, or error
  -h, --help                     Print help
```

## 例
<a name="cluster-mtls-get-enforcement-examples"></a>

**Example**  
次の例では、このコマンドは AWS CloudHSMの mtls 適用レベルを一覧表示します。  

```
aws-cloudhsm > cluster mtls get-enforcement
                
{
  "error_code": 0,
  "data": {
    "mtls-enforcement-level": "none"
  }
}
```

## 引数
<a name="cluster-mtls-get-enforcement-arguments"></a>

***<CLUSTER\$1ID>***  
このオペレーションを実行するクラスターの ID。  
必須: 複数のクラスターが[設定](cloudhsm_cli-configs-multi-cluster.md)されている場合。

## 関連トピック
<a name="cluster-mtls-get-enforcement-seealso"></a>
+  [cluster mtls set-enforcement](cloudhsm_cli-cluster-mtls-set-enforcement.md) 
+  [mTLS の設定 (推奨）](getting-started-setup-mtls.md) 