GitLab API

GitlabTool

Actions1095

Snippets → getApiV4SnippetsId

AI-generated

Summary

Retrieves a GitLab snippet by its ID using the configured HTTP method (GET by default) at /api/v4/snippets/{id}. Supply the snippet ID as a path parameter; authentication is enabled by default, and the base URL defaults to https://gitlab.com (the source says the credential defines the actual base URL).

Inputs

  • id (required) — Snippet ID used in the request path.
  • method — HTTP method for the request; defaults to GET. Options are GET, POST, PUT, DELETE, HEAD, and PATCH.
  • baseUrl — Base URL setting, defaulting to https://gitlab.com; the node source says the GitLab API credential defines the base URL.
  • skipAuthentication — Defaults to false. When enabled, skips authentication; otherwise the node uses GitLab API authentication.

Output shape

A single API response item.

The provided operation properties and source do not specify the response fields or whether the chosen HTTP method changes response shape.

Links

Discussion