Try it free

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) in RUM Classic.

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

Authentication

Api-Token:

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

One of the following permissions is required for personal access tokens:

  • environment:roles:manage-settings

To learn how to obtain and use it, see Personal access tokens.

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.

The element can hold these values
  • 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.