Images

Get the content of an image by type java

get/images/by_id/{imageId}/content/java

Path parameters

imageIdstring required

Headers

x-anchore-accountstring

An account name to change the resource scope of the request to that account, if permissions allow (admin only)

Response

Content of specified type from the image

imageDigeststring
content_typestring

Example response

{
  "content_type": "content_type",
  "content": [
    {
      "package": "package",
      "implementation-version": "implementation-version",
      "cpes": [
        "cpes",
        "cpes"
      ],
      "origin": "origin",
      "maven-version": "maven-version",
      "location": "location",
      "type": "type",
      "specification-version": "specification-version"
    },
    {
      "package": "package",
      "implementation-version": "implementation-version",
      "cpes": [
        "cpes",
        "cpes"
      ],
      "origin": "origin",
      "maven-version": "maven-version",
      "location": "location",
      "type": "type",
      "specification-version": "specification-version"
    }
  ],
  "imageDigest": "imageDigest"
}

Changes

Changed in 2 of the 5 revisions of this API.211

  • 38e5705e0b2111See the full diff
    • the content/items/ response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • added the optional property content/items/cpes to the response with the 200 status

      response-optional-property-added

    This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the content/items/ response's property type/format changed from object/ to / for status 200

      response-property-type-changed

    • removed the optional property content/items/cpes from the response with the 200 status

      response-optional-property-removed

    This revision also has 75 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog