The gitlab_cluster_agents
data source allows details of GitLab Agents for Kubernetes in a project.
Upstream API: GitLab REST API docs
data "gitlab_cluster_agents" "agents" {
project = "12345"
}
project
(String) The ID or full path of the project owned by the authenticated user.cluster_agents
(List of Object) List of the registered agents. (see below for nested schema)id
(String) The ID of this resource.cluster_agents
Read-Only:
agent_id
(Number)created_at
(String)created_by_user_id
(Number)name
(String)project
(String)