6.16. API を使用した Clair セキュリティースキャンの表示
API を使用して Clair セキュリティースキャンを表示できます。
手順
GET /api/v1/repository/{repository}/manifest/{manifestref}/security
エンドポイントを使用して、リポジトリー内の特定のマニフェストに関するセキュリティー情報を取得します。以下に例を示します。curl -X GET \ -H "Authorization: Bearer <bearer_token>" \ -H "Accept: application/json" \ "https://quay-server.example.com/api/v1/repository/<namespace>/<repository>/manifest/<manifest_digest>/security?vulnerabilities=<true_or_false>"
$ curl -X GET \ -H "Authorization: Bearer <bearer_token>" \ -H "Accept: application/json" \ "https://quay-server.example.com/api/v1/repository/<namespace>/<repository>/manifest/<manifest_digest>/security?vulnerabilities=<true_or_false>"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 出力例
{"status": "queued", "data": null}
{"status": "queued", "data": null}
Copy to Clipboard Copied! Toggle word wrap Toggle overflow