RUM JavaScript API - GET list of injected applications

  • Reference

Lists all of your manually injected applications, along with their metadata.

The request produces an application/json payload.

GETManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/v1/rum/manualApps
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v1/rum/manualApps

Authentication

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

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

Parameters

The request doesn't provide any configurable parameters.

Response

Response codes

CodeTypeDescription
200ManualApplication[]

Success

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

The ResponseBody object

The ManualApplication object

Parameters of a manually injected application.

ElementTypeDescription
applicationIdstring

The Dynatrace entity ID of the application.

displayNamestring

The name of the application.

monitoringEnabledboolean

Monitoring is enabled (true) or disabled (false).

revisionstring

The application settings revision.

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
codeinteger

The HTTP status code

constraintViolationsConstraintViolation[]

A list of constraint violations

messagestring

The error message

The ConstraintViolation object

A list of constraint violations

ElementTypeDescription
locationstring-
messagestring-
parameterLocationstring-
The element can hold these values
  • HEADER
  • PATH
  • PAYLOAD_BODY
  • QUERY
pathstring-

Response body JSON models

[
{
"applicationId": "APPLICATION-C15B48CBCADC863B",
"displayName": "manually injected application",
"monitoringEnabled": true,
"revision": 1456380804910
}
]
{
"error": {
"code": 1,
"constraintViolations": [
{
"location": "string",
"message": "string",
"parameterLocation": "HEADER",
"path": "string"
}
],
"message": "string"
}
}

Example

In this example, the request inquires all the manually injected applications of the environment

The API token is passed in the Authorization header.

The result is truncated to three entries.

Curl

curl -X GET \
https://mySampleEnv.live.dynatrace.com/api/v1/rum/manualApps \
-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'

Request URL

https://mySampleEnv.live.dynatrace.com/api/v1/rum/manualApps

Response body

[
{
"applicationId": "APPLICATION-BBFA55551D507E2B",
"displayName": "easyTravel Ionic Web",
"monitoringEnabled": true,
"revision": 1539076354681
},
{
"applicationId": "APPLICATION-31F18E1B2C50038A",
"displayName": "SaaS App Monitoring",
"monitoringEnabled": true,
"revision": 1536827568615
},
{
"applicationId": "APPLICATION-AE767ECC2D7B33BF",
"displayName": "Node JS demo",
"monitoringEnabled": true,
"revision": 1536827567516
}
]

Response code

200