GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves a specific custom attribute of a project from the GitLab API. It is useful for scenarios where you need to access detailed metadata or custom information associated with a particular project in GitLab, such as fetching project-specific settings or tags stored as custom attributes.

Use Case Examples

  1. Fetch the value of a custom attribute 'environment' for a project with ID 12345 to use in deployment automation.
  2. Retrieve a custom attribute key from a project to display project-specific metadata in a dashboard.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to send the API request to, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET. Options include GET, POST, PUT, DELETE, HEAD, PATCH.
Path Parameters Parameters to specify the project ID and the key of the custom attribute to retrieve.

Output

JSON

  • id - The ID of the project.
  • key - The key of the custom attribute.
  • value - The value of the custom attribute.
  • created_at - Timestamp when the custom attribute was created.
  • updated_at - Timestamp when the custom attribute was last updated.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and custom attribute key are correctly specified; otherwise, the API will return an error indicating the resource was not found.
  • If authentication is enabled, verify that the GitLab API key credential is valid and has sufficient permissions to access project custom attributes.
  • Check the base URL if using a self-hosted GitLab instance to ensure the API endpoint is reachable.

Links

Discussion