The gitlab_metadata
data source retrieves the metadata of the GitLab instance.
Upstream API: GitLab REST API docs
data "gitlab_metadata" "this" {}
enterprise
(Boolean) If the GitLab instance is an enterprise instance or not. Supported for GitLab 15.6 onwards.id
(String) The id of the data source. It will always be 1
kas
(Attributes) Metadata about the GitLab agent server for Kubernetes (KAS). (see below for nested schema)revision
(String) Revision of the GitLab instance.version
(String) Version of the GitLab instance.kas
Read-Only:
enabled
(Boolean) Indicates whether KAS is enabled.external_url
(String) URL used by the agents to communicate with KAS. It’s null if kas.enabled is false.version
(String) Version of KAS. It’s null if kas.enabled is false.