第20章 secscan
リポジトリーの脆弱性およびその他のセキュリティー情報をリスト表示および管理します。
20.1. getRepoManifestSecurity リンクのコピーリンクがクリップボードにコピーされました!
GET /api/v1/repository/{repository}/manifest/{manifestref}/security
認可: oauth2_implicit (repo:read)
パスパラメーター
| 型 | 名前 | 説明 | スキーマ |
|---|---|---|---|
| path |
repository | リポジトリーの完全パス (例: namespace/name) | string |
| path |
manifestref | マニフェストのダイジェスト | string |
クエリーパラメーター
| 型 | 名前 | 説明 | スキーマ |
|---|---|---|---|
| query |
vulnerabilities | 脆弱性情報を含めます | boolean |
レスポンス
| HTTP コード | 説明 | スキーマ |
|---|---|---|
| 200 | 正常な呼び出し | |
| 400 | Bad Request (不適切な要求) | |
| 401 | セッションが必要 | |
| 403 | 不正アクセス | |
| 404 | 見つからない |
コマンドの例
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>"