Resolve an app image API Reference
POST
/tenants/{tenant}/app-images/resolve
const url = 'https://api.kupe.cloud/api/v1/tenants/example/app-images/resolve';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"image":"nginxinc/nginx-unprivileged:1.27"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.kupe.cloud/api/v1/tenants/example/app-images/resolve \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "image": "nginxinc/nginx-unprivileged:1.27" }'Resolve an image from an approved public registry or the tenant’s container registry to an immutable digest. The image must support linux/amd64 and set a non-root numeric USER. Answers 404 while the platform has apps switched off.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” tenant
required
string
Tenant name
Request Body
Section titled “ Request Body ”Image to resolve
Media type application/json
object
image
string
Example
nginxinc/nginx-unprivileged:1.27Responses
Section titled “ Responses ”OK
Media type application/json
object
exposedPorts
Array<integer>
platforms
Array<object>
object
architecture
string
digest
Digest is the platform image’s digest (for a single image, its own).
string
os
string
variant
string
reference
string
user
string
Example
{ "exposedPorts": [ 8080 ], "platforms": [ { "architecture": "amd64", "digest": "sha256:9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b", "os": "linux", "variant": "" } ], "user": "101"}Bad Request
Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Unauthorized
Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Forbidden
Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Not Found
Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Request Entity Too Large
Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Too Many Requests
Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Service Unavailable
Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}