Skip to content

sevco/asset-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Asset-tools

Asset tools - these tools are designed to export Device and User asset data into a comma seperated file. We encourage customer feedback and contributions to this repository. In the future we will expand this repository as the product expands in capability.

Dependencies

  • You require your JWT from the Sevco UI profile be added as an environment variable. The JWT expires every 24 hours and the envirnment variable will need to be updated once it expires.

    $ export JWT="paste JWT here"

  • You will also require your organization ID be added as an environment variable. You can get the OrgID leveraging two different methods:

  1. curl -H "Authorization: $JWT" https://dev.api.sevcolabs.com/v1/admin/org -H "X-Sevco-Target-Org:$ORG" | jq

  2. Through the Sevco Shell by running orgs info and coping the OrgID value.

    $ export ORG="paste OrgID here"

  • You have the option to define an API endpoint to allow connection to Development or Demo environments. The default is https://api.sev.co if no environmental variable is defined.

    $ export API="paste API endpoint"

Execution

Run the scripts with python devices.py or python users.py as appropriate. The devices.py script creates a file called devices.csv and users.py creates a file called users.csv.

Releases

No releases published

Packages

No packages published

Languages