GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves a specific deploy token from a GitLab group using the GitLab API. It is useful for automating the management and retrieval of deploy tokens associated with groups in GitLab, which can be used for deployment automation and access control.

Use Case Examples

  1. Fetch details of a deploy token for a specific GitLab group to verify its permissions or expiration.
  2. Automate the retrieval of deploy tokens to integrate with CI/CD pipelines or deployment scripts.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to 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.
Path Parameters Parameters to specify the group ID and deploy token ID for the request.

Output

JSON

  • id - The unique identifier of the deploy token.
  • name - The name of the deploy token.
  • created_at - Timestamp when the deploy token was created.
  • expires_at - Expiration date of the deploy token.
  • scopes - Permissions granted to the deploy token.
  • username - Username associated with the deploy token.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID and deploy token ID are correct and accessible by the authenticated user.
  • Verify that the GitLab API key credential is valid and has sufficient permissions.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 404 Not Found if the deploy token or group does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion