21 Feb 2023
11:00 AM
- last edited on
22 Feb 2023
08:40 AM
by
Ana_Kuzmenchuk
When retrieving the results of an HTTP Check I see request results for each location. The location is identified with a locationId, like below from "/synthetic/execution".
{
"monitorId": "HTTP_CHECK-ABB43CF5DB511A5D",
"locationsExecutionResults": [
{
"locationId": "88",
"executionId": "26726351503",
"requestResults": [
....
},
{
"locationId": "124",
"executionId": "26726351345",
"requestResults": [
....
},
I would like to be able to tie that locationId value back to a named public/private location. There's no similar field value in "/synthetic/locations", or "/synthetic/locations/<location id>. Is there an easy way to tie that id to a location name/record?
Solved! Go to Solution.
That's true, the location ID does not matchs the one we get from /synthetic/locations/ API
One way to match it is checking the execution result from Synthetic monitor details page in UI
In my tenant, the locationId 16 is meant for Virgnia.
Thanks, I can build out a static list of locationid's from the UI and use that to tie the locationId from the API to a proper name.