GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation performs a POST request to the GitLab API endpoint `/api/v4/geo/proxy_git_ssh/info_refs_receive_pack`. It is used to proxy Git SSH info refs for the receive-pack operation in a Geo setup. This is typically beneficial in scenarios where GitLab Geo nodes need to handle Git SSH operations securely and efficiently, such as syncing repositories between primary and secondary Geo nodes.

Use Case Examples

  1. A GitLab Geo secondary node uses this operation to proxy Git SSH info refs requests to the primary node during repository synchronization.
  2. Automating Git SSH operations in a Geo environment to ensure consistent repository state across nodes.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request. If true, the request is sent without authentication.
Authentication Specifies the authentication method to use if authentication is not skipped. The default is GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the request is sent. Defaults to https://gitlab.com.
Method The HTTP method to use for the request. Defaults to POST for this operation but can be changed.

Output

JSON

  • response - The JSON response returned from the GitLab API after performing the proxy Git SSH info refs receive-pack operation.

Dependencies

  • GitLab API credentials for authentication unless skipping authentication is enabled.

Troubleshooting

  • If authentication is skipped but the GitLab instance requires authentication, the request will fail with an authorization error. Ensure the correct authentication method is selected or skip authentication only if allowed.
  • Incorrect baseUrl may lead to connection errors or unexpected responses. Verify the GitLab instance URL is correct.
  • Using an unsupported HTTP method for this endpoint may result in method not allowed errors. Use POST as the default method unless the API documentation specifies otherwise.

Links

Discussion