Create an inventory. Name and Inventory type is a mandatory field. Note: Value for rememberLicense can be GLOBAL or INVENTORY (default).
Created
Bad Request
Unauthorized
Internal Server Error
{- "projectId": "1",
- "inventoryModel": {
- "name": "maven-artifact 3.6.1 (Apache-2.0)",
- "description": "Sources: scm:git:https://git-wip-us.apache.org/repos/asf/maven.git",
- "priority": "P1 | P2 | P3 | P4",
- "disclosed": "YES | NO",
- "distribution": "UNKNOWN | INTERNAL | EXTERNAL | HOSTED",
- "partOfProduct": "UNKNOWN | YES | NO",
- "linking": "UNKNOWN | NOT_LINKED | STATIC | DYNAMIC",
- "modified": "UNKNOWN | YES | NO",
- "encryption": "UNKNOWN | YES | NO",
- "auditorReviewNotes": "string",
- "noticeText": "string",
- "usageGuidance": "string",
- "remediationNotes": "string",
- "confidenceLevel": "HIGH | MEDIUM | LOW default: HIGH",
- "inventoryType": "COMPONENT | LICENSE | WORK_IN_PROGRESS",
- "component": {
- "id": "58316",
- "versionId": "3704669",
- "licenseId": "158"
}, - "licenseId": "158",
- "rememberLicense": "GLOBAL | INVENTORY default: INVENTORY",
- "workflowURL": "SVM-123 | https://www.example.com | default: None",
- "invProvenanceId": "1",
- "customFields": [
- {
- "id": "1",
- "value": "Value for custom field"
}
]
}
}
Returns the inventories file and/or folder ids
OK
Bad Request
Unauthorized
Internal Server Error
{ }
Update an inventory for a given inventoryId. Note: Value for rememberLicense can be GLOBAL or INVENTORY (default).
OK
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
{- "name": "maven-artifact 3.6.1 (Apache-2.0)",
- "description": "Sources: scm:git:https://git-wip-us.apache.org/repos/asf/maven.git",
- "priority": "P1 | P2 | P3 | P4",
- "disclosed": "YES | NO",
- "distribution": "UNKNOWN | INTERNAL | EXTERNAL | HOSTED",
- "partOfProduct": "UNKNOWN | YES | NO",
- "linking": "UNKNOWN | NOT_LINKED | STATIC | DYNAMIC",
- "modified": "UNKNOWN | YES | NO",
- "encryption": "UNKNOWN | YES | NO",
- "auditorReviewNotes": "string",
- "noticeText": "string",
- "usageGuidance": "string",
- "remediationNotes": "string",
- "confidenceLevel": "HIGH | MEDIUM | LOW default: HIGH",
- "inventoryType": "COMPONENT | LICENSE | WORK_IN_PROGRESS",
- "component": {
- "id": "58316",
- "versionId": "3704669",
- "licenseId": "158"
}, - "licenseId": "158",
- "rememberLicense": "GLOBAL | INVENTORY default: INVENTORY",
- "workflowURL": "SVM-123 | https://www.example.com | default: None",
- "invProvenanceId": "1",
- "customFields": [
- {
- "id": "1",
- "value": "Value for custom field"
}
]
}
Add files and/or folders to inventory item and returns the response message
To Add files and folders to the inventory provide file and folder paths.
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
{- "filePaths": [
- "string"
], - "folderPaths": [
- "string"
], - "markAssociatedFilesAsReviewed": "false"
}
{ }
Fetches the history for a given inventoryId, changes are grouped based on the revision id.
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
"string"
update an inventory status with DRAFT, APPROVED and REJECTED status.The approve/reject inventory affects Manual Review task only. Any changes made to Inventory will not affect Remediation and Miscellaneous tasks. On Approving Inventory, Inventory gets Approved and Manual review task will be closed with Approve status. On Rejecting Inventory, Inventory gets Rejected by creating an open Remediation task and the Manual review task will be closed with Reject status.
OK
Unauthorized
Not Found
Internal Server Error
Get vulnerability analysis details of an inventory.
OK
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
{- "inventoryId": 0,
- "analyzedVulnerabilities": [
- {
- "vulnerabilityId": 0,
- "vulnerabilityName": "string",
- "componentVersionId": 0,
- "analysis": {
- "id": 0,
- "state": "string",
- "justification": "string",
- "response": "string",
- "detail": "string",
- "firstIssued": "string",
- "firstIssuedBy": "string",
- "lastUpdated": "string",
- "lastUpdatedBy": "string"
}, - "suppression": {
- "id": 0,
- "suppressedDate": "string",
- "suppressedBy": "string"
}, - "suppressed": false
}
]
}