GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves custom attributes for a specific project in GitLab using the GitLab API v4. It is useful for scenarios where you need to access or manage metadata associated with GitLab projects, such as fetching custom fields or tags defined for a project. For example, it can be used in automation workflows to gather project-specific custom attributes for reporting or integration purposes.

Use Case Examples

  1. Fetch custom attributes of a project by providing the project ID to automate project metadata retrieval.
  2. Integrate with GitLab to dynamically access project custom attributes for use in other systems or workflows.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to be included in the request path, specifically the project ID (id) to identify the project whose custom attributes are being fetched.

Output

JSON

  • customAttributes - Array of custom attributes 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 GitLab API key credential has sufficient permissions to access project custom attributes.
  • If authentication is skipped, ensure the GitLab instance allows unauthenticated access to the requested resource, otherwise the request will fail.
  • Check the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab server.

Links

Discussion