---
title: "Get Related Entities per Environment"
method: GET
path: "/environments/{environmentId}/relatedEntities"
tags: ["Environment"]
---

# Get Related Entities per Environment

`GET /environments/{environmentId}/relatedEntities`

## Request

- Base URL: `https://example.app.liongard.com/api/v2`
- URL: `https://example.app.liongard.com/api/v2/environments/{environmentId}/relatedEntities`
- Auth: API key in header `X-ROAR-API-KEY`

Returns all the Related Entities that are tied to a single Environment such as Agents, Launchpoints, and Integration mappings

## Path parameters

- `environmentId` integer, required

## Response `200`

Success

- EnvironmentRelatedEntitiesResponse
  - `Success` boolean
  - `Data` object
    - `ID` integer
    - `LaunchPoints` object[]
      - `ID` integer
      - `Alias` string
      - `SystemID` integer
      - `InspectorID` integer
      - `InspectorName` string
      - `Enabled` boolean
      - `Status` string
    - `Agents` object[]
      - `ID` integer
      - `Name` string
      - `Description` string
      - `Hostname` string
      - `Platform` string
      - `Managed` boolean
    - `IntegrationMappings` object[]
      - `ID` integer
      - `Integration` string
    - `ChildEnvironments` object[]
      - `ID` integer
      - `Name` string
      - `Status` integer
      - `Visible` boolean

---

[API](https://skmtc.dev/liongard/apis/liongard-v2-endpoints.md) - [All operations](https://skmtc.dev/liongard/apis/liongard-v2-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/liongard/apis/liongard-v2-endpoints/revisions/a12275308587?raw)
