Entities and it's related fields

Copper Contributor

Hi,

 

Can anyone please help me out on fetching entities related to incident. I found one article in which we need to make two calls to achieve this 

1. Getting the system alert id by running the relation API call 

 

get:

https://management.azure.com/subscriptions/xxxxx-5731-4780-8f96-2078ddxxxx/resourceGroups/cxp-azures...

 

in my example the system alert id value located here 

 

avijitkuk_0-1611900254559.png

 

 

2.  run a POST request on entities API with the system Alert ID based on the first phase

where the expansionId is constant for get all entities 

 

Post

https://management.azure.com/subscriptions/xxxxxxx-5731-4780-xxxx-2078dd96fd96/resourceGroups/cxp-az...

 

body 

{
"expansionId": "98b974fd-cc64-48b8-9bd0-3a209f5b944b",
}

 

avijitkuk_1-1611900254557.png

 

 

Here my question is, is these steps mentioned above will get all the entities info associated with an incident or for different entities we have to hit different endpoints.

My second question is there any endpoint through which we can get the structure of all the entities and it's fields. In future entities will increase and so is the associated field, is there an endpoint in management apis through which we can get the whole shema of entities.

 

Thanks 

Avi

 

 

 

0 Replies