Adds, edits, or deletes the tracking links of remediation tracking process groups of a third-party vulnerability (or, in the case of Kubernetes vulnerabilities, of remediation tracking Kubernetes nodes).
The request produces an application/json
payload.
POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/securityProblems/{id}/remediationItems/trackingLinks |
Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/securityProblems/{id}/remediationItems/trackingLinks |
To execute this request, you need an access token with securityProblems.write
scope.
To learn how to obtain and use it, see Tokens and authentication.
The ID of the requested third-party security problem.
Contains the external tracking link associations to be set or deleted on the remediation items of the security problem.
updates
object.deletes
array.The request must contain at least one entry to set or delete to be valid.
Conflicting changes for the same remediation item (ID appears both in the deletes
and updates
field) cannot be submitted.
Note that all tracking link updates for the security problem should be submitted in one request.
RemediationItemsBulkUpdateDeleteDto
objectContains the external tracking link associations to be applied to the remediation items of the security problem.
Tracking links to remove from the security problem.
List of remediation item IDs of the security problem for which to remove the tracking links.
Tracking links to set for the security problem.
Map of remediation item ID to tracking link objects.
Keys must be valid remediation item IDs of the security problem, the associated value must contain the link to set for the item.
TrackingLinkUpdate
objectExternal tracking link URL association to be set for the remediable entity of the security problem.
The desired tracking link display name (title) set for the remediation item, e.g. 'ISSUE-123'.
The desired tracking link url set for the remediation item, e.g. https://example.com/ISSUE-123
Note that only valid URLs with 'http' or 'https' protocols are supported.
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"deletes": ["string"],"updates": {}}
Success. The requested tracking links have been updated.
Setup: There's an automation in place that creates a ticket for each remediable entity automatically.
Goal: Make the endpoint link the ticket with the remediation item. The following tracking links will be set:
https://example.com/TICKET-46C0E12D9B0EF2D9
for "PROCESS_GROUP-46C0E12D9B0EF2D9"
https://example.com/TICKET-549E6AD75BD598EC
for "PROCESS_GROUP-549E6AD75BD598EC"
curl -X 'POST' 'https://mySampleEnv.live.dynatrace.com/api/v2/securityProblems/2919200225913269102/remediationItems/trackingLinks' \-H 'accept: */*' \-H 'Authorization: Api-Token [your_token]' \-H 'Content-Type: application/json; charset=utf-8' \-d '{"updates": {"PROCESS_GROUP-46C0E12D9B0EF2D9": {"displayName": "TICKET-46C0E12D9B0EF2D9","url": "https://example.com/TICKET-46C0E12D9B0EF2D9"},"PROCESS_GROUP-549E6AD75BD598EC": {"displayName": "TICKET-549E6AD75BD598EC","url": "https://example.com/TICKET-549E6AD75BD598EC"}}}'
https://mySampleEnv.live.dynatrace.com/api/v2/securityProblems/2919200225913269102/remediationItems/trackingLinks
{"updates": {"PROCESS_GROUP-46C0E12D9B0EF2D9": {"displayName": "TICKET-46C0E12D9B0EF2D9","url": "https://example.com/TICKET-46C0E12D9B0EF2D9"},"PROCESS_GROUP-549E6AD75BD598EC": {"displayName": "TICKET-549E6AD75BD598EC","url": "https://example.com/TICKET-549E6AD75BD598EC"}}}
200
Remove tracking links from "PROCESS_GROUP-46C0E12D9B0EF2D9"
and "PROCESS_GROUP-549E6AD75BD598EC"
.
curl -X 'POST' 'https://mySampleEnv.live.dynatrace.com/api/v2/securityProblems/2919200225913269102/remediationItems/trackingLinks' \-H 'accept: */*' \-H 'Authorization: Api-Token [your_token]' \-H 'Content-Type: application/json; charset=utf-8' \-d '{"deletes": ["PROCESS_GROUP-46C0E12D9B0EF2D9", "PROCESS_GROUP-549E6AD75BD598EC"]}}'
https://mySampleEnv.live.dynatrace.com/api/v2/securityProblems/2919200225913269102/remediationItems/trackingLinks
{"deletes": ["PROCESS_GROUP-46C0E12D9B0EF2D9", "PROCESS_GROUP-549E6AD75BD598EC"]}
200