Images
Submit a new image for analysis by the engine
Creates a new analysis task that is executed asynchronously
post/images
Query parameters
forceboolean
Override any existing entry in the system
autosubscribeboolean
Instruct engine to automatically begin watching the added tag for updates from registry
Headers
x-anchore-accountstring
An account name to change the resource scope of the request to that account, if permissions allow (admin only)
Request body
Example request
{
"dockerfile": "dockerfile",
"digest": "digest",
"created_at": "2000-01-23T04:56:07.000+00:00",
"annotations": "{}",
"tag": "tag",
"source": {
"import": {
"local_image_id": "local_image_id",
"operation_uuid": "operation_uuid",
"contents": {
"parent_manifest": "parent_manifest",
"manifest": "manifest",
"dockerfile": "dockerfile",
"image_config": "image_config",
"packages": "packages"
},
"digest": "digest",
"parent_digest": "parent_digest",
"tags": [
"docker.io/library/nginx:latest",
"docker.io/library/nginx:latest"
]
},
"digest": {
"creation_timestamp_override": "2000-01-23T04:56:07.000+00:00",
"dockerfile": "dockerfile",
"pullstring": "pullstring",
"tag": "tag"
},
"archive": {
"digest": "digest"
},
"tag": {
"dockerfile": "dockerfile",
"pullstring": "pullstring"
}
},
"image_type": "image_type"
}Response
Successfully added image to analysis queue
Example response
[
{
"last_updated": "2000-01-23T04:56:07.000+00:00",
"analysis_status": "not_analyzed",
"created_at": "2000-01-23T04:56:07.000+00:00",
"annotations": "{}",
"image_status": "active",
"userId": "userId",
"image_content": "{}",
"image_detail": [
{
"registry": "registry",
"last_updated": "2000-01-23T04:56:07.000+00:00",
"imageId": "imageId",
"fulldigest": "fulldigest",
"repo": "repo",
"dockerfile": "dockerfile",
"created_at": "2000-01-23T04:56:07.000+00:00",
"fulltag": "fulltag",
"userId": "userId",
"imageDigest": "imageDigest"
},
{
"registry": "registry",
"last_updated": "2000-01-23T04:56:07.000+00:00",
"imageId": "imageId",
"fulldigest": "fulldigest",
"repo": "repo",
"dockerfile": "dockerfile",
"created_at": "2000-01-23T04:56:07.000+00:00",
"fulltag": "fulltag",
"userId": "userId",
"imageDigest": "imageDigest"
}
],
"imageDigest": "imageDigest"
}
]