SnykLicense
Model for Snyk Licenses (v1 API).
Overview
This model represents licenses found in dependencies across your projects. It provides information about license compliance and associated dependencies.
Uses the Snyk v1 API endpoint: POST /org/{orgId}/licenses
Usage
import clearskies
from clearskies_snyk.models.v1 import SnykLicense
def my_handler(snyk_license: SnykLicense):
# Fetch all licenses for an organization
licenses = snyk_license.where("org_id=org-id-123")
for license in licenses:
print(f"{license.id}: severity={license.severity}")
Severity Levels
License severity can be:
none: No compliance concernlow: Low compliance concernmedium: Medium compliance concernhigh: High compliance concern
Required Permissions
View OrganizationView ProjectView Project Snapshot