ComponentLicenses
Get license information for a software component identified by Package URL.HTTP Request Example
Response Format
Returns license data for a component in two forms:- Licenses list: All detected licenses in the component
- SPDX expression: Combined license expression when determinable
purl: Component identifierlicenses: List of detected licensesid: SPDX ID or license referencefull_name: License nameis_spdx_approved: SPDX approval statusurl: License reference URL
statement: SPDX expression (when available)version: Resolved component versionurl: Component source URLrequirement: Version constraint from requestinfo_code: Processing result codeinfo_message: Human-readable status message
Info Codes
Theinfo_code field reports the outcome of processing each component. Possible values:
| Code | Meaning |
|---|---|
SUCCESS | Request processed successfully |
INVALID_PURL | Invalid Package URL |
COMPONENT_NOT_FOUND | Component not found |
NO_INFO | No license data available |
INVALID_SEMVER | Invalid version format |
VERSION_NOT_FOUND | Version not found |