GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific release asset link from a GitLab project using the GitLab API. It is useful for scenarios where you need to access detailed information about a particular asset link associated with a release tag in a project, such as fetching metadata or verifying asset availability.

Use Case Examples

  1. Fetching a download link for a release asset in a CI/CD pipeline.
  2. Retrieving asset link details to display in a project management dashboard.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
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 required in the API path to identify the project, release tag, and asset link.

Output

JSON

  • id - The ID of the release asset link.
  • name - The name of the release asset link.
  • url - The URL of the release asset link.
  • external - Indicates if the link is external.
  • link_type - The type of the link.
  • filepath - The file path of the asset link.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID, tag name, and link ID are correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access the project and release assets.
  • Common error messages include 404 Not Found if the specified release asset link does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion