gitlab_projects (Data Source)

The gitlab_projects data source allows details of multiple projects to be retrieved. Optionally filtered by the set attributes.

Upstream API: GitLab REST API docs

Example Usage

# List projects within a group tree
data "gitlab_group" "mygroup" {
  full_path = "mygroup"
}

data "gitlab_projects" "group_projects" {
  group_id          = data.gitlab_group.mygroup.id
  order_by          = "name"
  include_subgroups = true
  with_shared       = false
}

# List projects using the search syntax
data "gitlab_projects" "projects" {
  search     = "postgresql"
  visibility = "private"
}

Schema

Optional

Read-Only

Nested Schema for projects

Read-Only:

Nested Schema for projects.container_expiration_policy

Read-Only:

Nested Schema for projects.forked_from_project

Read-Only:

Nested Schema for projects.namespace

Read-Only:

Nested Schema for projects.owner

Read-Only:

Nested Schema for projects.permissions

Read-Only:

Nested Schema for projects.shared_with_groups

Read-Only: