GitLab API icon

GitLab API

Gitlab

Actions917

Overview

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

Use Case Examples

  1. Fetch user agent details for a snippet with ID 123 to understand which clients accessed it.
  2. Use the retrieved user agent data to monitor snippet access for security auditing.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request, defaulting to GET.
Path Parameters The path parameters for the API request, specifically the snippet ID to identify which snippet's user agent details to retrieve.

Output

JSON

  • id - The ID of the snippet.
  • user_agent_detail - Detailed information about the user agent accessing the snippet, such as browser, OS, and device details.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the snippet ID provided in the path parameters is valid and exists in the GitLab instance.
  • If authentication is enabled, verify that the GitLab API key credential is correctly configured and has sufficient permissions.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages may include 404 Not Found if the snippet ID does not exist, or 401 Unauthorized if authentication fails.

Links

Discussion