Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

3- Check health status of the API service with following command. Please ensure to

Code Block
languagebash
titleHealth Check
curl --user healthcheck:zb\!XztG34 -H “Accept=application/json, Content-Type=application/json” -k https://<VM_IP_ADDRESS>:6969/healthcheck
e.g,
curl --user healthcheck:zb\!XztG34 -H “Accept=application/json, Content-Type=application/json” -k https://10.12.6.93:6969/healthcheck

...

Code Block
languagebash
titleHealth Check Output
{"name":"Policy API","url":"self","healthy":true,"code":200,"message":"alive"}


5- Check for statistics API

Code Block
languagebash
titleStatistics API
curl --user healthcheck:zb\!XztG34 -H “Accept=application/json, Content-Type=application/json” -k https://10.12.6.93:6969/statistics

6- Sample output:

Code Block
languagebash
titleStatistics output
{"code":200,"totalApiCallCount":0,"apiCallSuccessCount":0,"apiCallFailureCount":0,"totalPolicyGetCount":0,"totalPolicyPostCount":0,"totalTemplateGetCount":0,"totalTemplatePostCount":0,"policyGetSuccessCount":0,"policyGetFailureCount":0,"policyPostSuccessCount":0,"policyPostFailureCount":0,"templateGetSuccessCount":0,"templateGetFailureCount":0,"templatePostSuccessCount":0,"templatePostFailureCount":0}