ClusterAgentTokenArgs

data class ClusterAgentTokenArgs(val agentId: Output<Int>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<ClusterAgentTokenArgs>

The gitlab.ClusterAgentToken resource allows to manage the lifecycle of a token for a GitLab Agent for Kubernetes.

Requires at least maintainer permissions on the project. Requires at least GitLab 15.0 Upstream API: GitLab REST API docs

Import

A token for a GitLab Agent for Kubernetes can be imported with the following command and the id pattern <project>:<agent-id>:<token-id>

$ pulumi import gitlab:index/clusterAgentToken:ClusterAgentToken example '12345:42:1'

ATTENTIONthe token resource attribute is not available for imported resources as this information cannot be read from the GitLab API.

Constructors

Link copied to clipboard
constructor(agentId: Output<Int>? = null, description: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null)

Properties

Link copied to clipboard
val agentId: Output<Int>? = null

The ID of the agent.

Link copied to clipboard
val description: Output<String>? = null

The Description for the agent.

Link copied to clipboard
val name: Output<String>? = null

The Name of the agent.

Link copied to clipboard
val project: Output<String>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): ClusterAgentTokenArgs