Repositories
APIs for managing repository assets
Get details on all repositories integrated with Cortex Cloud Application Security, providing detailed information and insights into repository artifacts, configurations, and dependencies.
Required license: Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
{api_key}
UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP{api_key_id}
241Ok
The name of the repository in the version control system (VCS)
Description describing the repository
Repository ID
Whether the repository is archived
Whether the repository is billable
Whether the repository is forked
Whether the repository is public
Whether the repository is selected
The date the repository was last updated
Repository owner
Type of the data source instance, indicating the external system it connects to.
URL of the repository
GET /public_api/appsec/v1/repositories HTTP/1.1
Host: api-yourfqdn
Authorization: UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP
x-xdr-auth-id: 241
Accept: */*
Ok
[
{
"name": "text",
"description": "text",
"creationDate": "text",
"defaultBranch": "text",
"diskSize": 1,
"externalId": "text",
"id": "text",
"integrationId": "text",
"isArchived": true,
"isBillable": true,
"isForked": true,
"isPublic": true,
"isSelected": true,
"lastScanDate": "text",
"observationTime": 1,
"organizationId": "text",
"owner": "text",
"projectId": "text",
"scanConfiguration": {
"excludedPaths": [
"text"
],
"prScanning": {
"blockOnError": true,
"isEnabled": true
},
"scanners": {
"GIT_HISTORY": {
"isEnabled": true,
"scanOptions": {
"ANY_ADDITIONAL_PROPERTY": true
}
},
"IAC": {
"isEnabled": true,
"scanOptions": {
"ANY_ADDITIONAL_PROPERTY": true
}
},
"SCA": {
"isEnabled": true,
"scanOptions": {
"ANY_ADDITIONAL_PROPERTY": true
}
},
"SECRETS": {
"isEnabled": true,
"scanOptions": {
"ANY_ADDITIONAL_PROPERTY": true
}
}
},
"taggingBot": {
"tagModuleBlocks": true,
"tagResourceBlocks": true
}
},
"scannedBranch": "text",
"scannedBranches": [
{
"diskSize": 1,
"firstScanDate": "text",
"id": "text",
"isPrimary": true,
"lastApiCallDate": "text",
"lastCloneDate": "text",
"lastCloneSha": "text",
"lastScanDate": "text",
"name": "text",
"repositoryId": "text"
}
],
"source": "COLLECTOR",
"status": {
"apiRead": {
"reason": "text",
"status": "INVALID"
},
"apiWrite": {
"reason": "text",
"status": "INVALID"
},
"clone": {
"reason": "text",
"status": "INVALID"
},
"connection": {
"reason": "text",
"status": "INVALID"
},
"webhookSubscription": {
"reason": "text",
"status": "INVALID"
},
"token": {
"reason": "text",
"status": "INVALID"
},
"ANY_ADDITIONAL_PROPERTY": {
"reason": "text",
"status": "INVALID"
}
},
"url": "text"
}
]Get details on the Application Security repository specified by its asset ID.
Required license: Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
Asset ID
{api_key}
UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP{api_key_id}
241Ok
The name of the repository in the version control system (VCS)
Description describing the repository
Repository ID
Whether the repository is archived
Whether the repository is billable
Whether the repository is forked
Whether the repository is public
Whether the repository is selected
The date the repository was last updated
Repository owner
Type of the data source instance, indicating the external system it connects to.
URL of the repository
GET /public_api/appsec/v1/repositories/{assetId} HTTP/1.1
Host: api-yourfqdn
Authorization: UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP
x-xdr-auth-id: 241
Accept: */*
Ok
{
"name": "text",
"description": "text",
"creationDate": "text",
"defaultBranch": "text",
"diskSize": 1,
"externalId": "text",
"id": "text",
"integrationId": "text",
"isArchived": true,
"isBillable": true,
"isForked": true,
"isPublic": true,
"isSelected": true,
"lastScanDate": "text",
"observationTime": 1,
"organizationId": "text",
"owner": "text",
"projectId": "text",
"scanConfiguration": {
"excludedPaths": [
"text"
],
"prScanning": {
"blockOnError": true,
"isEnabled": true
},
"scanners": {
"GIT_HISTORY": {
"isEnabled": true,
"scanOptions": {
"ANY_ADDITIONAL_PROPERTY": true
}
},
"IAC": {
"isEnabled": true,
"scanOptions": {
"ANY_ADDITIONAL_PROPERTY": true
}
},
"SCA": {
"isEnabled": true,
"scanOptions": {
"ANY_ADDITIONAL_PROPERTY": true
}
},
"SECRETS": {
"isEnabled": true,
"scanOptions": {
"ANY_ADDITIONAL_PROPERTY": true
}
}
},
"taggingBot": {
"tagModuleBlocks": true,
"tagResourceBlocks": true
}
},
"scannedBranch": "text",
"scannedBranches": [
{
"diskSize": 1,
"firstScanDate": "text",
"id": "text",
"isPrimary": true,
"lastApiCallDate": "text",
"lastCloneDate": "text",
"lastCloneSha": "text",
"lastScanDate": "text",
"name": "text",
"repositoryId": "text"
}
],
"source": "COLLECTOR",
"status": {
"apiRead": {
"reason": "text",
"status": "INVALID"
},
"apiWrite": {
"reason": "text",
"status": "INVALID"
},
"clone": {
"reason": "text",
"status": "INVALID"
},
"connection": {
"reason": "text",
"status": "INVALID"
},
"webhookSubscription": {
"reason": "text",
"status": "INVALID"
},
"token": {
"reason": "text",
"status": "INVALID"
},
"ANY_ADDITIONAL_PROPERTY": {
"reason": "text",
"status": "INVALID"
}
},
"url": "text"
}Get the details of an Application Security scan configuration.
Required license: Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
{api_key}
UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP{api_key_id}
241Ok
The configuration of an Application Security code scanner
GET /public_api/appsec/v1/repositories/{assetId}/scan-configuration HTTP/1.1
Host: api-yourfqdn
Authorization: UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP
x-xdr-auth-id: 241
Accept: */*
Ok
{
"excludedPaths": [
"text"
],
"prScanning": {
"blockOnError": true,
"isEnabled": true
},
"scanners": {
"GIT_HISTORY": {
"isEnabled": true,
"scanOptions": {
"ANY_ADDITIONAL_PROPERTY": true
}
},
"IAC": {
"isEnabled": true,
"scanOptions": {
"ANY_ADDITIONAL_PROPERTY": true
}
},
"SCA": {
"isEnabled": true,
"scanOptions": {
"ANY_ADDITIONAL_PROPERTY": true
}
},
"SECRETS": {
"isEnabled": true,
"scanOptions": {
"ANY_ADDITIONAL_PROPERTY": true
}
}
},
"taggingBot": {
"tagModuleBlocks": true,
"tagResourceBlocks": true
}
}Update the configuration of an Application Security scan.
Required license: Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
The unique asset ID of the repository.
a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2{api_key}
your-api-key{api_key_id}
1A list of file or directory paths to exclude from scanning. Paths are relative to the repository root and support wildcard patterns.
- Exclude directories: Enter folder names to exclude all files inside, such as
node_modules/,tests/,dist/. - Exclude files by pattern: Use wildcards —
*for any number of characters,?for a single character. For example,.*.logexcludes all log files,*.min.jsexcludes all minified JavaScript files. - Use a comma-separated list: Separate multiple exclusions with commas. For example,
node_modules/, dist/, docs/. - Avoid leading slashes: Use
dist/, not/dist/.
tests/No content. Indicates that the Scan configuration updated successfully.
No content
PUT /public_api/appsec/v1/repositories/{assetId}/scan-configuration HTTP/1.1
Host: api-yourfqdn
Authorization: your-api-key
x-xdr-auth-id: 1
Content-Type: application/json
Accept: */*
Content-Length: 293
{
"excludedPaths": [
"tests/"
],
"prScanning": {
"blockOnError": true,
"isEnabled": true
},
"taggingBot": {
"tagModuleBlocks": true,
"tagResourceBlocks": true
},
"scanners": {
"SECRETS": {
"isEnabled": true,
"scanOptions": {
"secretValidation": true,
"gitHistory": true
}
},
"SCA": {
"isEnabled": true
},
"IAC": {
"isEnabled": true
}
}
}No content. Indicates that the Scan configuration updated successfully.
No content
Get the details of the Application Security repository branches.
Required license: Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
{api_key}
UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP{api_key_id}
241Ok
Timestamp of the first scan performed
Branch ID
Indicates whether or not the branch is the primary branch
Timestamp of the last scan execution
Branch name
Repository ID
GET /public_api/appsec/v1/repositories/{assetId}/branches HTTP/1.1
Host: api-yourfqdn
Authorization: UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP
x-xdr-auth-id: 241
Accept: */*
Ok
[
{
"diskSize": 1,
"firstScanDate": "text",
"id": "text",
"isPrimary": true,
"lastApiCallDate": "text",
"lastCloneDate": "text",
"lastCloneSha": "text",
"lastScanDate": "text",
"name": "text",
"repositoryId": "text"
}
]Update the Application Security repository branch by indicating the primary branch.
Required license: Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
{api_key}
UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP{api_key_id}
241No content
No content
PUT /public_api/appsec/v1/repositories/{assetId}/branches HTTP/1.1
Host: api-yourfqdn
Authorization: UCoWpG4rkNzgCp2dsh8m02iVpZsskwKHz7N1tErPcUV3Wmf59Gc9kytmgOv0pDWoem3PBlORyRIPiir4OcYdWUOWAM3JyTgoCxQf4nQoTlKmFRKz9Bj5vIjluw66p9WP
x-xdr-auth-id: 241
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"selectedBranches": [
"text"
],
"primaryBranch": "text"
}No content
No content
Last updated
Was this helpful?
