GroupAccessTokenArgs

data class GroupAccessTokenArgs(val accessLevel: Output<String>? = null, val expiresAt: Output<String>? = null, val group: Output<String>? = null, val name: Output<String>? = null, val scopes: Output<List<String>>? = null) : ConvertibleToJava<GroupAccessTokenArgs>

The gitlab_group_accesstoken resource allows to manage the lifecycle of a group access token.

Group Access Token were introduced in GitLab 14.7 Upstream API: GitLab REST API

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.GroupAccessToken;
import com.pulumi.gitlab.GroupAccessTokenArgs;
import com.pulumi.gitlab.GroupVariable;
import com.pulumi.gitlab.GroupVariableArgs;
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) {
var exampleGroupAccessToken = new GroupAccessToken("exampleGroupAccessToken", GroupAccessTokenArgs.builder()
.group("25")
.expiresAt("2020-03-14")
.accessLevel("developer")
.scopes("api")
.build());
var exampleGroupVariable = new GroupVariable("exampleGroupVariable", GroupVariableArgs.builder()
.group("25")
.key("gat")
.value(exampleGroupAccessToken.token())
.build());
}
}

Import

A GitLab Group Access Token can be imported using a key composed of <group-id>:<token-id>, e.g.

$ pulumi import gitlab:index/groupAccessToken:GroupAccessToken example "12345: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(accessLevel: Output<String>? = null, expiresAt: Output<String>? = null, group: Output<String>? = null, name: Output<String>? = null, scopes: Output<List<String>>? = null)

Properties

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

The access level for the group access token. Valid values are: guest, reporter, developer, maintainer, owner.

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

The token expires at midnight UTC on that date. The date must be in the format YYYY-MM-DD. Default is never.

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

The ID or path of the group to add the group access token to.

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

The name of the group access token.

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

The scope for the group access token. It determines the actions which can be performed when authenticating with this token. Valid values are: api, read_api, read_registry, write_registry, read_repository, write_repository.

Functions

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