---
title: "Get the content of an image by type java"
method: GET
path: "/images/{imageDigest}/content/java"
tags: ["Images"]
---

# Get the content of an image by type java

`GET /images/{imageDigest}/content/java`

## Path parameters

- `imageDigest` string, required

## Headers

- `x-anchore-account` string

## Response `200`

Content of specified type from the image

- ContentJAVAPackageResponse — Java package content listings from images
  - `imageDigest` string
  - `content_type` string
  - `content` ContentJAVAPackageResponseContentInner[]
    - `package` string
    - `implementation-version` string
    - `specification-version` string
    - `maven-version` string
    - `location` string
    - `type` string
    - `origin` string
    - `cpes` string[] — A list of Common Platform Enumerations that may uniquely identify the package

## Other responses

- `500` — Internal error

## Changes

> 5 revisions in range; 1 could not be searched.

- **2019-10-02** `75f483ab10a0` — 1 breaking, 1 warning
  - the `content/items/` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - removed the optional property `content/items/cpes` from the response with the `200` status

[Change history](https://skmtc.dev/banzaicloud/apis/anchore-engine-api-server/changes/images/:imageDigest/content/java/get.md)

---

[API](https://skmtc.dev/banzaicloud/apis/anchore-engine-api-server.md) · [All operations](https://skmtc.dev/banzaicloud/apis/anchore-engine-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/banzaicloud/anchore-engine-api-server/revisions/38e5705e0b21/schema)
