GitLab API icon

GitLab API

Gitlab

Actions1062

Maven_packages → getApiV4GroupsIdPackagesMaven*pathFileName

AI-generated

Summary

Retrieve a specific Maven package file by specifying the group ID, package path, and file name using a GET (or other specified HTTP) request.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab group containing the Maven package.
  • path (required) — The package path, such as 'foo/bar/mypkg/1.0-SNAPSHOT', identifying the Maven package's location.
  • file_name (required) — The exact file name of the Maven package file to retrieve, for example 'mypkg-1.0-SNAPSHOT.jar'.
  • method (required) — The HTTP method used for the request; defaults to GET but can be changed to POST, PUT, DELETE, HEAD, or PATCH.
  • baseUrl — The base URL to use for the GitLab instance API; defaults to 'https://gitlab.com'.
  • skipAuthentication — Boolean to skip the default GitLab API authentication; defaults to false.

Output shape

a binary file response (the requested Maven package file) or other HTTP response, depending on method and server response

The operation constructs the request path as /api/v4/groups/{id}/-/packages/maven/*path/{file_name} with provided parameters; response shape depends on the HTTP method used but typically returns the raw file content.

Links

Discussion