From aaba1135e6cfaa5269c44896feadfc6df97547b3 Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Wed, 21 Jul 2021 14:55:21 -0700 Subject: [PATCH] Finishing FMS dash board --- test_scripts/curl/cli | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test_scripts/curl/cli b/test_scripts/curl/cli index 50605ac..08655d8 100755 --- a/test_scripts/curl/cli +++ b/test_scripts/curl/cli @@ -179,6 +179,20 @@ devicereport() { jq < ${result_file} } +fmsversion() { + curl ${FLAGS} -X GET "https://${UCENTRALFMS}/api/v1/system?command=version" \ + -H "accept: application/json" \ + -H "Authorization: Bearer ${token}" > ${result_file} + jq < ${result_file} +} + +fmstimes() { + curl ${FLAGS} -X GET "https://${UCENTRALFMS}/api/v1/system?command=times" \ + -H "accept: application/json" \ + -H "Authorization: Bearer ${token}" > ${result_file} + jq < ${result_file} +} + help() { echo @@ -197,6 +211,8 @@ case "$1" in "connecteddevices") login; connecteddevices ; logout ;; "connecteddevice") login; connecteddevice "$2" ; logout ;; "devicereport") login; devicereport; logout ;; + "fmsversion") login; fmsversion; logout ;; + "fmstimes") login; fmstimes; logout ;; *) help ;; esac