ClusterAgentToken

class ClusterAgentToken : KotlinCustomResource

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.

Properties

Link copied to clipboard
val agentId: Output<Int>

The ID of the agent.

Link copied to clipboard
val createdAt: Output<String>

The ISO8601 datetime when the agent was created.

Link copied to clipboard
val createdByUserId: Output<Int>

The ID of the user who created the agent.

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

The Description for the agent.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val lastUsedAt: Output<String>

The ISO8601 datetime when the token was last used.

Link copied to clipboard
val name: Output<String>

The Name of the agent.

Link copied to clipboard
val project: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>

The status of the token. Valid values are active, revoked.

Link copied to clipboard
val token: Output<String>

The secret token for the agent. The token is not available in imported resources.

Link copied to clipboard
val tokenId: Output<Int>

The ID of the token.

Link copied to clipboard
val urn: Output<String>