gitlab_repository_tree (Data Source)

The gitlab_repository_tree data source allows details of directories and files in a repository to be retrieved.

Upstream API: GitLab REST API docs

Example Usage

data "gitlab_repository_tree" "this" {
  project   = "example"
  ref       = "main"
  path      = "ExampleSubFolder"
  recursive = true
}

Schema

Required

Optional

Read-Only

Nested Schema for tree

Read-Only: