question

Ray B. avatar image
0 Likes"
Ray B. asked ·

Geolocation Information

I noticed the "isSiteOf" JSON parameter on the Infrastructure API giving results like "GEOLOC_SITE-C9B2D39AD8A7FA9A". Where are we getting this information from and what would we need to do to get the actual location from here.

dynatrace saasrest api
· 1
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

@Raffaele T., How do we resolve these types of entities? I can't find an endpoint that will resolve things like GEOLOC_SITE, AWS_AVAILABILTY_ZONE, etc. Clearly SmartScape can do it, but it doesn't look like the datacenter layer is exported via the REST API.

0 Likes 0 · ·
Raffaele T. avatar image
0 Likes"
Raffaele T. answered ·

Hi Ray,
I made the same request on my personal environment. I found out that my AWS EC2 machines (in the same AWS availability region and DC) are reporting the same info in the "isSiteOf" field:

 "isSiteOf": [ 
"AWS_AVAILABILITY_ZONE-BA734CACA276B570", "GEOLOC_SITE-C9B2D39AD8A7FA9A"
],

Then my feeling is that the GEOLOC_SITE is a unique identifier for the Data Center (since you can also freely modify the hostname, so the IsSiteOf I guess it's also a way of uniquely identifying an host). When I take a look at my windows host (not an AWS EC2) this is what I see

 "isSiteOf": [ 
"GEOLOC_SITE-F9A6CB2B7E82DA37"
],

And the geolocation of the data center is correctly reporting the area where I'm located (based on IP address):

Hope this sheds a light on what is the GEOLOC_SITE..if you need further information I guess we should involve DEV.

Ciao,

Raff


geoloc-dc.png (15.6 KiB)
geoloc-aws.png (16.4 KiB)
geoloc-aws.png (16.4 KiB)
· Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Raffaele T. avatar image
0 Likes"
Raffaele T. answered ·

Hi Ray,
could you please provide an example of the API you queried? (including endpoint)

Thanks,

Raff

· 1 · Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

It was https://rebusdt.northeurope.cloudapp.azure.com/e/ea29c7dc-3693-41a8-b5e3-f6a88da01909/api/v1/entity/infrastructure/hosts.

With host response giving

"toRelationships":{

"isSiteOf":[

"GEOLOC_SITE-C9B2D39AD8A7FA9A"

],

0 Likes 0 · ·