Description: Returns a paginated list of unique packages bound with the specified application, including summary details.
Since: AppTrust 1.16.4
Usage: GET https://{{artifactory-host}}/apptrust/api/v1/applications/{{application_key}}/packages
Query Parameters (optional):
Parameter | Type | Description |
|---|---|---|
| string | Filters the results according to a specific package name. |
| string | Filters the results according to a specific package type (for example, |
Response Body:
Property | Type | Description |
|---|---|---|
| array:object | An array of package summary objects. |
| string | The package name. |
| string | The package type. |
| integer | The total number of versions of this package that are owned by the application. |
| string | The latest version of this package that is owned by the application. |
Sample Request:
GET 'https://{host}.jfrog.io/access/api/v1/applications/web-portal-app/packages?type=npm&offset=0&limit=10&sort_by=package_name&order_by=desc HTTP/1.1
Content-Type: application/json
Authorization: ••••••
Sample Response:
{
"packages": [
// Assuming 'portal-ui-components' comes after 'portal-auth-client' alphabetically
{
"name": "portal-ui-components",
"type": "npm",
"latest_version": "2.5.1",
"num_versions": 5
},
{
"name": "portal-auth-client",
"type": "npm",
"latest_version": "1.3.0",
"num_versions": 3
}
],
"pagination": {
"offset": 0,
"limit": 10,
"total_items": 2
}
}
Status Codes:
Code | Description |
|---|---|
200 | Success |
400 | Bad Request |
401 | Bad Credentials |
403 | Permission Denied |
404 | Not Found |