Problems API v2 - GET a comment
Gets the specified comment on a problem.
The request produces an application/json
payload.
GET | ManagedDynatrace for Government | 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 and Cluster ActiveGate (default port 9999) | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/problems/{problemId}/comments/{commentId} |
Authentication
To execute this request, you need an access token with problems.read
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
problemId | string | The ID of the required problem. | path | required |
commentId | string | The ID of the required comment. | path | required |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | Comment | Success |
Response body objects
The Comment
object
The comment to a problem.
Element | Type | Description |
---|---|---|
authorName | string | The user who wrote the comment. |
content | string | The text of the comment. |
context | string | The context of the comment. |
createdAtTimestamp | integer | The timestamp of comment creation, in UTC milliseconds. |
id | string | The ID of the comment. |
Response body JSON model
1{2 "authorName": "string",3 "content": "string",4 "context": "string",5 "createdAtTimestamp": 1,6 "id": "string"7}