GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves detailed information about the user agent for a specific snippet within a project on GitLab. It is useful for scenarios where you need to analyze or audit the user agent data associated with project snippets, such as tracking snippet usage or debugging access issues.

Use Case Examples

  1. Fetch user agent details for a snippet in a project to monitor who accessed or modified the snippet.
  2. Audit user agent information for security or compliance purposes related to project snippets.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
Authentication Type of authentication used for the request, defaulting to GitLab API key authentication.
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 project ID or URL-encoded path and the snippet ID to identify the snippet for which user agent details are requested.

Output

JSON

  • userAgentDetail - Detailed information about the user agent for the specified project snippet

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and snippet ID are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access project snippets.
  • If skipping authentication, confirm that the GitLab instance allows unauthenticated access to the snippet user agent details.
  • Common error messages may include 404 Not Found if the project or snippet does not exist, or 401 Unauthorized if authentication fails.

Links

Discussion