# List all incoming process connections using API

**URL:** <https://community.dynatrace.com/t/list-all-incoming-process-connections-using-api/47474>\
**Category:** Dynatrace API\
**Tags:** process-groups, hosts-classic, dynatrace-api\
**Created:** [September 4, 2024, 9:11am UTC](https://community.dynatrace.com/t/list-all-incoming-process-connections-using-api/47474 "2024-09-04T09:11:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![axel\_tapia](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@axel\_tapia](https://community.dynatrace.com/u/axel_tapia)\
**Post date:** [September 10, 2024, 4:39pm UTC](https://community.dynatrace.com/t/list-all-incoming-process-connections-using-api/47474/2 "2024-09-10T16:39:21Z")

</div>

Not sure if this is what you are look for, I think you can get that by using entities API.

entitySelector query:

```auto
type(HOST),toRelationships.isProcessOf(type(PROCESS_GROUP_INSTANCE),toRelationships.isNetworkClientOf(type(PROCESS_GROUP_INSTANCE),softwareTechnologies(MICROSOFT_SQL_SERVER))

```

This will bring all host that have any PROCESS\_GROUP\_INSTANCE talking to any SQL Server PROCESS\_GROUP\_INSTANCES.

Curl example:

```auto
curl -X 'GET' \
'[dynatrace_url]/api/v2/entities?entitySelector=type(HOST),toRelationships.isProcessOf(type(PROCESS_GROUP_INSTANCE),toRelationships.isNetworkClientOf(type(PROCESS_GROUP_INSTANCE),softwareTechnologies(MICROSOFT_SQL_SERVER)))' \
-H 'accept: application/json; charset=utf-8' \
-H 'Authorization: Api-Token dt0c01.XXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

```

Same query can be used in auto-tagging rule or management zone.

---

_[View the full topic](https://community.dynatrace.com/t/list-all-incoming-process-connections-using-api/47474)._
