Update image scanning settings
API server
https://app.coolify.io/api/v1Turn 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 Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.
In: header
Path Parameters
Server UUID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Memory limit of each scanner step, in MB. A value above the memory of the server is refused.
1024 | 2048 | 4096 | 8192Time limit of one Syft run (package list of an image), in seconds.
300 | 600 | 1200 | 1800 | 3600Time limit of one Grype run (vulnerability match), in seconds.
300 | 600 | 1200 | 1800 | 3600CPU limit of each scanner step. A value above the CPU count of the server is refused.
0.5 | 1 | 2 | 4Response 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 '{}'{ "message": "Invalid token."}{ "message": "Unauthenticated."}{ "message": "Resource not found."}{ "message": "Validation error.", "errors": { "name": [ "The name field is required." ], "api_url": [ "The api url field is required.", "The api url format is invalid." ] }}Update Docker cleanup settings PATCH
Update Docker cleanup settings for a server owned by the authenticated team. Turning on `delete_unused_volumes` needs a token with the `deploy` permission.
Update log drain settings PATCH
Update New Relic, Axiom, or custom log drain settings for a server owned by the authenticated team. Needs a token with the write and deploy permissions. Custom configs cannot use the lua, wasm, exec, exec_wasi, or file plugins, @INCLUDE, or plugins_file, and the parser file can only contain [PARSER] and [MULTILINE_PARSER] sections.
