Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.03 KB

File metadata and controls

51 lines (40 loc) · 1.03 KB
page_title forgejo_ssh_key Data Source - forgejo
subcategory
description Forgejo user SSH key data source.

forgejo_ssh_key (Data Source)

Forgejo user SSH key data source.

Example Usage

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

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

# Existing SSH key
data "forgejo_ssh_key" "this" {
  user  = "test_user"
  title = "test_key"
}

Schema

Required

  • title (String) Title of the SSH key.
  • user (String) Name of the user.

Read-Only

  • created_at (String) Time at which the SSH key was created.
  • fingerprint (String) Fingerprint of the SSH key.
  • key (String) Armored SSH key.
  • key_id (Number) Numeric identifier of the SSH key.
  • key_type (String) Type of the SSH key.
  • read_only (Boolean) Does the key have only read access?
  • url (String) URL of the SSH key.