GitLab API

GitlabTool

Actions905

Overview

This node operation performs a PUT request to update the Harbor integration settings for a specific GitLab project. 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. Updating Harbor integration settings for a GitLab project by specifying the project ID and providing the necessary configuration in the request body.
  2. Automating the management of container registry integrations across multiple GitLab projects in a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to PUT.
Path Parameters The path parameters for the request, specifically the project ID to identify which project to update.

Output

JSON

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

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is valid and accessible with the authenticated user.
  • Verify that the request body schema matches the expected structure for Harbor integration settings to avoid validation errors.
  • Check network connectivity and base URL correctness if the node fails to connect to the GitLab instance.

Links

Discussion