Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.1 KB

api-entities-fetch-tree.md

File metadata and controls

48 lines (32 loc) · 1.1 KB
title description ms.date ms.topic
Fetch entity tree - Entities API
This article describes the fetch entity tree request in the Defender for Cloud Apps Entities API.
01/29/2023
reference

Fetch entity tree - Entities API

Note

This request is not available for Microsoft 365 Cloud App Security.

Run the GET request to fetch all entities related to the entity matching the specified primary key. If the entity is a user, fetches all accounts associated with the user. If the entity is an account, fetches the entity's parent and siblings.

HTTP request

GET /api/v1/entities/<pk>/retrieve_tree/

Request URL parameters

Parameter Description
pk The ID of the entity

Example

Request

Here is an example of the request.

curl -XGET -H "Authorization:Token <your_token_key>" "https://<tenant_id>.<tenant_region>.portal.cloudappsecurity.com/api/v1/entities/<pk>/retrieve_tree/"

Response

Returns the specified entity tree in JSON format.

{
  // entity tree record
}

[!INCLUDE Open support ticket]