Top Non-compliant Package Licenses
POST/code/api/v2/dashboard/package-licenses
Gets the list of non-compliant package licenses that occurred most frequently in the scanned repositories. The returned list also includes the count of repositories in which each non-compliant package license was detected.
You can set the repositories
and severities
parameters in the request body to filter the results.
Request
- application/json
Body
required
The repositories filter enables you to retrieve issues related to one or more repositories.
You must provide the UUIDs of the repositories that you want to include in the filter.
To retrieve the UUID of a repository use the List repository list endpoint.
(the id
field of the response has the UUID of the repository).
The maximum number of results included in the response.
Responses
- 200
- 401
- 422
- 500
Non compliant package licenses
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object[]required
Number of issues for each type of license.
The package license.
Number of repositories in which the package with the license issue was detected.
The time when the last scan was triggered.
{
"data": [
{
"count": 0,
"license": "string",
"repos": 0
}
],
"lastScanDate": "string"
}
Customer has no permitted accounts
Request arguments validation error
Failed to get package licenses