GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation performs a POST request to the GitLab Geo API endpoint `/api/v4/geo/proxy_git_ssh/upload_pack`. It is used to proxy Git SSH upload pack requests through the Geo node, which is useful in scenarios where Git operations need to be routed through a Geo node for replication or caching purposes in a GitLab Geo setup.

Use Case Examples

  1. Proxying Git SSH upload pack requests in a GitLab Geo environment to improve repository synchronization and reduce latency.
  2. Using the node to handle Git SSH upload pack requests without direct authentication by optionally skipping authentication.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use if authentication is not skipped.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method to use for the request.
Parameter Schema The schema defining the parameters for the POST request to the Geo proxy Git SSH upload pack endpoint.
Request Body Schema The schema defining the request body for the POST request.
Request Path The API path for the Geo proxy Git SSH upload pack endpoint.

Output

JSON

  • response - The JSON response from the GitLab Geo proxy Git SSH upload pack API endpoint.

Dependencies

  • GitLab API credentials for authentication unless skipping authentication.

Troubleshooting

  • If authentication is skipped but the endpoint requires authentication, the request may fail with an authorization error. Ensure the correct authentication method is used.
  • Incorrect baseUrl or path may lead to connection errors or 404 responses. Verify the URL and path are correct for the GitLab instance.
  • Improperly formatted request body or parameters may cause the API to reject the request. Validate the request body against the expected schema.

Links

  • GitLab Geo Documentation - Official documentation for GitLab Geo, explaining the purpose and usage of Geo nodes and proxy endpoints.

Discussion