GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves a specific deploy token from a GitLab project using the GitLab API. It is useful for scenarios where you need to programmatically access or verify deploy tokens associated with a project, such as in CI/CD automation or project management workflows.

Use Case Examples

  1. Fetch details of a deploy token by providing the project ID and the token ID to automate deployment processes.
  2. Verify the existence and properties of a deploy token before using it in a deployment pipeline.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public endpoints or testing.
Authentication Type of authentication used, here it is GitLab API authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to specify the project ID and deploy token ID for the API request.

Output

JSON

  • id - The unique identifier of the deploy token.
  • name - The name of the deploy token.
  • username - The username associated with the deploy token.
  • expires_at - The expiration date of the deploy token, if set.
  • scopes - The scopes or permissions granted to the deploy token.

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the project ID and token ID are correct and accessible by the authenticated user to avoid 404 errors.
  • Check that the GitLab API credentials are valid and have sufficient permissions to access deploy tokens.
  • If skipping authentication, verify that the endpoint supports unauthenticated access, otherwise the request will fail.

Links

Discussion