Jobs

Export project inventory to SBOM Insights

Export project to SBOM Insights operation will be added to queue. To get status of Export to SBOM Insights use jobs/{jobId} API

SecuritybearerAuth
Request
path Parameters
projectId
required
integer <int64> >= 1

ID of the Project

Example: 1
Responses
202

Accepted

400

Bad Request

401

Unauthorized

404

Not Found

500

Internal Server Error

503

Service Unavailable

post/jobs/sbomexport/{projectId}

Update project notices

Update notices operation will be added to queue. To get status of update notices use jobs/{jobId} API

SecuritybearerAuth
Request
path Parameters
projectId
required
integer <int64> >= 1

ID of the Project

Example: 1
query Parameters
overwriteAll
boolean
Default: false

If true, overwrite all notices text, else update only empty notices texts

Responses
202

Accepted

400

Bad Request

401

Unauthorized

404

Not Found

500

Internal Server Error

503

Service Unavailable

post/jobs/notices/{projectId}

Get Job details based on the jobId provided

Returns Job details for a given JobId which is obtained from /jobs/all

SecuritybearerAuth
Request
path Parameters
jobId
required
integer <int64>

ID of the Job

Example: 1
Responses
200

OK

400

Bad request

404

Not Found

500

Internal Server Error

get/jobs/{jobId}
Response samples
application/json
{
  • "id": 0,
  • "jobType": "Project Branching",
  • "project": {
    },
  • "server": {
    },
  • "status": "NEW",
  • "triggeredBy": {
    },
  • "queuedOn": "2017-10-24 13:04:26.0",
  • "activatedOn": "2017-10-24 13:04:26.0",
  • "completedOn": "2017-10-24 13:04:26.0",
  • "jobDetails": "string",
  • "error": "string"
}

Get jobs details based on filters

Returns jobs in descending order with pagination based on jobType, status, projectId, triggeredBy, jobsHistoryInDays

SecuritybearerAuth
Request
query Parameters
jobType
string

Required param for jobType: Project Branching|Project Copy|Project Scan|Project Re-Scan|PDL Update|Project Deletion|Export to SBOM Insights|Update Notices|Project Import|Project Export|Remote Scan|Apply Policy - Global|Apply Policy - Project|Report - Audit Report|Report - Notices Report|Report - Project Report|Report - <Custom Report Name>

status
string
Enum: "New" "Active" "Canceled" "Completed" "Failed" "Scheduled" "Terminated" "Waiting on update"
projectId
integer <int32> >= 0

Id of the project (Example: 10)

triggeredBy
string

Login Name of the user (Example: admin)

jobsHistoryInDays
integer <int32> [ 0 .. 3650 ]
Default: 0

Days in number. Get jobs in days. (Default=0, All the jobs will be fetched with other filters)

limit
integer <int32> >= 1
Default: 25

Page Size. Number Of Records to fetch per page

offset
integer <int32> >= 1
Default: 1

Page Number. Index of the page to start with(starts from 1)

Responses
200

OK

400

Bad request

404

Not Found

500

Internal Server Error

get/jobs