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
Enum:"Work in Progress""Component""Material from Website""Material from Publication""License Only"
link type
Enum:"Unknown""Not Linked""Statically Linked""Dynamically Linked"
Example:"Unknown"
distribution type
Enum:"Unknown""Internal""External""Hosted-Any""Hosted for Internal Use""Hosted for External Use"
Example:"Unknown"
Response
{ "licenseDetectionMethod": "string", "vulnerabilityAlerts": [ { … } ], "autoDetectionNotes": "Note", "associatedLicense": 1, "rejectedByUpdate": true, "userUpdatedStatus": "string", "description": "Description", "name": "git", "priority": { "id": 0, "type": "INVENTORY_STATUS", "name": "string", "description": "string", "isDefault": true }, "id": 1, "owner": "antlr", "url": "http://www.antlr.org", "status": "UNUSED0", "publishedDate": "2019-08-24T14:15:22Z", "parentGroupId": 0, "systemGenerated": true, "autoStatus": "DRAFT", "statusPolicyId": 0, "priorityId": 0, "usageText": "usage", "projectId": 1, "published": true, "inventoryType": "Work in Progress", "modified": "Unknown", "linking": "Unknown", "eccn": "string", "partOfProduct": "Unknown", "distributed": "Unknown", "confidence": "1", "disclosed": true, "encrypted": "Unknown", "noticeText": "Notice text", "copyrightText": "string", "repositoryItem": { "title": "string", "id": 0, "item": { … }, "componentVersion": { … }, "inUse": true, "component": { … }, "createDate": "2019-08-24T14:15:22Z", "updateDate": "2019-08-24T14:15:22Z", "createdBy": "string", "license": 1, "licenseExpressionId": 0, "licenseExpression": { … } }, "provenanceId": 0, "createDate": "2019-08-24T14:15:22Z", "updateDate": "2019-08-24T14:15:22Z", "fileCount": 2000, "dependencyScope": "string", "links": [ { … } ], "license": 1, "auditorReviewNotes": "good to go", "remediationNotes": "update this immediately", "workflowURL": "string", "associatedComponent": { "flagMask": 0, "popularity": 0, "sourceRepoUrl": "string", "modified": true, "title": "string", "description": "string", "name": "string", "id": 0, "default": true, "displayName": "string", "url": "string", "versions": [ … ], "createdBy": "string", "licenses": [ … ], "componentForge": { … }, "componentCPEs": [ … ], "sortedVersions": [ … ], "custom": true, "externalId": "string", "updatedBy": "string", "encryption": true, "registeredDate": "2019-08-24T14:15:22Z", "lastUpdateDate": "2019-08-24T14:15:22Z", "sortedLicenses": [ … ], "type": "Component" }, "associatedComponentVersion": { "id": 0, "type": "Component", "displayName": "string", "deprecated": true, "customVulnerabilities": [ … ], "licenses": [ … ], "component": { … }, "vulnerabilities": [ … ], "versionName": "string", "purl": "string", "releaseDate": "2019-08-24T14:15:22Z", "versionLicenses": [ … ], "custom": true, "sortedLicenses": [ … ], "displayVersionName": "string" }, "closedVulnerabilityAlerts": [ { … } ], "openVulnerabilityAlerts": [ { … } ], "asFoundLicenseText": "Sample from file LICENSE.txt in file ePortal-2.0" }