GitLab API

GitlabTool

Actions1000

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 scanning.

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 Determines whether to skip API authentication for the request.
Authentication Specifies the authentication method to use for the API request, 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 used for the API request, defaulting to GET but can be set to PUT for this operation.
Path Parameters Parameters included in the API request path, specifically the project ID for identifying the project to update Harbor integration settings for.

Output

JSON

  • id - The ID of the project for which the Harbor integration was updated.
  • integrationStatus - Status or result of the Harbor integration update operation.
  • updatedSettings - The updated configuration settings of the Harbor integration for the 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 API key credential has sufficient permissions to update project integrations.
  • Check that the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab.
  • Common error messages include authentication failures, invalid project ID, or insufficient permissions. Resolving these typically involves verifying credentials, project existence, and user permissions.

Links

Discussion