feat(provider): add organizations data-source

This commit is contained in:
Julien Dessaux 2025-05-10 00:57:55 +02:00
parent 3735e9ba01
commit f2e3a750ce
Signed by: adyxax
GPG key ID: F92E51B86E07177E
6 changed files with 207 additions and 0 deletions

View file

@ -0,0 +1,40 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "forgejo_organizations Data Source - terraform-provider-forgejo"
subcategory: ""
description: |-
Use this data source to retrieve information about existing forgejo organizations.
---
# forgejo_organizations (Data Source)
Use this data source to retrieve information about existing forgejo organizations.
## Example Usage
```terraform
data "forgejo_organizations" "example" {}
```
<!-- schema generated by tfplugindocs -->
## Schema
### Read-Only
- `elements` (Attributes List) The list of organizations. (see [below for nested schema](#nestedatt--elements))
<a id="nestedatt--elements"></a>
### Nested Schema for `elements`
Read-Only:
- `avatar_url` (String) The organization's avatar URL.
- `description` (String) A description string.
- `email` (String) The organization's email address.
- `full_name` (String) The organization's full name.
- `id` (Number) The identifier of the organization.
- `location` (String) The organization's advertised location.
- `name` (String) The name of the organization.
- `repo_admin_change_team_access` (Boolean) Whether an admin of a repository that belongs to this organization can change team access or not.
- `visibility` (String) The organization's visibility option: limited, private, public.
- `website` (String) The organization's advertised website.