GET OneAgent JavaScript tag with SRI

  • Reference

Returns the most recent OneAgent JavaScript tag with SRI for manual insertion into your web application code. It includes configuration, a reference to the monitoring code, and an integrity hash. For more information on SRI support for RUM, see Use Subresource Integrity (SRI) for Real User Monitoring code.

GETSaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/rum/oneAgentJavaScriptTagWithSri/{applicationId}
Environment ActiveGateCluster ActiveGatehttps://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/rum/oneAgentJavaScriptTagWithSri/{applicationId}

Authentication

To execute this request, you need an access token with rumManualInsertionTags.read scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
applicationIdstring

The ID of the web application.

pathrequired
scriptExecutionAttributestring

Specifies the script execution attribute: async, defer, or none. If specified, this overrides the configured value.

  • ASYNC
  • DEFER
  • NONE
queryoptional

Response

The response includes a text/plain payload containing the most recent version of the OneAgent JavaScript tag with SRI for the specified application.