getClusterAgent

The gitlab.ClusterAgent data source allows to retrieve details about a GitLab Agent for Kubernetes.

Requires at least GitLab 14.10 Upstream API: GitLab REST API docs

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.GitlabFunctions;
import com.pulumi.gitlab.inputs.GetClusterAgentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = GitlabFunctions.getClusterAgent(GetClusterAgentArgs.builder()
.agentId(1)
.project("12345")
.build());
}
}

Return

A collection of values returned by getClusterAgent.

Parameters

argument

A collection of arguments for invoking getClusterAgent.


suspend fun getClusterAgent(agentId: Int, project: String): GetClusterAgentResult

Return

A collection of values returned by getClusterAgent.

Parameters

agentId

The ID of the agent.

project

ID or full path of the project maintained by the authenticated user.

See also


Return

A collection of values returned by getClusterAgent.

Parameters

argument

Builder for com.pulumi.gitlab.kotlin.inputs.GetClusterAgentPlainArgs.

See also