PCCSE · Question #106
Which API calls can scan an image named myimage: latest with twistcli and then retrieve the results from Console?
The correct answer is B. $ twistcli images scan \. The correct workflow involves two steps: (1) running 'twistcli images scan' with the appropriate flags (--address pointing to the Console URL, --user and --password or token for authentication, and specifying 'myimage:latest') to scan the image and push results to Console, and…
Question
Which API calls can scan an image named myimage: latest with twistcli and then retrieve the results from Console?
Options
- A$ twistcli images scan \
- B$ twistcli images scan \
- C$ twistcli images scan \
- D$ twistcli images scan \
How the community answered
(20 responses)- B95% (19)
- D5% (1)
Explanation
The correct workflow involves two steps: (1) running 'twistcli images scan' with the appropriate flags (--address pointing to the Console URL, --user and --password or token for authentication, and specifying 'myimage:latest') to scan the image and push results to Console, and (2) calling the Prisma Cloud Compute REST API endpoint (GET /api/v1/images) to retrieve the stored scan results. Option B represents the correct combination of flags and API endpoint. Other options contain incorrect flags, wrong API endpoints, or missing required parameters.
Topics
Community Discussion
No community discussion yet for this question.