DeployToken

class DeployToken : KotlinCustomResource

The gitlab.DeployToken resource allows to manage the lifecycle of group and project deploy tokens. Upstream API: GitLab REST API docs

Import

GitLab deploy tokens can be imported using an id made up of {type}:{type_id}:{deploy_token_id}, where type is one of: project, group.

$ pulumi import gitlab:index/deployToken:DeployToken group_token group:1:3
$ pulumi import gitlab:index/deployToken:DeployToken project_token project:1:4

Note: the 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 deployTokenId: Output<Int>

The id of the deploy token.

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

Time the token will expire it, RFC3339 format. Will not expire per default.

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

The name or id of the group to add the deploy token to.

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

A name to describe the deploy token with.

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

The name or id of the project to add the deploy token to.

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

Valid values: read_repository, read_registry, read_package_registry, write_registry, write_package_registry.

Link copied to clipboard
val token: Output<String>

The secret token. This is only populated when creating a new deploy token. Note: The token is not available for imported resources.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val username: Output<String>

A username for the deploy token. Default is gitlab+deploy-token-{n}.