GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to update Debian distribution information for a specific project using the PUT method on the endpoint `/api/v4/projects/{id}/debian_distributions/{codename}`. It is useful for automating the management of Debian package distributions within GitLab projects, such as updating distribution metadata or configuration.

Use Case Examples

  1. Updating the Debian distribution codename 'sid' for a project with a specific ID to modify its properties via the GitLab API.
  2. Automating Debian distribution updates in CI/CD pipelines for GitLab projects.

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.
Method The HTTP method used for the API request, default is PUT for this operation.
Path Parameters Parameters included in the URL path to specify the project ID and Debian codename for the distribution to update.

Output

JSON

  • response - The JSON response from the GitLab API after updating the Debian distribution.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and Debian codename are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key credential has sufficient permissions to update Debian distributions in the project.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error messages may include authentication failures, 404 not found if the project or codename does not exist, or 400 bad request if the request body schema is invalid.

Links

Discussion