# Automation to get CSV file with links to all available packages and updates

**URL:** <https://community.dynatrace.com/t/automation-to-get-csv-file-with-links-to-all-available-packages-and-updates/41273>\
**Category:** Dynatrace Tips\
**Tags:** mission-control, tips-and-tricks, dynatrace-api, automation\
**Created:** [August 19, 2023, 5:17pm UTC](https://community.dynatrace.com/t/automation-to-get-csv-file-with-links-to-all-available-packages-and-updates/41273 "2023-08-19T17:17:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [August 19, 2023, 5:17pm UTC](https://community.dynatrace.com/t/automation-to-get-csv-file-with-links-to-all-available-packages-and-updates/41273/1 "2023-08-19T17:17:28Z")

</div>

Hi guys

Attached you will find a small python code that gets _environment id_ and _license key_ as parameters, and create a CSV file with links to all the available packages.

The code runs the follows&nbsp;[Mission Control APIs](https://www.dynatrace.com/support/help/shortlink/mission-control-api):

- Generate SSO client credentials
- Generate SSO token
- Get a list of available packages and updates

HTH

Yos&nbsp;  
[get available packages.py.txt](https://community.dynatrace.com/uploads/short-url/pYaEFtnoP7ccv8JyqJjTchO7XX1.txt) (2.31 KB)
