GitLab API

GitlabTool

Actions1000

Overview

This node interacts with the GitLab API to retrieve resource groups for a specific project using the API endpoint `/api/v4/projects/{id}/resource_groups`. It supports making authenticated or unauthenticated HTTP requests to GitLab, allowing users to fetch paginated lists of resource groups associated with a project. This is useful for DevOps workflows where managing or monitoring resource groups within GitLab projects is required.

Use Case Examples

  1. Fetch resource groups for a project by specifying the project ID and optionally paginating through results.
  2. Use the node to automate retrieval of resource group data for reporting or integration with other tools.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API 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 (GET, POST, PUT, DELETE, HEAD, PATCH).
Query Parameters Optional query parameters for pagination, including page number and items per page.
Path Parameters Path parameters required for the API endpoint, specifically the project ID.

Output

JSON

  • ``
    • id - The unique identifier of each resource group.
    • name - The name of each resource group.
    • path - The path identifier of each resource group.
    • project_id - The ID of the project to which the resource group belongs.
    • created_at - Timestamp when the resource group was created.
    • updated_at - Timestamp when the resource group was last updated.

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the project ID path parameter is correctly set and URL-encoded if necessary.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to access the project's resource groups.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • If pagination parameters are used, ensure they are valid integers to avoid request errors.

Links

Discussion