Which command correctly outputs scan results to stdout in tabular format and writes scan results to a JSON file while still sending the results to Console?
Which command correctly outputs scan results to stdout in tabular format and writes scan results to a JSON file while still sending the results to Console?
To output scan results to stdout in tabular format, the correct flag is --stdout-tabular. To write scan results to a JSON file, the --output-file flag is used. Combining these flags in the command ensures that scan results are sent to the console while being displayed in tabular format on stdout and written to a JSON file. Option A correctly uses --stdout-tabular and --output-file, making it the proper command for achieving both objectives.
D is Correct. Already tested on lab environment with this command. ./twistcli images scan --address <CONSOLE_ADDRESS> --u <ACCESS_KEY> --p <SECRET_KEY> --details --output-file scan-results.json nginx:latest
D is Correct
https://docs.prismacloud.io/en/classic/compute-admin-guide/tools/twistcli-scan-images
To write scan results to stdout in tabular format, pass the --details flag to twistcli. This does not affect where the results are sent. To write scan results to a file in JSON format, pass the --output-file flag to twistcli. The file schema is being kept for backwards compatibility.
I made a mistake. The correct answer is C.