GitLab API icon

GitLab API

Gitlab

Actions1062

Debian_packages → getApiV4ProjectsIdPackagesDebianDists*distributionComponentDebianInstallerBinaryArchitecturePackages

AI-generated

Summary

Retrieve the Debian package index file listing packages for a specific project, distribution, component, and architecture in GitLab's Debian package repository.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project to query.
  • distribution (required) — The Debian Codename or Suite (distribution) for which to fetch the package index.
  • component (required) — The Debian Component (e.g., 'main') under the distribution.
  • architecture (required) — The Debian architecture (e.g., 'binary-amd64') of the packages to retrieve.
  • method — The HTTP method to use; defaults to GET and typically should remain GET for this operation.
  • baseUrl — The base GitLab URL to send the request to, defaulting to https://gitlab.com.

Output shape

A single JSON response representing the Debian Packages index file content for the specified project and parameters.

The operation performs an HTTP GET request to the endpoint /api/v4/projects/{id}/packages/debian/dists/*distribution/{component}/debian-installer/binary-{architecture}/Packages. No pagination applies. Authentication is required unless explicitly skipped. The response body contains package metadata as defined by GitLab's API for Debian packages.

Examples

Example 1: Fetch Debian Packages index for project 123, distribution 'buster', component 'main', and architecture 'binary-amd64'

Set 'id' to '123', 'distribution' to 'buster', 'component' to 'main', 'architecture' to 'binary-amd64', method to GET, and optionally baseUrl.

Links

Discussion