Mend Container Image API (2.0)

Mend's enhanced Container Image API enables automation of workflows. The API features:

  • Access for any user with Mend credentials, via a user key available in the user's profile page in the Mend Application.
  • Added scalability with support for pagination, filtering and sorting search results.
  • Broader functionality available programmatically.
  • New standard API documentation for easy navigation and search.

If you have a dedicated instance of Mend, contact your Mend representative to access this API on your instance. To access your base URL for API calls go to the Mend Application > Cloud Native.

Download OpenAPI description
Overview
License Apache 2.0
Languages
Servers
https://baseUrl/cn/api/v2.0/
http://baseUrl/cn/api/v2.0/

Kubernetes

Operations

Compliance

Operations

Images

Operations

Get Images

Request

Get the image of the project

Path
orguuidstringrequired

organization UUID

projectuuidstringrequired

project UUID

Query
sortstring

sorted by, default is lastScanDate

Default "lastScanDate"
orderstring

order sorting, possible values are asc/desc

Default "desc"
pageinteger

page number

Default 1
sizeinteger

number of objects per page

Default 1000
registriesstring

one or more image registries names separated by commas

repositoriesstring

one or more image repositories names separated by commas

tagsstring

image tags

imageSourcestring

image source

maxRiskScorestring

image max risk score

lastScanDatestring

image last scan date

isViolatedboolean

is violated policies

No request payload

Responses

Data field refers to a list of objects

Bodyapplication/json
additionalInfoobject(common.Pagination)
dataany
Response
application/json
{ "additionalInfo": { "isLastPage": true, "page": 0, "pageCount": 0, "pageSize": 20, "size": 20, "totalCount": 0, "totalItems": 0 }, "data": null }

Get Image vulnerabilities

Request

Get the image vulnerabilities

Path
orguuidstringrequired

organization UUID

projectuuidstringrequired

project UUID

Query
sortstring

sort by

orderstring

order sorting, possible values are asc/desc

pageinteger

page number

Default 1
sizeinteger

number of objects per page

Default 1000
onlyOsboolean

is only OS packages

withFixboolean

has fix

severitystring

vendor severity filter

excludeBaseLayersboolean

exclude vulnerabilities from base Layers

No request payload

Responses

Data field refers to a list of objects

Bodyapplication/json
additionalInfoobject(common.Pagination)
dataany
Response
application/json
{ "additionalInfo": { "isLastPage": true, "page": 0, "pageCount": 0, "pageSize": 20, "size": 20, "totalCount": 0, "totalItems": 0 }, "data": null }

Get image layers

Request

Get the image layers

Path
orguuidstringrequired

organization UUID

projectuuidstringrequired

project UUID

layeruuidstringrequired

layer UUID

Query
sortstring

sort by

orderstring

order sorting, possible values are asc/desc

pageinteger

page number

Default 1
sizeinteger

number of objects per page

Default 1000
excludeBaseLayersboolean

exclude base Layers

No request payload

Responses

Data field refers to a list of objects

Bodyapplication/json
additionalInfoobject(common.Pagination)
dataany
Response
application/json
{ "additionalInfo": { "isLastPage": true, "page": 0, "pageCount": 0, "pageSize": 20, "size": 20, "totalCount": 0, "totalItems": 0 }, "data": null }

Get image packages

Request

Get the image packages

Path
orguuidstringrequired

organization UUID

projectuuidstringrequired

project UUID

Query
sortstring

sort by

orderstring

order sorting, possible values are asc/desc

pageinteger

page number

Default 1
sizeinteger

number of objects per page

Default 1000
onlyOsboolean

is only OS packages

excludeBaseLayersboolean

exclude packages from base Layers

No request payload

Responses

Data field refers to a list of objects

Bodyapplication/json
additionalInfoobject(common.Pagination)
dataany
Response
application/json
{ "additionalInfo": { "isLastPage": true, "page": 0, "pageCount": 0, "pageSize": 20, "size": 20, "totalCount": 0, "totalItems": 0 }, "data": null }

Get image secrets

Request

Get the image secrets

Path
orguuidstringrequired

organization UUID

projectuuidstringrequired

project UUID

Query
sortstring

sort by

orderstring

order sorting, possible values are asc/desc

pageinteger

page number

Default 1
sizeinteger

number of objects per page

Default 1000
severitystring

vendor severity filter

excludeBaseLayersboolean

exclude secrets from base Layers

No request payload

Responses

Data field refers to a list of objects

Body*/*
additionalInfoobject(common.Pagination)
dataany

Get image

Request

Get a specific image

Path
orguuidstringrequired

organization UUID

projectuuidstringrequired

project UUID

scanuuidstringrequired

scan UUID

No request payload

Responses

Data field refers to a list of objects

Bodyapplication/json
additionalInfoobject(common.Pagination)
dataany
Response
application/json
{ "additionalInfo": { "isLastPage": true, "page": 0, "pageCount": 0, "pageSize": 20, "size": 20, "totalCount": 0, "totalItems": 0 }, "data": null }

Get image/project/application deployment data

Request

Get image/project/application deployment data

Path
orguuidstringrequired

organization UUID

projectuuidstringrequired

project UUID

applicationuuidstringrequired

application UUID

scanuuidstringrequired

scan UUID