Remediations
APIs for managing Remediation
Retrieves a comprehensive fix suggestion for a specified application security issue. Use optional query parameters to include data such as the original code block, remediation instructions, or the suggested code fix.
Required license:
Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
The unique identifier for the specific application security issue.
1234567Specifies whether to include the original code block in the response.
trueSpecifies whether to include manual remediation instructions in the response.
falseSpecifies whether to include the automated code fix in the response.
trueFix Suggestion Response
Unique identifier for the issue.
Name of the security issue.
Original vulnerable code.
Manual remediation instructions.
Automated fix suggestions.
GET /public_api/appsec/v1/issues/fix/{issueId}/fix_suggestion HTTP/1.1
Host: api-yourfqdn
Accept: */*
Fix Suggestion Response
{
"issueId": "text",
"issueName": "text",
"existingCodeBlock": "text",
"remediationInstruction": "text",
"suggestedCodeBlock": "text"
}Create automated pull requests to fix multiple security issues in a single bulk operation.
Required license:
Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
The branch name for the fix pull request. If not specified, a custom branch will be used.
The title for the fix pull request. If not specified, a default message will be used.
A list of unique identifiers for the issues to be fixed. Maximum 10 IDs per request.
["1234567","9876543"]Ok
Error message if the process fails.
Overall process status.
Unique identifier to track the remediation process
Error details if the process fails.
POST /public_api/appsec/v1/issues/fix/trigger_fix_pull_request HTTP/1.1
Host: api-yourfqdn
Content-Type: application/json
Accept: */*
Content-Length: 72
{
"fixBranchName": "text",
"title": "text",
"issueIds": [
"1234567",
"9876543"
]
}Ok
{
"message": "text",
"triggeredPrs": [
{
"issueId": "text",
"status": "triggered"
}
],
"status": "text",
"remediationId": "text",
"error": "text"
}Retrieves the fix status of remediation processes using the remediation ID.
Required license:
Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
Remediation Id
Ok
Indicates whether all remediation processes are complete.
GET /public_api/appsec/v1/issues/fix/{remediationId} HTTP/1.1
Host: api-yourfqdn
Accept: */*
Ok
{
"isProcessDone": true,
"results": [
{
"prUrl": "text",
"errorMessage": "text",
"remediationRepositoryId": "text",
"failureIssueIds": [
"text"
],
"successfulIssueIds": [
"text"
]
}
]
}Last updated
Was this helpful?
