GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves deploy tokens for a specific project in GitLab using the GitLab API. It is useful for scenarios where you need to manage or audit deploy tokens associated with a project, such as automating token retrieval for deployment automation or security reviews.

Use Case Examples

  1. Fetch deploy tokens for a project to automate deployment processes.
  2. Retrieve active deploy tokens to audit access and permissions.

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 filter or paginate the deploy tokens.
Path Parameters Path parameters specifying the project ID or URL-encoded path.

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.
  • created_at - The creation date of the deploy token.
  • scopes - The scopes or permissions granted to the deploy token.
  • active - Indicates if the deploy token is active.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID or URL-encoded path is correct to avoid 404 errors.
  • Verify that the GitLab API key has sufficient permissions to access deploy tokens.
  • Check network connectivity and base URL configuration if requests fail.
  • If authentication is skipped, ensure the endpoint allows unauthenticated access, otherwise requests will fail.

Links

Discussion