Scan Management
APIs for managing scans
Get a list of Application Security repositories that have not been scanned. You can optionally filter by specifying the number of days past during which the repositories were not scanned.
Required license: Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
Define the time period in days previous to now
7{api_key}
UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP{api_key_id}
241Ok
Organization ID
Name of the repository
ID of the repository
GET /public_api/appsec/v1/scans/unscanned-repositories HTTP/1.1
Host: api-yourfqdn
Authorization: UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP
x-xdr-auth-id: 241
Accept: */*
Ok
[
{
"organizationId": "text",
"repoName": "text",
"repoId": "text"
}
]Branch periodic scans are automated checks that assess the security posture of applications and infrastructure.
Get the details of branch periodic scans.
How to access branch periodic scans in the UI: Under Modules select Application Security > Branch Periodic Scanning (under Scans).
Required license: Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
The health of the scan. Valid values include:
ERROR: Indicates an error with the scanPARTIALLY_COMPLETED: Indicates that the scan executed partially with some scan modules succeeded and others failingIN_PROGRESS: The scan is in progressCOMPLETED: Indicates that the scan is complete
70100{api_key}
your-api-key-here{api_key_id}
241Ok
ID of the scanned repository
Scan ID
The health of the scan. Valid values include:
ERROR: Indicates an error with the scanPARTIALLY_COMPLETED: Indicates that the scan executed partially with some scan modules succeeded and others failingIN_PROGRESS: The scan is in progressCOMPLETED: Indicates that the scan is complete
Timestamp of the last scan execution
The branch analyzed during the scan
The organization owning the repository
Name of the scanned repository
GET /public_api/appsec/v1/scans/periodic HTTP/1.1
Host: api-yourfqdn
Authorization: your-api-key-here
x-xdr-auth-id: 241
Accept: */*
Ok
[
{
"issuesFound": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"findingsSeverityBreakdown": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"findingsTypesBreakdown": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"issuesTypesBreakdown": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"repositoryId": "text",
"integrationId": "text",
"provider": "text",
"scanId": "text",
"scanHealth": "COMPLETED",
"scanDate": "text",
"branchName": "text",
"organizationName": "text",
"repoName": "text"
}
]Pull Request (PR) scans are initiated by events triggered by version control systems such as GitHub, GitLab, Bitbucket and Azure Repos, or via webhooks. These scans are run on default or non-default branches containing open PRs or Merge Requests (MR) from your integrated repositories.
Get the details of PR scans.
How to access Pull Request scans in the UI: Under Modules select Application Security Pull Request Scans (under Scans).
Required license: Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
Status of the PR scan. Valid values include:
PASSEDPASSED_WITH_ISSUESBLOCKEDIN_PROGRESSERRORFAILED
The health of the scan. Valid values include:
ERROR: Indicates an error with the scanPARTIALLY_COMPLETED: Indicates that the scan executed partially with some scan modules succeeded and others failingIN_PROGRESS: The scan is in progressCOMPLETED: Indicates that the scan is complete
70100{api_key}
UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP{api_key_id}
241Ok
ID of the scanned repository
The health of the scan. Valid values include:
ERROR: Indicates an error with the scanPARTIALLY_COMPLETED: Indicates that the scan executed partially with some scan modules succeeded and others failingIN_PROGRESS: The scan is in progressCOMPLETED: Indicates that the scan is complete
The timestamp of the last scan execution
The commit included in the PR
Status of the PR scan. Valid values include:
PASSEDPASSED_WITH_ISSUESBLOCKEDIN_PROGRESSERRORFAILED
The ID of the PR
Name of the branch analyzed during the scan
Specifies the organization owning the repository
GET /public_api/appsec/v1/scans/pr HTTP/1.1
Host: api-yourfqdn
Authorization: UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP
x-xdr-auth-id: 241
Accept: */*
Ok
[
{
"issuesFound": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"findingsSeverityBreakdown": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"findingsTypesBreakdown": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"issuesTypesBreakdown": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"pullRequestTitle": "text",
"integrationId": "text",
"repositoryId": "text",
"scanId": "text",
"provider": "text",
"userEmail": "text",
"blockingPolicyName": "text",
"blockingPolicyId": "text",
"scanHealth": "COMPLETED",
"scanDate": "text",
"commitId": "text",
"pullRequestStatus": "ERROR",
"pullRequestId": "text",
"branchName": "text",
"organizationName": "text",
"repoName": "text"
}
]CI scans detect exposed secrets, misconfigurations in your infrastructure-as-code (IaC) files, vulnerabilities in your software composition analysis (SCA) packages, and license non-compliance in your CI pipelines.
Get the details of CI scans.
How to access CI scans in the UI: Under Modules select Application Security > CI Scans (under Scans).
Required license: Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
Status of the PR scan. Valid values include:
PASSEDPASSED_WITH_ISSUESBLOCKEDIN_PROGRESSERRORFAILED
The health of the scan. Valid values include:
ERROR: Indicates an error with the scanPARTIALLY_COMPLETED: Indicates that the scan executed partially with some scan modules succeeded and others failingIN_PROGRESS: The scan is in progressCOMPLETED: Indicates that the scan is complete
70100{api_key}
UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP{api_key_id}
241Ok
ID of the scanned repository
Status of the PR scan. Valid values include:
PASSEDPASSED_WITH_ISSUESBLOCKEDIN_PROGRESSERRORFAILED
The health of the scan. Valid values include:
ERROR: Indicates an error with the scanPARTIALLY_COMPLETED: Indicates that the scan executed partially with some scan modules succeeded and others failingIN_PROGRESS: The scan is in progressCOMPLETED: Indicates that the scan is complete
The timestamp of the last scan execution
The name of the branch analyzed during the scan
Name of the organization owning the repository
Name of the scanned repository
GET /public_api/appsec/v1/scans/ci HTTP/1.1
Host: api-yourfqdn
Authorization: UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP
x-xdr-auth-id: 241
Accept: */*
Ok
[
{
"issuesFound": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"findingsSeverityBreakdown": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"findingsTypesBreakdown": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"issuesTypesBreakdown": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"repositoryId": "text",
"integrationId": "text",
"scanId": "text",
"provider": "text",
"blockingPolicyName": "text",
"blockingPolicyId": "text",
"ciStatus": "ERROR",
"scanHealth": "COMPLETED",
"scanDate": "text",
"branchName": "text",
"organizationName": "text",
"repoName": "text"
}
]Get a list of the issues discovered in the scan specified by scan ID.
Required license: Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
0100{api_key}
UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP{api_key_id}
241Ok
GET /public_api/appsec/v1/scans/{scanId}/issues HTTP/1.1
Host: api-yourfqdn
Authorization: UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP
x-xdr-auth-id: 241
Accept: */*
Ok
[
{
"resolution_comment": "text",
"resolution_reason": "Resolved - Known Issue",
"resolution_status": "New",
"assignee": "text",
"branch": "text",
"run_id": "text",
"pull_request_id": "text",
"repo_id": "text",
"created": "text",
"file_path": "text",
"asset_name": "text",
"detection_method": "Secrets Security",
"alert_name": "text",
"severity": "Critical",
"scan_id": "text",
"issue_id": "text"
}
]Get a list of the findings discovered in the scan specified by scan ID.
Required license: Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
0100{api_key}
UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP{api_key_id}
241Ok
GET /public_api/appsec/v1/scans/{scanId}/findings HTTP/1.1
Host: api-yourfqdn
Authorization: UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP
x-xdr-auth-id: 241
Accept: */*
Ok
[
{
"scan_source": "pr",
"git_user": "text",
"first_hash_time": "text",
"first_hash": "text",
"platform_id": "text",
"branch": "text",
"detection_method": "Secrets Security",
"file_path": "text",
"description": "text",
"last_observed": "text",
"first_observed": "text",
"suppression_type": "Inline",
"data_source": "GitHub",
"name": "text",
"category": "text",
"asset_id": "text",
"asset_name": "text",
"severity": "Critical",
"scan_id": "text",
"issue_name": "text"
}
]Create a repository scan by specifying the branch name.
Required license: Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
{api_key}
UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP{api_key_id}
241Ok
POST /public_api/appsec/v1/scan/repository/{repositoryId} HTTP/1.1
Host: api-yourfqdn
Authorization: UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP
x-xdr-auth-id: 241
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"branchName": "text"
}Ok
{
"metadata": {
"scan_id": "text"
}
}Last updated
Was this helpful?
