GitLab API

GitlabTool

Actions1095

Debian_distribution → getApiV4ProjectsIdDebianDistributionsCodenameKeyAsc

AI-generated

Summary

Retrieve the ASCII-armored GPG key (.asc) for a specific Debian distribution codename within a given GitLab project using the GET method.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the Debian distribution.
  • codename (required) — The Debian codename whose ASCII-armored GPG key you want to retrieve, e.g., 'sid'.
  • skipAuthentication — Optional boolean to skip using authentication credentials for the request.
  • baseUrl — Optional base URL to override the default GitLab instance URL (default is 'https://gitlab.com').

Output shape

a single ASCII-armored GPG key file (key.asc) as retrieved from the project's Debian distribution endpoint

Returns the raw GPG key content in ASCII-armored format for the specified Debian distribution codename under the given project ID. Authentication is used by default unless skipped. The operation uses a GET request.

Examples

Example 1: Fetching the GPG key for the Debian codename 'sid' in project with ID 12345

Set 'id' to '12345' and 'codename' to 'sid', use default GET method and base URL, provide GitLab API credentials unless 'skipAuthentication' is true.

Links

Discussion