Skip to main content

Generate a Docker File for App-embedded Defender

POST 

/api/v32.04/defenders/app-embedded

x-prisma-cloud-target-env: {"permission":"manageDefenders","saas":true,"self-hosted":true}
x-public: true

Creates an augmented Dockerfile with Defender and dependencies included as a ZIP file.

cURL Request

Refer to the following example cURL command:

$ curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X POST \
-d \
'{
"appID": "my-app",
"consoleAddr": "https://localhost:8083",
"dataFolder": "/var/lib/docker/containers/twistlock/tmp",
"dockerfile": "/var/lib/docker/overlay2/183e9e3ec933ba2363bcf6066b7605d99bfcf4dce84f72eeeba0f616c679cf48"
}' \
"https://<CONSOLE>/api/v<VERSION>/defenders/app-embedded"

Request

Body

    appID string

    AppID identifies the app that the embedded app defender defender is protecting.

    consoleAddr string

    ConsoleAddr is the console address.

    dataFolder string

    DataFolder is the path to the Twistlock data folder in the container.

    dockerfile string

    Dockerfile is the Dockerfile to embed AppEmbedded defender into.

    filesystemMonitoring boolean

    FilesystemMonitoring is the flag of filesystem monitoring for this Defender.

Responses

OK

Loading...