GitLab API icon

GitLab API

Gitlab

Actions917

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 automation 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 using 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 parameters to specify the project ID for which deploy tokens are retrieved.

Output

JSON

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

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID is correct and accessible by the authenticated user to avoid authorization errors.
  • Check that the GitLab API key credential is valid and has sufficient permissions to access deploy tokens.
  • Verify the base URL is correct if using a self-hosted GitLab instance to avoid connection errors.

Links

Discussion