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

# Get the content of an image by type java

`GET /images/by_id/{imageId}/content/java`

## Path parameters

- `imageId` 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` object[]
    - `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

---

[API](https://skmtc.net/anchore/apis/anchore-engine-api-server.md) · [All operations](https://skmtc.net/anchore/apis/anchore-engine-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/anchore/anchore-engine-api-server/versions/afb4f60ab44a/schema)
