v1

latestOpenAPI 3.0.1Apache 2.02026-07-17111176225.7 KB
Imports

Begin the import of an image analyzed by Syft into the system

post/imports/images/{operation_id}/packages

Path parameters

operation_idstring required

Request body

Example request

{
  "schema": {
    "version": "version",
    "url": "url"
  },
  "distro": {
    "idLike": "idLike",
    "name": "name",
    "version": "version"
  },
  "source": {
    "type": "type",
    "target": "{}"
  },
  "descriptor": {
    "name": "name",
    "version": "version"
  },
  "artifactRelationships": [
    {
      "parent": "parent",
      "metadata": "{}",
      "type": "type",
      "child": "child"
    },
    {
      "parent": "parent",
      "metadata": "{}",
      "type": "type",
      "child": "child"
    }
  ],
  "artifacts": [
    {
      "foundBy": "foundBy",
      "licenses": [
        "licenses",
        "licenses"
      ],
      "metadata": "{}",
      "cpes": [
        "cpes",
        "cpes"
      ],
      "name": "name",
      "locations": [
        {
          "path": "path",
          "layerID": "layerID"
        },
        {
          "path": "path",
          "layerID": "layerID"
        }
      ],
      "language": "language",
      "id": "id",
      "purl": "purl",
      "type": "type",
      "version": "version",
      "metadataType": "metadataType"
    },
    {
      "foundBy": "foundBy",
      "licenses": [
        "licenses",
        "licenses"
      ],
      "metadata": "{}",
      "cpes": [
        "cpes",
        "cpes"
      ],
      "name": "name",
      "locations": [
        {
          "path": "path",
          "layerID": "layerID"
        },
        {
          "path": "path",
          "layerID": "layerID"
        }
      ],
      "language": "language",
      "id": "id",
      "purl": "purl",
      "type": "type",
      "version": "version",
      "metadataType": "metadataType"
    }
  ]
}

Response

success

digeststring
created_atstring date-time

Example response

{
  "digest": "digest",
  "created_at": "2000-01-23T04:56:07.000+00:00"
}