gitlab
v1.0.3Manage projects, groups, branches, merge requests, and CI/CD pipelines
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_group_badge Get Group Badge
Retrieves a specific badge belonging to a group. This allows you to fetch details about a badge that has been assigned to a group.
| Parameter | Type | Description |
|---|---|---|
badge_id * | string | The unique identifier of the badge within the group. |
id * | string | The ID or URL-encoded path of the group. This identifies which group owns the badge you want to retrieve. |
update_group_badge Update Group Badge
Updates an existing badge for a group. Allows modification of the badge's name, image URL, and link URL.
| Parameter | Type | Description |
|---|---|---|
badge_id * | string | The unique identifier of the badge to update. |
id * | string | The ID or URL-encoded path of the group owned by the authenticated user. |
image_url | string | The URL of the image to display as the badge. |
link_url | string | The URL where the badge link should direct users. |
name | string | A descriptive name for the badge. |
remove_group_badge Remove Group Badge
Removes a badge from a group. This allows administrators to delete badges that are no longer needed or relevant to the group.
| Parameter | Type | Description |
|---|---|---|
badge_id * | string | The unique identifier of the badge to remove from the group. |
id * | string | The ID or URL-encoded path of the group. This identifies which group the badge should be removed from. |
list_group_badges List Group Badges
Retrieves a paginated list of badges for a group that are viewable by the authenticated user. Introduced in GitLab 10.6.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID or URL-encoded path of the group. This identifies which group's badges to retrieve. |
name | string | Filter badges by name. Returns only badges matching the specified name. |
per_page | string | Number of badges to return per page for pagination. |
add_group_badge Add Group Badge
Adds a badge to a group to display custom branding or status indicators. The badge will be visible on the group's profile page.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID or URL-encoded path of the group. You can use either the numeric group ID or the full URL-encoded group path (e.g., 'my-group' or 'parent-group%2Fchild-group'). |
image_url * | string | The URL of the badge image to display. This should be a valid HTTP or HTTPS URL pointing to an image file. |
link_url * | string | The URL where the badge image links to when clicked. This should be a valid HTTP or HTTPS URL. |
name | string | A descriptive name for the badge to help identify its purpose. This is displayed as alt text and in the group's badge management interface. |
deny_group_access_request Deny Group Access Request
Denies an access request from a user to join a group. The access request is removed and the user is not granted group membership.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID or URL-encoded path of the group. This identifies which group's access request should be denied. |
user_id * | string | The user ID of the person whose access request is being denied. |
approve_group_access_request Approve Group Access Request
Approves a pending access request for a user to join a group. The authenticated user must own the group to perform this action.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID or URL-encoded path of the group. Use the numeric group ID or the full URL-encoded path (e.g., 'my-group' or 'parent-group%2Fmy-group'). |
user_id * | string | The numeric ID of the user whose access request is being approved. |
access_level | string | The access level to grant the user upon approval. Specifies the user's role and permissions within the group (e.g., Developer, Maintainer). |
list_group_access_requests List Group Access Requests
Retrieves a paginated list of pending access requests for a group. This allows group owners to review and manage user requests to join the group.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID or URL-encoded path of the group. This identifies which group's access requests to retrieve. |
per_page | string | Number of access requests to return per page for pagination. |
request_group_access Request Group Access
Submit an access request for the authenticated user to join a group. The group owner can then review and approve or deny the request.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID or URL-encoded path of the group to request access for. |
delete_merged_branches Delete Merged Branches
Delete all branches that have been merged into the project's default branch. This operation permanently removes merged branches to clean up the repository.
| Parameter | Type | Description |
|---|---|---|
id * | string | The project identifier, which can be either the numeric project ID or the URL-encoded project path (e.g., group%2Fproject-name). |
get_branch Get Branch
Retrieve details for a specific branch in a repository. Returns branch information including commit details and protection status.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to retrieve. |
id * | string | The project identifier, which can be a numeric ID or URL-encoded project path (e.g., group/subgroup/project). |
delete_branch Delete Branch
Delete a branch from a project repository. This operation permanently removes the specified branch.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to delete. |
id * | string | The project identifier, which can be either the numeric project ID or the URL-encoded project path. |
check_branch_exists Check Branch Exists
Verify whether a specific branch exists in a project repository. Returns a successful response if the branch is found, otherwise returns a 404 error.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to check for existence in the repository. |
id * | string | The project identifier, which can be either the numeric project ID or the URL-encoded path of the project. |
list_repository_branches List Repository Branches
Retrieve a list of branches from a project's repository. Supports pagination and sorting by branch name or last update time.
| Parameter | Type | Description |
|---|---|---|
id * | string | The project identifier, either as a numeric ID or URL-encoded path (e.g., 'group%2Fproject'). |
per_page | string | Number of branches to return per page for pagination. |
sort | string | Sort the returned branches by name in ascending order, or by last update time in ascending or descending order. |
create_branch Create Branch
Create a new branch in a project from a specified commit SHA or existing branch. The new branch will be created with the given name and point to the specified reference.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name for the new branch to be created. |
id * | string | The project identifier, either as a numeric ID or URL-encoded path (e.g., group%2Fproject for group/project). |
ref * | string | The commit SHA or existing branch name from which to create the new branch. |
unprotect_branch Unprotect Branch
Remove protection from a branch in a project, allowing it to be modified or deleted. This operation reverses any branch protection rules that were previously applied.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to unprotect. |
id * | string | The project identifier, which can be either the numeric project ID or the URL-encoded project path (e.g., group/subgroup/project). |
protect_branch Protect Branch
Protect a branch by restricting push and merge permissions. Configure whether developers can push to or merge into the specified branch.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to protect. |
id * | string | The project identifier, either as a numeric ID or URL-encoded path. |
developers_can_merge | boolean | Allow developers to merge pull requests into this branch. |
developers_can_push | boolean | Allow developers to push commits to this branch. |
get_project_badge Get Project Badge
Retrieve a specific badge associated with a project. This allows you to fetch details about a project badge by its ID.
| Parameter | Type | Description |
|---|---|---|
badge_id * | string | The unique identifier of the badge to retrieve. |
id * | string | The project identifier, which can be either the numeric project ID or the URL-encoded project path (e.g., group/subgroup/project). |
update_project_badge Update Project Badge
Updates an existing badge for a project. Allows modification of the badge's name, image URL, and link URL.
| Parameter | Type | Description |
|---|---|---|
badge_id * | string | The unique identifier of the badge to update. |
id * | string | The project identifier, either as a numeric ID or URL-encoded path. |
image_url | string | The URL of the image to display as the badge. |
link_url | string | The URL that the badge links to when clicked. |
name | string | A descriptive name for the badge. |
delete_badge Delete Badge
Removes a badge from a project. This operation permanently deletes the specified badge and its association with the project.
| Parameter | Type | Description |
|---|---|---|
badge_id * | string | The unique identifier of the badge to remove from the project. |
id * | string | The project identifier, either as a numeric ID or URL-encoded path (e.g., group%2Fproject for group/project). |
list_project_badges List Project Badges
Retrieves a paginated list of badges for a project that are visible to the authenticated user. This endpoint was introduced in GitLab 10.6.
| Parameter | Type | Description |
|---|---|---|
id * | string | The project identifier, either as a numeric ID or URL-encoded path (e.g., group%2Fproject for group/project). |
name | string | Filter badges by name. Returns only badges whose name matches the provided value. |
per_page | string | Number of badges to return per page for pagination. |
create_project_badge Create Project Badge
Adds a new badge to a project. Badges are visual indicators that can link to external URLs and are displayed on the project page.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID or URL-encoded path of the project. Accepts both integer IDs and string paths. |
image_url * | string | The URL of the badge image to display. |
link_url * | string | The URL that the badge links to when clicked. |
name | string | A descriptive name for the badge to identify its purpose. |
deny_access_request Deny Access Request
Denies an access request from a user for the specified project. This removes the user's pending access request and prevents them from gaining project access through this request.
| Parameter | Type | Description |
|---|---|---|
id * | string | The project identifier, either as a numeric ID or URL-encoded path. |
user_id * | string | The numeric ID of the user whose access request should be denied. |
approve_access_request Approve Access Request
Approves a pending access request for a user to join the project. Optionally specify the access level to grant; defaults to Developer role.
| Parameter | Type | Description |
|---|---|---|
id * | string | The project identifier, either as a numeric ID or URL-encoded path. |
user_id * | string | The user ID of the person whose access request is being approved. |
access_level | string | The access level to grant the user upon approval. Valid levels range from 10 (Guest) to 50 (Owner). |
list_access_requests List Access Requests
Retrieves a list of access requests for a project. Access requests allow users to request membership in a project.
| Parameter | Type | Description |
|---|---|---|
id * | string | The project identifier, either as a numeric ID or URL-encoded path (e.g., group%2Fproject). |
per_page | string | Number of access requests to return per page for pagination. |
request_project_access Request Project Access
Request access to a project as the authenticated user. This allows users to formally request membership or elevated permissions for a project they don't currently have access to.
| Parameter | Type | Description |
|---|---|---|
id * | string | The project identifier, either as a numeric ID or URL-encoded path (e.g., group%2Fproject for group/project). |
update_alert_metric_image Update Alert Metric Image
Update the metric image associated with an alert, including its display URL and descriptive text for reference.
| Parameter | Type | Description |
|---|---|---|
alert_iid * | string | The internal ID of the alert containing the metric image. |
id * | string | The project identifier, either as a numeric ID or URL-encoded path. |
metric_image_id * | string | The unique identifier of the metric image to update. |
url | string | The URL where the metric image or additional metric information can be viewed. |
url_text | string | A descriptive label or caption for the metric image or its associated URL. |
delete_alert_metric_image Delete Alert Metric Image
Remove a metric image associated with an alert in a project. This operation permanently deletes the specified metric image from the alert's collection.
| Parameter | Type | Description |
|---|---|---|
alert_iid * | string | The internal ID (IID) of the alert from which to remove the metric image. |
id * | string | The project identifier, either as a numeric ID or URL-encoded path. |
metric_image_id * | string | The numeric ID of the metric image to delete. |
list_alert_metric_images List Alert Metric Images
Retrieve metric images associated with a specific alert in a project. Metric images provide visual context for alert conditions and their impact.
| Parameter | Type | Description |
|---|---|---|
alert_iid * | string | The internal ID of the alert for which to retrieve associated metric images. |
id * | string | The project identifier, either as a numeric ID or URL-encoded path. |
upload_alert_metric_image Upload Alert Metric Image
Upload a metric image to an alert for visualization and documentation purposes. Optionally include a URL and description to provide context about the metric data.
| Parameter | Type | Description |
|---|---|---|
alert_iid * | string | The internal ID of the alert to attach the metric image to. |
file * | string | Base64-encoded file content for upload. The image file to upload. Supported formats are typically PNG, JPG, and GIF. |
id * | string | The project identifier, either as a numeric ID or URL-encoded path. |
url | string | Optional URL to view additional metric information or the source of the metric data. |
url_text | string | Optional descriptive text explaining the metric image content or the linked URL. |
pause_batched_background_migration Pause Batched Background Migration
Pause an active batched background migration by its ID. The migration can be resumed later from where it was paused.
| Parameter | Type | Description |
|---|---|---|
id * | string | The unique identifier of the batched background migration to pause. |
database | string | The database instance where the batched background migration is running. Defaults to 'main' if not specified. |
get_admin_ci_variable Get Admin CI Variable
Retrieve the details of a specific instance-level CI/CD variable by its key. This operation returns the variable's configuration and metadata.
| Parameter | Type | Description |
|---|---|---|
key * | string | The unique identifier key of the instance-level CI/CD variable to retrieve. |
delete_instance_variable Delete Instance Variable
Delete an instance-level CI/CD variable by its key. This removes the variable from the GitLab instance configuration.
| Parameter | Type | Description |
|---|---|---|
key * | string | The unique identifier key of the instance-level variable to delete. |
list_instance_variables List Instance Variables
Retrieve all instance-level CI/CD variables available across the GitLab instance. These variables are accessible to all projects and groups.
| Parameter | Type | Description |
|---|---|---|
per_page | string | Maximum number of variables to return per page. Use this to control pagination when retrieving large result sets. |
create_instance_variable Create Instance Variable
Create a new instance-level CI/CD variable that is available to all projects. Instance variables are useful for storing secrets and configuration values needed across your entire GitLab instance.
| Parameter | Type | Description |
|---|---|---|
key * | string | The unique identifier for the variable. Maximum 255 characters. |
value * | string | The value assigned to the variable. |
masked | boolean | When enabled, the variable value is masked in job logs and API responses to prevent accidental exposure of sensitive data. |
protected | boolean | When enabled, the variable is only available to protected branches and tags, preventing exposure in unprotected environments. |
raw | boolean | When enabled, the variable value is treated as a literal string and not expanded. When disabled, variable references are expanded during job execution. |
variable_type | string | Specifies whether the variable stores an environment value or a file path. |
get_cluster Get Cluster
Retrieve details for a single instance cluster by its ID. This operation requires GitLab 13.2 or later.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | The unique identifier of the cluster to retrieve. |
update_cluster Update Cluster
Update an existing instance cluster configuration. Modify cluster settings such as name, connectivity status, environment scope, and management preferences.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | The unique identifier of the cluster to update. |
domain | string | The base domain for the cluster, used for generating application URLs. |
enabled | boolean | Enable or disable GitLab's connection to the Kubernetes cluster. |
environment_scope | string | The environment associated with this cluster deployment. |
managed | boolean | When enabled, GitLab automatically manages Kubernetes namespaces and service accounts for this cluster. |
management_project_id | string | The ID of the GitLab project that manages this cluster's resources and configurations. |
name | string | The display name for the cluster. |
namespace_per_environment | boolean | When enabled, each environment is deployed to a separate Kubernetes namespace for isolation. |
delete_cluster Delete Cluster
Delete an instance cluster from GitLab. This removes the cluster configuration but does not delete any resources within the connected Kubernetes cluster itself.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | The unique identifier of the cluster to delete. |
add_kubernetes_cluster Add Kubernetes Cluster
Register an existing Kubernetes cluster as an instance cluster in GitLab. This allows GitLab to deploy applications and manage resources on the cluster.
| Parameter | Type | Description |
|---|---|---|
name * | string | The display name for the Kubernetes cluster. |
platform_kubernetes_attributes_api_url * | string | The URL endpoint to access the Kubernetes API server. |
platform_kubernetes_attributes_token * | string | The authentication token or bearer token used to authenticate requests to the Kubernetes API. |
domain | string | The base domain for applications deployed to this cluster. |
enabled | boolean | Whether the cluster is active and available for deployments. |
environment_scope | string | The environment scope this cluster is associated with, such as production or staging. Use * to match all environments. |
managed | boolean | Whether GitLab automatically manages Kubernetes namespaces and service accounts for this cluster. |
management_project_id | string | The GitLab project ID that will manage this cluster's namespaces and service accounts. |
namespace_per_environment | boolean | Whether to deploy each environment to its own isolated Kubernetes namespace for better resource separation and security. |
platform_kubernetes_attributes_authorization_type | string | The authorization mechanism used by the Kubernetes cluster for access control. |
list_clusters List Clusters
Retrieve a list of all instance clusters configured in GitLab. This operation provides an overview of cluster infrastructure available at the instance level.
delete_application Delete Application
Permanently delete a specific application by its ID. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
id * | string | The unique identifier of the application to delete. |
get_user_avatar Get User Avatar
Retrieve the avatar URL for a user based on their email address. Optionally specify a custom image size for the avatar.
| Parameter | Type | Description |
|---|---|---|
email * | string | The public email address of the user whose avatar should be retrieved. |
size | string | The width and height in pixels for the returned avatar image. Larger sizes provide higher resolution avatars. |
get_broadcast_message Get Broadcast Message
Retrieve a specific broadcast message by its ID. Broadcast messages are system-wide announcements visible to all users.
| Parameter | Type | Description |
|---|---|---|
id * | string | The unique identifier of the broadcast message to retrieve. |
delete_broadcast_message Delete Broadcast Message
Delete a broadcast message by its ID. This operation permanently removes the specified broadcast message from the system.
| Parameter | Type | Description |
|---|---|---|
id * | string | The unique identifier of the broadcast message to delete. |
get_migration_entity Get Migration Entity
Retrieve detailed information about a specific entity within a GitLab Migration. This allows you to inspect the status and properties of individual migrated items.
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | The unique identifier of the specific entity within the migration whose details you want to retrieve. |
import_id * | string | The unique identifier of the GitLab Migration batch containing the entity you want to retrieve. |
list_migration_entities List Migration Entities
Retrieve a list of entities from a GitLab Migration import job. Filter by status and paginate through results to monitor migration progress.
| Parameter | Type | Description |
|---|---|---|
import_id * | string | The unique identifier of the GitLab Migration import job to retrieve entities from. |
per_page | string | Number of entities to return per page for pagination. Defaults to 20 items per page. |
status | string | Filter entities by their current processing status in the migration workflow. |
get_bulk_import Get Bulk Import
Retrieve details about a GitLab Migration bulk import job, including its status and progress information.
| Parameter | Type | Description |
|---|---|---|
import_id * | string | The unique identifier of the bulk import migration to retrieve. |
list_migration_entities_all List Migration Entities
Retrieve a list of all entities from GitLab Migrations. This operation supports pagination, sorting, and filtering by migration status to help track the progress of bulk import operations.
| Parameter | Type | Description |
|---|---|---|
per_page | string | Maximum number of entities to return per page for pagination purposes. |
sort | string | Order in which to sort the returned entities by creation date. |
status | string | Filter entities by their current migration status to view only those in a specific state. |
list_migrations List Migrations
Retrieve a list of all GitLab Migrations with optional filtering and sorting. This feature was introduced in GitLab 14.1.
| Parameter | Type | Description |
|---|---|---|
per_page | string | Number of migration records to return per page for pagination. |
sort | string | Sort migrations by creation date in ascending or descending order. |
status | string | Filter migrations by their current status in the migration lifecycle. |
start_bulk_migration Start Bulk Migration
Initiate a bulk migration of GitLab entities from a source instance to the destination. This operation supports migrating groups and projects with their nested resources between GitLab instances.
| Parameter | Type | Description |
|---|---|---|
configuration_access_token * | string | Personal access token or project access token from the source GitLab instance with sufficient permissions to read the entities being migrated |
configuration_url * | string | URL of the source GitLab instance to migrate from (e.g., https://source.gitlab.com) |
entities_destination_namespace * | array | Array of destination namespaces where entities will be imported. Each namespace corresponds to the entity at the same index. Specify the target group or namespace path on the destination instance |
entities_source_full_path * | array | Array of relative paths for source entities to import. Each path corresponds to the entity at the same index in entities_source_type. Paths should be in the format of full project or group paths on th… |
entities_source_type * | array | Array of entity types to migrate from the source instance. Each element specifies the type of resource (group or project) being imported |
entities_destination_slug | array | Array of optional destination slugs for imported entities. When provided, overrides the default slug derived from the source entity name. Each slug corresponds to the entity at the same index |
entities_migrate_projects | array | Array of boolean flags indicating whether to include nested projects during group migration. Each flag corresponds to the group at the same index in entities_source_type |
list_jobs List Project Jobs
Retrieve all jobs for a specified project, with optional filtering by job status. Use this to monitor job execution, track pipeline progress, or retrieve job details.
| Parameter | Type | Description |
|---|---|---|
id * | string | The project identifier, either as a numeric ID or URL-encoded project path (e.g., group/subgroup/project). |
scope | array | Filter results to include only jobs with the specified statuses. Provide as an array of status values; order is not significant. |
get_job Get Job
Retrieve details for a specific job within a project. Returns comprehensive job information including status, logs, and execution details.
| Parameter | Type | Description |
|---|---|---|
id * | string | The project identifier, which can be a numeric ID or URL-encoded project path (e.g., group/subgroup/project). |
job_id * | integer | The numeric identifier of the job to retrieve. |
execute_manual_job Execute Manual Job
Execute a manual job for a project. Optionally provide custom variables to override job defaults during execution.
| Parameter | Type | Description |
|---|---|---|
id * | string | The project identifier, either as a numeric ID or URL-encoded path (e.g., group%2Fproject for group/project). |
job_id * | integer | The numeric ID of the manual job to execute. |
job_variables_attributes | array | Optional array of custom variables to make available to the job during execution. Variables are applied in the order provided. |