• Home
  • Dynatrace API
  • Environment
  • Problems v2
  • Comments
  • GET a comment

Problems API v2 - GET a comment

Gets the specified comment on a problem.

The request produces an application/json payload.

GETManaged https://{your-domain}/e/{your-environment-id}/api/v2/problems/{problemId}/comments/{commentId}
SaaS https://{your-environment-id}.live.dynatrace.com/api/v2/problems/{problemId}/comments/{commentId}
Environment ActiveGate https://{your-activegate-domain}/e/{your-environment-id}/api/v2/problems/{problemId}/comments/{commentId}

Authentication

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

Parameters

ParameterTypeDescriptionInRequired
problemIdstring

The ID of the required problem.

pathrequired
commentIdstring

The ID of the required comment.

pathrequired

Response

Response codes

CodeTypeDescription
200Comment

Success

Response body objects

The Comment object

The comment to a problem.

ElementTypeDescription
authorNamestring

The user who wrote the comment.

Can be null.

createdAtTimestampinteger

The timestamp of comment creation, in UTC milliseconds.

contextstring

The context of the comment.

Can be null.

idstring

The ID of the comment.

Can be null.

contentstring

The text of the comment.

Can be null.

Response body JSON model

json
{ "authorName": "string", "createdAtTimestamp": 1, "context": "string", "id": "string", "content": "string" }
Related topics
  • Problem detection and analysis

    Understand the basic concepts related to how Dynatrace detects and raises alerts for problems detected in your environment.