软件物料清单 (sbom)

sbom 端点提供有关软件物料清单 (SBOM) 的信息。

检索可用的 SBOM

要检索可用的 SBOM,请向 /actuator/sbom 发出 GET 请求,如以下基于 curl 的示例所示

$ curl 'https://:8080/actuator/sbom' -i -X GET

结果响应类似于以下内容

HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 31

{
  "ids" : [ "application" ]
}

响应结构

响应包含可用的 SBOM。下表描述了响应的结构

路径 类型 描述

ids

数组

可用 SBOM ID 的数组。

检索单个 SBOM

要检索可用的 SBOM,请向 /actuator/sbom/{id} 发出 GET 请求,如以下基于 curl 的示例所示

$ curl 'https://:8080/actuator/sbom/application' -i -X GET

前面的示例检索名为 application 的 SBOM。结果响应取决于 SBOM 的格式。此示例使用 CycloneDX 格式。

HTTP/1.1 200 OK
Content-Type: application/vnd.cyclonedx+json
Accept-Ranges: bytes
Content-Length: 160316

{
  "bomFormat" : "CycloneDX",
  "specVersion" : "1.5",
  "serialNumber" : "urn:uuid:13862013-3360-43e5-8055-3645aa43c548",
  "version" : 1,
  // ...
}

响应结构

响应取决于 SBOM 的格式

© . This site is unofficial and not affiliated with VMware.