Add connection status update for api server

Change-Id: Iad5bf24a6f55e269d8896d580a6dac4bae09e4d7