GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves deploy tokens for a specific GitLab group using the GitLab API. It is useful for automating the management and retrieval of deploy tokens associated with a group, which can be used for accessing repositories or other resources securely. For example, a user can fetch active deploy tokens for a group to monitor or audit access credentials.

Use Case Examples

  1. Fetch deploy tokens for a GitLab group by specifying the group ID.
  2. Retrieve only active deploy tokens by setting the 'active' query parameter to true.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, 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 API request, defaulting to GET.
Query Parameters Optional query parameters to filter or paginate the deploy tokens.
Path Parameters Path parameters required for the API endpoint.

Output

JSON

  • deploy_tokens - List of deploy tokens retrieved from the GitLab group.

Dependencies

  • GitLab API key credential

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