| page_title | forgejo_personal_access_token Data Source - forgejo |
|---|---|
| subcategory | |
| description | Forgejo personal access token data source. |
Forgejo personal access token data source.
terraform {
required_providers {
forgejo = {
source = "svalabs/forgejo"
}
}
}
provider "forgejo" {
host = "http://localhost:3000"
}
# Existing user
data "forgejo_user" "test_user" {
login = "test_user"
}
# Existing personal access token
data "forgejo_personal_access_token" "test_token" {
user = data.forgejo_user.test_user.login
name = "test token"
}name(String) Name of the personal access token.user(String) Name of the user.
id(Number) ID of the personal access token.scopes(Set of String) Scopes of the personal access token.token_last_eight(String) Last eight characters of the personal access token.