Use this API to create an inventory item for a given project (identified by its projectId). The inventory’s name and type are mandatory parameters.
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",
- "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",
- "workflowURL": "SVM-123 | https://www.example.com | default: None",
- "invProvenanceId": "1",
- "customFields": [
- {
- "id": "1",
- "value": "Value for custom field."
}
]
}
}
This API retrieves the inventory items associated with one or more codebase files (and/or codebase folders) that you specify for a given project (identified by its projectId).
You must specify each file or folder by its fileId or folderId, respectively. To obtain these Ids, use the Get ID of File or Folder API (/projects/{projectId}/files).
OK
Bad Request
Unauthorized
Internal Server Error
{ }
This API returns details about a given inventory item (identified by its inventoryId). You can choose to display or hide information about the security vulnerabilities associated with the inventory item.
To obtain the inventoryId for an inventory item, use the Get the Inventories of File/Folder IDs API (inventories/search).
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
Use this API to update attributes for an inventory (identified by its inventoryId).
If necessary, use the Get the Inventories of File/Folder IDs API (inventories/search) to obtain the inventoryId.
OK
Bad Request
Unauthorized
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",
- "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",
- "workflowURL": "SVM-123 | https://www.example.com | default: None",
- "invProvenanceId": "1",
- "customFields": [
- {
- "id": "1",
- "value": "Value for custom field."
}
]
}
Use this API to delete an inventory item (identified by its inventoryId).
If necessary, use the Get the Inventories of File/Folder IDs API (inventories/search) to obtain the inventoryId.
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
Use this API to add associated files (individually or at folder-path level) to an inventory item (identified by its inventoryId). You can choose to mark all the newly added files as reviewed.
If necessary, use the Get the Inventories of File/Folder IDs API (inventories/search) to obtain the inventoryId.
To add files and folders to the inventory item, provide file and folder paths.
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
{- "filePaths": [
- "string"
], - "folderPaths": [
- "string"
], - "markAssociatedFilesAsReviewed": "false"
}
{ }
This API retrieves the revision history for a given inventory item (identified by its inventoryId). Note that the response groups all historical revisions by revision ID (based on the revision timestamp).
If necessary, use the Get the Inventories of File/Folder IDs API (inventories/search) to obtain the inventoryId.
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
"string"
Use this API to publish a given inventory item (identified by its inventoryId).
If necessary, use the Get the Inventories of File/Folder IDs API (inventories/search) to obtain the inventoryId.
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
"string"
Use this API to recall a published inventory item (that is, unpublish it). A recalled inventory item is removed from the Project Inventory tab, but it remains in the Analysis Workbench with an “unpublished” status, indicating that it requires further auditing.
You must identify the item that you want to recall by its inventoryId. If necessary, use the Get the Inventories of File/Folder IDs API (inventories/search) to obtain the inventoryId.
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
"string"
Use this API to update that status of a published inventory item (identified by its inventoryId) in Project Inventory to DRAFT (not reviewed), APPROVED, or REJECTED.
If necessary, use the Get the Inventories of File/Folder IDs API (inventories/search) to obtain the inventoryId.
The approval or rejection of an inventory item impacts Manual Inventory Review tasks associated with the item. When an inventory item is approved, its Manual Inventory Review tasks are closed with an Approved status. When an inventory item is rejected, its Manual Inventory Review tasks are closed with a Rejected status and a Remediate Inventory task is created. A change to inventory status does not impact Remediation and Miscellaneous tasks associated with the inventory item.
OK
Unauthorized
Not Found
Internal Server Error
This API returns details about each security vulnerability associated with a given inventory item (identified by its inventoryId).
If necessary, use the Get the Inventories of File/Folder IDs API (inventories/search) to obtain the inventoryId.
OK
Bad Request
Unauthorized
Not Found
Internal Server Error