GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves deploy tokens for a specific group in GitLab using the GitLab API v4. It is useful for automating the management and retrieval of deploy tokens associated with groups, which can be used for accessing repositories or other resources securely. For example, it can be used in CI/CD pipelines to fetch deploy tokens dynamically for deployment purposes.

Use Case Examples

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

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The 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 required for the API call, specifically the group ID.

Output

JSON

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

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group 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 group deploy tokens.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • If pagination parameters are used, ensure they are valid integers to avoid request errors.

Links

Discussion