GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation updates the Harbor integration settings for a specific project in GitLab using the GitLab API. It is useful for automating the configuration of Harbor container registry integration within GitLab projects, enabling seamless management of container images and security policies.

Use Case Examples

  1. Automatically update Harbor integration settings for a project when project details change.
  2. Configure Harbor integration for multiple projects in bulk via workflow automation.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to GET but here it is PUT for this operation.
Path Parameters Parameters included in the request path, specifically the project ID for this operation.

Output

JSON

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

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID path parameter is correctly provided and is a valid project ID in GitLab.
  • Verify that the GitLab API key credential has sufficient permissions to update project integrations.
  • Check the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab.
  • Common errors include authentication failures (invalid or missing API key), invalid project ID, or malformed request body. Verify request body schema matches the expected structure for Harbor integration update.

Links

Discussion