Authorizations
Body
application/json
Available options:
FullScan
, PrScan
Available options:
createdAt
, updatedAt
Available options:
asc
, desc
curl --request POST \
--url https://zeropath.com/api/v1/scans/list \
--header 'Content-Type: application/json' \
--header 'X-ZeroPath-API-Token-Id: <api-key>' \
--header 'X-ZeroPath-API-Token-Secret: <api-key>' \
--data '{
"organizationId": "<string>",
"page": 1,
"pageSize": 10,
"searchQuery": "<string>",
"repositoryIds": [
"<string>"
],
"projectId": "<string>",
"scanId": "<string>",
"scanType": "FullScan",
"sortBy": "createdAt",
"sortOrder": "asc",
"getCounts": false,
"returnAll": false,
"showEphemeral": false
}'
{
"codeScans": [
{
"name": "<string>",
"githubRepositoryId": "<string>",
"gitlabRepositoryId": "<string>",
"bitbucketRepositoryId": "<string>",
"status": "<string>",
"projectId": "<string>",
"applicationId": "<string>",
"scanId": "<string>",
"prTargetBranch": "<string>",
"scanTargetBranch": "<string>",
"codeScanType": "<string>",
"prTriggeredURL": "<string>",
"isStaged": true,
"codeScanFinished": true,
"issueCounts": {
"open": 123,
"patched": 123,
"falsePositive": 123,
"archived": 123,
"processing": 123
},
"finished": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"repositoryId": "<string>",
"errorMessage": "<string>",
"trigger": "<string>",
"sastScan": {
"id": "<string>",
"error": "<string>"
}
}
],
"totalCount": 123
}
curl --request POST \
--url https://zeropath.com/api/v1/scans/list \
--header 'Content-Type: application/json' \
--header 'X-ZeroPath-API-Token-Id: <api-key>' \
--header 'X-ZeroPath-API-Token-Secret: <api-key>' \
--data '{
"organizationId": "<string>",
"page": 1,
"pageSize": 10,
"searchQuery": "<string>",
"repositoryIds": [
"<string>"
],
"projectId": "<string>",
"scanId": "<string>",
"scanType": "FullScan",
"sortBy": "createdAt",
"sortOrder": "asc",
"getCounts": false,
"returnAll": false,
"showEphemeral": false
}'
{
"codeScans": [
{
"name": "<string>",
"githubRepositoryId": "<string>",
"gitlabRepositoryId": "<string>",
"bitbucketRepositoryId": "<string>",
"status": "<string>",
"projectId": "<string>",
"applicationId": "<string>",
"scanId": "<string>",
"prTargetBranch": "<string>",
"scanTargetBranch": "<string>",
"codeScanType": "<string>",
"prTriggeredURL": "<string>",
"isStaged": true,
"codeScanFinished": true,
"issueCounts": {
"open": 123,
"patched": 123,
"falsePositive": 123,
"archived": 123,
"processing": 123
},
"finished": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"repositoryId": "<string>",
"errorMessage": "<string>",
"trigger": "<string>",
"sastScan": {
"id": "<string>",
"error": "<string>"
}
}
],
"totalCount": 123
}
FullScan
, PrScan
createdAt
, updatedAt
asc
, desc