GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows users to create a Debian distribution for a specific project in GitLab by making a POST request to the GitLab API endpoint `/api/v4/projects/{id}/debian_distributions`. It is useful for automating the management of Debian package distributions within GitLab projects, such as adding new distributions programmatically.

Use Case Examples

  1. Automate adding a new Debian distribution to a GitLab project when a new version is released.
  2. Integrate with CI/CD pipelines to update Debian distributions in GitLab automatically.

Properties

Name Meaning
Skip Authentication Option to skip API authentication for the request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters to be included in the request path, specifically the project ID or URL-encoded path.

Output

JSON

  • id - The ID of the created Debian distribution.
  • codename - The codename of the Debian distribution.
  • components - Components included in the Debian distribution.
  • architectures - Supported architectures for the Debian distribution.
  • description - Description of 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

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the provided API credentials.
  • Verify that the request body contains all required fields as per the GitLab API specification for creating Debian distributions.
  • Check network connectivity and base URL correctness if the API request fails to reach the GitLab server.
  • Authentication errors may occur if the API key is invalid or lacks necessary permissions; verify the API key and its scopes.

Links

Discussion