Description: This API is called to search the archived packages based on AQL query. For information on how to search archived packages via the UI, see Search Archived Packages.
Security: Requires a platform admin. A project admin with permission can search on the project level.
Usage: POST /api/retention/searchPackages
Sample Request:
POST https://[JFrogPlatformURL]/api/retention/searchPackages
{
"packageType": "docker",
"repositories": [
"docker-local"
],
"name": "*"
}The request includes the following information:
Parameter | Description | Required/Optional |
|---|---|---|
| The package type to search for (for example, Docker). | Required |
| The repositories to include in the search results. | Required |
| The package name pattern to include in the search results. | Required |
| The package version to include in the search results. | Optional |
| The earliest archive time to include in the search results. | Optional |
| The latest archive time to include in the search results. | Optional |
Sample Response:
{
"results" : [ {
"manifestName" : "base-java11-2022.10.6-1684150761917.json",
"packageType" : "docker",
"packageName" : "bases/base-java11",
"version" : "2022.10.6",
"originalRepository" : "package-local-to-local-repo-5594",
"archivingTime" : 1684150761917
} ],
"range" : {
"start_pos" : 0,
"end_pos" : 1,
"total" : 1
}
}Status Codes:
Code | Description |
|---|---|
200 | Completed. |
400 | Validation errors. |
401 | Bad Credentials. |
403 | Unauthorized. |
500 | Internal server error. |