# Is there a way to get a list of all entity types in Grail (so something synonymous to the /entityTypes classic v2 API)?

**URL:** <https://community.dynatrace.com/t/is-there-a-way-to-get-a-list-of-all-entity-types-in-grail-so-something-synonymous-to-the-entitytypes-classic-v2-api/53499>\
**Category:** DQL\
**Tags:** dql, grail, f5, topology, entities\
**Created:** [September 24, 2025, 5:35pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-get-a-list-of-all-entity-types-in-grail-so-something-synonymous-to-the-entitytypes-classic-v2-api/53499 "2025-09-24T17:35:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![36Krazyfists](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/36krazyfists/32/37434_2.png) [@36Krazyfists](https://community.dynatrace.com/u/36Krazyfists)\
**Post date:** [September 24, 2025, 5:35pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-get-a-list-of-all-entity-types-in-grail-so-something-synonymous-to-the-entitytypes-classic-v2-api/53499/1 "2025-09-24T17:35:34Z")

</div>

I know if I just start typing **dt.entity.** the auto-complete in the DQL query box will offer suggestions, but I want to be able to just get a list of all **dt.entity.f5** types in a table.

The result I want would look like:

**EntityTypeName**

**dt.entity.f5:gtm:pool**

**dt.entity.f5:gtm:virtual\_server**

**dt.entity.f5:pool**

and so on

Is this possible in Grail?&nbsp; If so, how would that query look?

---

<div class="post-metadata">

**Author:** ![36Krazyfists](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/36krazyfists/32/37434_2.png) [@36Krazyfists](https://community.dynatrace.com/u/36Krazyfists)\
**Post date:** [September 24, 2025, 5:51pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-get-a-list-of-all-entity-types-in-grail-so-something-synonymous-to-the-entitytypes-classic-v2-api/53499/2 "2025-09-24T17:51:07Z")

</div>

Within 2 minutes of submitting this question I found the answer myself!

The answer is yes, there is a way to do this!

```markup
fetch dt.system.data_objects
| filter matchesValue(name, "dt.entity.f5*")

```

You can use that and replace the filter name value with whatever you want to get a list of current entities.

P.S. to Dynatrace Community website devs.&nbsp; You should really add **DQL** / **DPL** in as valid languages for the “ **Insert/Edit code sample** ” formatting boxes on this site!&nbsp; Would be really cool to have proper highlighting when people share those snippets!

---

<div class="post-metadata">

**Author:** ![skhamitkar](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@skhamitkar](https://community.dynatrace.com/u/skhamitkar)\
**Post date:** [December 25, 2025, 7:23am UTC](https://community.dynatrace.com/t/is-there-a-way-to-get-a-list-of-all-entity-types-in-grail-so-something-synonymous-to-the-entitytypes-classic-v2-api/53499/3 "2025-12-25T07:23:42Z")

</div>

[@36Krazyfists](https://community.dynatrace.com/user/41155)&nbsp;How can i get entity types for self managed dynatrace, this DQL is not working in managed setup.

---

<div class="post-metadata">

**Author:** ![skhamitkar](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@skhamitkar](https://community.dynatrace.com/u/skhamitkar)\
**Post date:** [December 25, 2025, 10:16am UTC](https://community.dynatrace.com/t/is-there-a-way-to-get-a-list-of-all-entity-types-in-grail-so-something-synonymous-to-the-entitytypes-classic-v2-api/53499/4 "2025-12-25T10:16:57Z")

</div>

[@36Krazyfists](https://community.dynatrace.com/user/41155)&nbsp;How can i get entity types for self managed dynatrace, this DQL is not working in managed setup.

---

<div class="post-metadata">

**Author:** ![deni](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/deni/32/163_2.png) [@deni](https://community.dynatrace.com/u/deni)\
**Post date:** [December 30, 2025, 5:50pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-get-a-list-of-all-entity-types-in-grail-so-something-synonymous-to-the-entitytypes-classic-v2-api/53499/5 "2025-12-30T17:50:09Z")

</div>

Hi&nbsp;[@skhamitkar](https://community.dynatrace.com/user/86687)&nbsp;,

Just to avoid confusion:  
As far as I know, **Grail and DQL are currently available only in Dynatrace SaaS**.  
Dynatrace Managed does **not** support Grail datasets like dt.system.data\_objects, so this query would not work there.

If the question is about **Managed** , we probably need a different approach (API-based, not DQL).

Could you please clarify which environment you are referring to?

Regards, Deni

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [December 30, 2025, 10:48pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-get-a-list-of-all-entity-types-in-grail-so-something-synonymous-to-the-entitytypes-classic-v2-api/53499/6 "2025-12-30T22:48:35Z")

</div>

In Managed, you need an API call to get the entity types available in your environment - [GET All Entity Types](https://docs.dynatrace.com/managed/shortlink/api-entities-v2-get-all-entity-types).
