GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to update the Harbor service configuration for a specific project. It is useful for automating the management of Harbor service settings within GitLab projects, such as enabling or modifying Harbor container registry integration. Practical examples include updating Harbor service settings as part of a CI/CD pipeline or managing multiple projects' Harbor configurations programmatically.

Use Case Examples

  1. Updating Harbor service settings for a GitLab project by specifying the project ID and providing the new configuration in the request body.
  2. Automating Harbor service configuration changes across multiple projects using n8n workflows.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication to use for the API request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance to which the API request is sent.
Method HTTP method used for the API request, default is GET but for this operation it is PUT.
Path Parameters Parameters included in the API request path, specifically the project ID for this operation.

Output

JSON

  • response - The JSON response from the GitLab API after updating the Harbor service configuration for the specified project.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is valid and exists in the GitLab instance.
  • Verify that the authentication credentials (GitLab API key) are correctly configured and have sufficient permissions to update project services.
  • Check the request body schema to ensure it matches the expected structure for the Harbor service configuration update.
  • Common error messages may include authentication failures, invalid project ID, or malformed request body. Resolving these involves verifying credentials, project existence, and request payload format.

Links

Discussion