GitLab API icon

GitLab API

Gitlab

Actions1062

Job → getApiV4JobAllowedAgents

AI-generated

Summary

Retrieves the list of allowed agents (runners) that can run a job from GitLab.

Inputs

  • Skip Authentication — If true, the operation will not use credentials; otherwise it uses the GitLab API credential defined in the 'Authentication' field. Default is false (authentication is required).
  • Authentication (required) — The credential to use for authenticating with GitLab. Only 'gitlabApi' is available and is selected by default. This field is hidden when 'Skip Authentication' is true.
  • Base URL — The base URL of the GitLab instance. Defaults to 'https://gitlab.com'. This value is appended with the request path to form the final URL.
  • Method — HTTP method to use for the request. Defaults to 'GET'. Other options are POST, PUT, DELETE, HEAD, PATCH.
  • Parameter Schema — Internal parameter schema used by the node. Not configurable by the workflow author.
  • Request Body Schema — Internal request body schema used by the node. Not configurable by the workflow author.
  • Request Path — The request path relative to the base URL. Defaults to '/api/v4/job/allowed_agents'. This field is hidden but defines the endpoint called.

Output shape

object

The operation returns the raw JSON response from the GitLab API endpoint /api/v4/job/allowed_agents, which contains the list of allowed agents (runners) for the job.

Examples

Example 1: Fetch allowed agents for a job on GitLab.com

Leave Skip Authentication false, use default gitlabApi credential, default base URL, default GET method, and default request path.

Links

Discussion