healthcheck コマンド

healthcheck

APIの健全性を確認します。

使用方法

apc healthcheck --profile <プロファイル名>

apc healthcheck --profile acompany

引数

なし

オプション

--profile <プロファイル名>

認証情報のプロファイル名を指定します。

正常終了時の出力例
$ apc healthcheck --profile acompany
API is healthy !
異常終了時の出力例
# API接続エラーの場合
$ apc healthcheck --profile acompany
Exception: Connection failed to API server

# 存在しないプロファイルを指定した場合
$ apc healthcheck --profile nonexistent_profile
Exception: Profile 'nonexistent_profile' not found

# APIサーバーエラーの場合
$ apc healthcheck --profile acompany
Exception: API server returned error status

# 設定不備の場合
$ apc healthcheck --profile acompany
Exception: API URL is not configured in profile