# Get list of all env via API

**URL:** <https://community.dynatrace.com/t/get-list-of-all-env-via-api/20077>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [August 20, 2020, 6:01am UTC](https://community.dynatrace.com/t/get-list-of-all-env-via-api/20077 "2020-08-20T06:01:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![irakli\_natsvlis](https://avatars.discourse-cdn.com/v4/letter/i/edb3f5/32.png) [@irakli\_natsvlis](https://community.dynatrace.com/u/irakli_natsvlis)\
**Post date:** [August 20, 2020, 6:01am UTC](https://community.dynatrace.com/t/get-list-of-all-env-via-api/20077/1 "2020-08-20T06:01:00Z")

</div>

Hello everyone,

A simple question - how can I get a compact list of all environments registered with the DT cluster?

I just need just two lines per env - id, and the name of the env would be sufficient.

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [August 20, 2020, 8:36am UTC](https://community.dynatrace.com/t/get-list-of-all-env-via-api/20077/2 "2020-08-20T08:36:42Z")

</div>

Irakli,

It’s fairly easy: take a look at Cluster V2 API - Environments endpoint

its all you exactly need

---

<div class="post-metadata">

**Author:** ![dave\_mauney](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dave_mauney/32/27784_2.png) [@dave\_mauney](https://community.dynatrace.com/u/dave_mauney)\
**Post date:** [August 20, 2020, 2:00pm UTC](https://community.dynatrace.com/t/get-list-of-all-env-via-api/20077/3 "2020-08-20T14:00:49Z")

</div>

You can find the Cluster APIs under the Person Icon while on the CMC (Cluster Management Console) page if you are a cluster admin. If you aren’t, you’ll need to work with your admin to get a token and use a GET on the “/environments” endpoint.
