test_named_credential
リストに指定されている名前付き資格証明をテストします。インスタンス資格証明が資格証明のターゲットに対してテストされます。グローバル資格証明が指定されたターゲットに対してテストされます。
書式
emcli test_named_credential -cred_names=<cred_name_list> [-target_name=<target_name>] [-target_type=<target_type>]
オプション
-
cred_names
テストする資格証明名のリスト。
-
target_name
グローバル資格証明をテストするターゲット名。インスタンス資格証明がそれぞれのターゲットに対してテストされます。
-
target_type
グローバル資格証明をテストするターゲット・タイプ。
例
例1
この例では、名前付きインスタンス資格証明(現在ログインしているユーザーが所有しているNC1およびADMIN1が所有しているNC2)をテストします。
emcli test_named_credential -cred_names="NC1;NC2:ADMIN1"
例2
この例では、グローバル・ホスト名前付き資格証明NC1、NC2およびNC3をターゲットtesthost.example.comに対してテストします。
emcli test_named_credential -cred_names="NC1;NC2;NC3" -target_name="testhost.example.com" -target_type="host