Get the list of SPDX licenses

Note: This endpoint is in preview and is subject to change. If you have any feedback, contact Datadog support.

GET https://api.ap1.datadoghq.com/api/v2/static-analysis-sca/licenses/listhttps://api.ap2.datadoghq.com/api/v2/static-analysis-sca/licenses/listhttps://api.datadoghq.eu/api/v2/static-analysis-sca/licenses/listhttps://api.ddog-gov.com/api/v2/static-analysis-sca/licenses/listhttps://api.us2.ddog-gov.com/api/v2/static-analysis-sca/licenses/listhttps://api.datadoghq.com/api/v2/static-analysis-sca/licenses/listhttps://api.us3.datadoghq.com/api/v2/static-analysis-sca/licenses/listhttps://api.us5.datadoghq.com/api/v2/static-analysis-sca/licenses/list

Overview

Response

OK

The top-level response object returned by the licenses list endpoint, containing the array of supported SPDX licenses.

Expand All

Field

Type

Description

data [required]

object

The data object in a licenses list response, containing the list of SPDX licenses.

attributes [required]

object

The attributes of the licenses list response, containing the array of SPDX licenses.

licenses [required]

[object]

The list of SPDX licenses returned by the API.

display_name [required]

string

The human-readable name of the license.

identifier [required]

string

The SPDX identifier of the license.

short_name [required]

string

The short name of the license, typically matching the SPDX identifier.

id [required]

string

The unique identifier for this licenses list response.

type [required]

enum

The type identifier for license list responses. Allowed enum values: licenserequest

default: licenserequest

{
  "data": {
    "attributes": {
      "licenses": [
        {
          "display_name": "MIT License",
          "identifier": "MIT",
          "short_name": "MIT"
        }
      ]
    },
    "id": "0190a3d4-1234-7000-8000-000000000000",
    "type": "licenserequest"
  }
}

Too many requests

API error response.

Expand All

Field

Type

Description

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

Code Example

                  # Curl command
curl -X GET "https://api.ap1.datadoghq.com"https://api.ap2.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.us2.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/static-analysis-sca/licenses/list" \ -H "Accept: application/json" \ -H "DD-API-KEY: ${DD_API_KEY}" \ -H "DD-APPLICATION-KEY: ${DD_APP_KEY}"