Skip to main content

group_cluster_agents

Gets or lists a group_cluster_agents resource.

Overview​

Namegroup_cluster_agents
TypeResource
Idgitlab.groups.group_cluster_agents

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
idstringID of the cluster agent.
namestringName of the cluster agent.
created_atstringTimestamp the cluster agent was created.
is_receptivebooleanWhether the cluster agent is receptive or not.
projectobjectProject identity (id, full_path, name)
updated_atstringTimestamp the cluster agent was updated.
web_pathstringWeb path of the cluster agent.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectfull_path, hosthas_remote_development_enabled, has_vulnerabilities, has_workspaces_agent_configCluster agents associated with projects in the group and its subgroups. Generated from the GitLab GraphQL schema field Group.clusterAgents (connection of ClusterAgent nodes).

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
full_pathstringFull path of the group, for example gitlab-org
hoststringGitLab host, with an optional port (default gitlab.com). Resolved from the GITLAB_HOST environment variable when it is set (x-stackQL-envVar); a WHERE host value always takes precedence. Self-managed instances: the provider is generated from the gitlab.com schema, so older instances may reject fields they do not serve. (default: gitlab.com, x-stackQL-envVar: GITLAB_HOST)
has_remote_development_enabledbooleanReturns only cluster agents which have been enabled with the remote development feature.
has_vulnerabilitiesbooleanReturns only cluster agents which have vulnerabilities.
has_workspaces_agent_configbooleanReturns only cluster agents which have an associated workspaces agent config.

SELECT examples​

Cluster agents associated with projects in the group and its subgroups. Generated from the GitLab GraphQL schema field Group.clusterAgents (connection of ClusterAgent nodes).

SELECT
id,
name,
created_at,
is_receptive,
project,
updated_at,
web_path
FROM gitlab.groups.group_cluster_agents
WHERE full_path = '{{ full_path }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
AND has_remote_development_enabled = '{{ has_remote_development_enabled }}'
AND has_vulnerabilities = '{{ has_vulnerabilities }}'
AND has_workspaces_agent_config = '{{ has_workspaces_agent_config }}'
;