GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation checks the existence of a specific namespace in GitLab by its ID. It is useful for workflows that need to verify whether a namespace exists before proceeding with further actions, such as creating projects or managing permissions within that namespace. For example, it can be used to validate user input or automate namespace management tasks.

Use Case Examples

  1. Check if a namespace with a given ID exists before creating a project under it.
  2. Validate namespace existence in a CI/CD pipeline to ensure resources are correctly targeted.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method used for the request, defaulting to GET.
Query Parameters Optional query parameters for the request, including 'parent_id' to filter namespaces by parent namespace ID.
Path Parameters Path parameters for the request, including the required 'id' of the namespace to check.

Output

JSON

  • exists - Boolean indicating whether the namespace with the specified ID exists.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the 'id' path parameter is provided and correctly formatted; missing or invalid 'id' will cause request failure.
  • If authentication is enabled, verify that the GitLab API credential is valid and has sufficient permissions.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion