API 仕様検証による API トラフィックの可視化
CLI を使用して API 仕様で API トラフィックの可視性を有効にする
-
API プロファイルの作成コマンドプロンプトで入力します:
add api profile <name> -
API の可視性を有効にするコマンドプロンプトで、次のように入力します
set api profile <name> -apiVisibility <ENABLED/DISABLED> -
仕様をプロファイルにバインドするコマンドプロンプトで入力します:
bind -apiprofile <name> -apiSpec <name> -
プロファイルを仮想サーバーに割り当てる コマンドプロンプトで、次のように入力します。
set cs vserver <name> -apiprofile <name>
add api profile test_apiprofile1
set api profile test_apiprofile1 -apiVisibility enabled
bind api profile test_apiprofile1 -apispec testapi spec name
set cs verser vserver_test1 -apiprofile test_apiprofile1
CLI を使用して API 仕様なしで API トラフィックの可視性を有効にする
-
API プロファイルの作成コマンドプロンプトで入力します:
add api profile <name> -
API の可視性を有効にするコマンドプロンプトで入力します:
set api profile <name> -apiVisibility <ENABLED/DISABLED> -
プロファイルを仮想サーバーに割り当てるコマンドプロンプトで入力します:
set cs vserver <name> -apiprofile <name>
add api profile test_apiprofile
set api profile <test_apiprofile> -apiVisibility enabled
set cs verser vserver_test -apiprofile test_apiprofile