• Home
  • Dynatrace API
  • Environment
  • Settings
  • Schemas
  • HTTP requests from data gateway locations

Settings API - Http Requests for EdgeConnect schema table

Http Requests for EdgeConnect (builtin:dt-javascript-runtime.edge-http-targets)

This setting is necessary, if you want to use automations and functions to execute http request to resources in private networks. If you assign an EdgeConnect to a certain hostname, calls to the 'fetch'-function in the dynatrace runtime to that hostname will be intercepted and executed from the EdgeConnect. The javascript code will behave as if the call was executed directly by the runtime.

Schema IDSchema groupsScope
builtin:dt-javascript-runtime.edge-http-targets
  • group:dt-javascript-runtime
  • group:preferences
environment
Retrieve schema via Settings API
GETManagedhttps://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:dt-javascript-runtime.edge-http-targets
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:dt-javascript-runtime.edge-http-targets
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:dt-javascript-runtime.edge-http-targets

Authentication

To execute this request, you need an access token with Read settings (settings.read) scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

PropertyLabelTypeDescriptionRequired
externalUrls-HostLocationMappings-required

Request body objects

The HostLocationMapping object
PropertyLabelTypeDescriptionRequired
hostHosttext

Either an IP, or a domain name which may contain a wildcard ('*') as the leftmost label. If a '*' is used, it must be followed by at least two labels.

required
locationEdgeConnect nametext-required
The HostLocationMappings object
PropertyLabelTypeDescriptionRequired
mappingsHost to EdgeConnect Mappingsset

Calls to the specified hosts will be executed by the specified EdgeConnect.

required