Returns a list of inventory and inventory details for a given project; includes a flag for a short/long version. All project users including Observer, Reviewer and Analyst can view project inventory of private projects.
Security
bearerAuth
- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/project/inventory/{projectId}
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/project/inventory/{projectId}
curl -i -X GET \
'https://codeinsightapi.redocly.app/_mock/swagger/project/inventory/1?skipVulnerabilities=false&published=true&vendor=string&product=string&size=100&page=1&reviewStatus=READY_TO_REVIEW&alerts=OPEN&includeFiles=true&includeCopyrights=false' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
As found license text
Example:"Sample from file LICENSE.txt in file ePortal-2.0"
distribution type
Enum:"Unknown""Internal""External""Hosted-Any""Hosted for Internal Use""Hosted for External Use"
Example:"Unknown"
Enum:"Work in Progress""Component""Material from Website""Material from Publication""License Only""AI Model"
link type
Enum:"Unknown""Not Linked""Statically Linked""Dynamically Linked"
Example:"Unknown"
Response
{ "name": "git", "priority": { "id": 0, "type": "INVENTORY_STATUS", "name": "string", "description": "string", "isDefault": true }, "id": 1, "owner": "antlr", "description": "Description", "url": "http://www.antlr.org", "status": "UNUSED0", "licenseDetectionMethod": "string", "rejectedByUpdate": true, "autoDetectionNotes": "Note", "userUpdatedStatus": "string", "associatedLicense": 1, "vulnerabilityAlerts": [ { … } ], "projectId": 1, "systemGenerated": true, "autoStatus": "DRAFT", "statusPolicyId": 0, "usageText": "usage", "parentGroupId": 0, "priorityId": 0, "closedVulnerabilityAlerts": [ { … } ], "openVulnerabilityAlerts": [ { … } ], "repositoryItem": { "id": 0, "item": { … }, "component": { … }, "inUse": true, "componentVersion": { … }, "createdBy": "string", "license": 1, "updateDate": "2019-08-24T14:15:22Z", "createDate": "2019-08-24T14:15:22Z", "licenseExpression": { … }, "licenseExpressionId": 0, "title": "string" }, "publishedDate": "2019-08-24T14:15:22Z", "fileCount": 2000, "dependencyScope": "string", "confidence": "1", "links": [ { … } ], "license": 1, "provenanceId": 0, "updateDate": "2019-08-24T14:15:22Z", "createDate": "2019-08-24T14:15:22Z", "disclosed": true, "asFoundLicenseText": "Sample from file LICENSE.txt in file ePortal-2.0", "auditorReviewNotes": "good to go", "workflowURL": "string", "remediationNotes": "update this immediately", "associatedComponentVersion": { "id": 0, "type": "Component", "displayName": "string", "deprecated": true, "licenses": [ … ], "component": { … }, "custom": true, "sortedLicenses": [ … ], "customVulnerabilities": [ … ], "versionLicenses": [ … ], "versionName": "string", "purl": "string", "releaseDate": "2019-08-24T14:15:22Z", "vulnerabilities": [ … ], "displayVersionName": "string" }, "associatedComponent": { "name": "string", "id": 0, "default": true, "displayName": "string", "description": "string", "licenses": [ … ], "url": "string", "versions": [ … ], "custom": true, "sortedLicenses": [ … ], "componentCPEs": [ … ], "lastUpdateDate": "2019-08-24T14:15:22Z", "componentForge": { … }, "encryption": true, "externalId": "string", "updatedBy": "string", "createdBy": "string", "registeredDate": "2019-08-24T14:15:22Z", "sortedVersions": [ … ], "sourceRepoUrl": "string", "popularity": 0, "flagMask": 0, "modified": true, "title": "string", "type": "Component" }, "distributed": "Unknown", "encrypted": "Unknown", "published": true, "aiModelType": true, "inventoryType": "Work in Progress", "partOfProduct": "Unknown", "linking": "Unknown", "modified": "Unknown", "eccn": "string", "noticeText": "Notice text", "copyrightText": "string" }