Update image scanning settings

API server

https://app.coolify.io/api/v1

Choose where to send API requests

This changes the request URL and code examples on every endpoint page.

API server type

Requests will use

https://app.coolify.io/api/v1

Use only a Coolify URL you trust. Sending a test request also sends the API token you enter.

PATCH
/servers/{uuid}/image-scanning

Turn image vulnerability scanning of a server owned by the authenticated team on or off, or change the limits of the scanner (memory, CPUs, and the Syft and Grype time limits). Send at least one field. Turning it on gets the scanner on the server in the background. A new limit applies to the next scan.

Authorization

bearerAuth
AuthorizationBearer <token>

Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.

In: header

Path Parameters

uuid*string

Server UUID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

is_image_scan_enabled?boolean
image_scan_memory_mb?integer

Memory limit of each scanner step, in MB. A value above the memory of the server is refused.

Value in1024 | 2048 | 4096 | 8192
image_scan_syft_timeout?integer

Time limit of one Syft run (package list of an image), in seconds.

Value in300 | 600 | 1200 | 1800 | 3600
image_scan_grype_timeout?integer

Time limit of one Grype run (vulnerability match), in seconds.

Value in300 | 600 | 1200 | 1800 | 3600
image_scan_cpus?number

CPU limit of each scanner step. A value above the CPU count of the server is refused.

Value in0.5 | 1 | 2 | 4

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://app.coolify.io/api/v1/servers/string/image-scanning" \  -H "Content-Type: application/json" \  -d '{}'
Empty
{  "message": "Invalid token."}
{  "message": "Unauthenticated."}
Empty
{  "message": "Resource not found."}
Empty
{  "message": "Validation error.",  "errors": {    "name": [      "The name field is required."    ],    "api_url": [      "The api url field is required.",      "The api url format is invalid."    ]  }}