GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves deploy tokens for a specific project in GitLab using the GitLab API v4. It is useful for automating the management and retrieval of deploy tokens associated with projects, which can be used for secure deployment and access control in CI/CD pipelines or other automated workflows.

Use Case Examples

  1. Fetch deploy tokens for a project by specifying the project ID to automate deployment processes.
  2. Paginate through deploy tokens by setting page and per_page query parameters to manage large sets of tokens.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is 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.
Query Parameters Optional query parameters to control pagination and filtering of deploy tokens.
Path Parameters Path parameter to specify the project ID or URL-encoded path.

Output

JSON

  • deployTokens - Array of deploy tokens retrieved for the specified project.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible by the authenticated user.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access deploy tokens.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • If pagination parameters (page, per_page) are used, ensure they are valid integers to avoid request errors.

Links

Discussion