Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Latest commit

 

History

History
45 lines (30 loc) · 1.01 KB

File metadata and controls

45 lines (30 loc) · 1.01 KB

Table of contents

Get the inventory

Getting the token from a local file

wget --no-check-certificate --quiet --method GET --output-document=inventory --header='Accept: application/json' --header="Authorization: Bearer `cat token.tok`" 'https://192.168.0.5/cvpservice/inventory/devices'

Check the result

more inventory

Getting the token from an environment variable

Copy the token in an environment variable

token=xxx

Read the environment variable

echo $token

Get the inventory

wget --no-check-certificate --quiet --method GET --output-document=inventory --header='Accept: application/json' --header="Authorization: Bearer $token" 'https://192.168.0.5/cvpservice/inventory/devices'

Check the result

more inventory