SnykLicense

Model for Snyk Licenses (v1 API).

  1. Overview

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 concern
  • low: Low compliance concern
  • medium: Medium compliance concern
  • high: High compliance concern

Required Permissions

  • View Organization
  • View Project
  • View Project Snapshot