GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves asset links associated with a specific release tag in a GitLab project using the GitLab API. It is useful for scenarios where you need to programmatically access release asset information, such as download URLs or metadata, for automation or integration purposes.

Use Case Examples

  1. Fetching all asset links for a release tag to display in a dashboard.
  2. Automating the retrieval of release assets for deployment or backup processes.

Properties

Name Meaning
Skip Authentication Option to skip API authentication, useful for public projects or testing.
Authentication Type of authentication used for the API request, typically an API key or token.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the API request, default is GET.
Query Parameters Optional pagination parameters for the API request, including page number and items per page.
Path Parameters Required identifiers for the API request, including the project ID or URL-encoded path and the release tag name.

Output

JSON

  • ``
    • id - Unique identifier of each asset link.
    • name - Name of the asset link.
    • url - URL of the asset link.
    • direct_asset_url - Direct URL to the asset file.
    • link_type - Type of the asset link.
    • filepath - File path of the asset link.

Dependencies

  • GitLab API authentication token or API key

Troubleshooting

  • Ensure the project ID and tag name are correctly URL-encoded to avoid 404 errors.
  • Verify that the API token has sufficient permissions to access the project's release assets.
  • Check the base URL if using a self-hosted GitLab instance to avoid connection errors.
  • Pagination parameters must be valid integers; otherwise, the API may return errors or incomplete data.

Links

Discussion