GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows users to create a new Debian distribution for a specific group in GitLab by making a POST request to the GitLab API endpoint `/api/v4/groups/{id}/-/debian_distributions`. It is useful for managing Debian package distributions within GitLab groups, enabling automation of package repository management.

Use Case Examples

  1. Automate the creation of Debian distributions for different GitLab groups as part of a CI/CD pipeline.
  2. Integrate GitLab Debian distribution management into a larger DevOps workflow to streamline package deployment.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET but can be set to POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters to be included in the request path, specifically the group ID or URL-encoded path required to identify the group for which the Debian distribution is created.

Output

JSON

  • id - The unique identifier of the created Debian distribution.
  • codename - The codename of the Debian distribution.
  • components - The components included in the Debian distribution.
  • architectures - The architectures supported by the Debian distribution.
  • description - A description of the Debian distribution.
  • gpg_key - The GPG key associated with the Debian distribution.
  • created_at - Timestamp when the Debian distribution was created.
  • updated_at - Timestamp when the Debian distribution was last updated.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID provided in the path parameters is correct and accessible with the authenticated user.
  • Verify that the authentication credentials are valid and have the necessary permissions to create Debian distributions in the specified group.
  • Check the base URL to ensure it points to the correct GitLab instance if using a self-hosted GitLab server.
  • If the API returns an error, review the error message for details such as missing required fields or invalid data formats in the request body.

Links

Discussion