Skip to content

Latest commit

 

History

History
65 lines (54 loc) · 1.65 KB

File metadata and controls

65 lines (54 loc) · 1.65 KB
page_title subcategory description
forgejo_user Data Source - forgejo
Forgejo user data source

forgejo_user (Data Source)

Forgejo user data source

Example Usage

terraform {
  required_providers {
    forgejo = {
      source = "svalabs/forgejo"
    }
  }
}

provider "forgejo" {
  host = "http://localhost:3000"
}

# Existing user
data "forgejo_user" "this" {
  login = "test_user"
}
output "debug" {
  value = data.forgejo_user.this
}

Schema

Required

  • login (String) Name of the user.

Read-Only

  • active (Boolean) Is the user active?
  • avatar_url (String) Avatar URL of the user.
  • created (String) Date and time of user creation.
  • description (String) Description of the user.
  • email (String) Email address of the user.
  • followers_count (Number) Number of following users.
  • following_count (Number) Number of users followed.
  • full_name (String) Full name of the user.
  • id (Number) Numeric identifier of the user.
  • is_admin (Boolean) Is the user an administrator?
  • language (String) Locale of the user.
  • last_login (String) Date and time of last login.
  • location (String) Location of the user.
  • login_name (String) Login name of the user.
  • prohibit_login (Boolean) Are user logins prohibited?
  • restricted (Boolean) Is the user restricted?
  • source_id (Number) Numeric identifier of the user's authentication source.
  • starred_repos_count (Number) Number of starred repositories.
  • visibility (String) Visibility of the user.
  • website (String) Website of the user.