0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 18:42:58 +00:00
terraform-provider-proxmox/docs/data-sources/virtual_environment_acme_account.md
Björn Brauer 9de4037a82
feat(acme): implement resources and data sources for ACME accounts (#1455)
* feat(acme): implement CRUD API for proxmox cluster ACME
* feat(acme): implement acme_accounts data source
* feat(acme): implement acme_account data source
* fix(acme): wait for task status on account creation
* feat(acme): implement account resource creation
* feat(acme): implement account read
* fix(acme): wait for task status on account update
* feat(acme): implement account update
* fix(acme): wait for task status on account deletion
* feat(acme): implement account deletion
* feat(acme): implement account import
* feat(acme): provide correctly typed API response for `account` field
* feat(acme): implement account schema for acme_account data source
* fix(acme): read `location` into state in acme_account resource
* fix(acme): ensure `name` of acme_account resource can't be changed
* docs(acme): generate documentation
* feat(acme): read back ACME account details from API
* Revert "fix(acme): ensure `name` of acme_account resource can't be changed"
* fix(acme): provide default for acme account name
* fix(acme): acme account name can't be changed
* chore(acme): update resource doc to clarify PVE auth requirements
* chore(acme): add `created_at` attr to the resource, sort model fields & schema attributes alphabetically

---------

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-08-07 23:16:31 -04:00

1.5 KiB

layout title parent subcategory description
page proxmox_virtual_environment_acme_account Data Sources Virtual Environment Retrieves information about a specific ACME account.

Data Source: proxmox_virtual_environment_acme_account

Retrieves information about a specific ACME account.

Example Usage

// This will fetch all ACME accounts...
data "proxmox_virtual_environment_acme_accounts" "all" {}

// ...which we will go through in order to fetch the whole data on each account.
data "proxmox_virtual_environment_acme_account" "example" {
  for_each = data.proxmox_virtual_environment_acme_accounts.all.accounts
  name     = each.value
}

output "data_proxmox_virtual_environment_acme_account" {
  value = data.proxmox_virtual_environment_acme_account.example
}

Schema

Optional

  • name (String) The identifier of the ACME account to read.

Read-Only

  • account (Attributes) The ACME account information. (see below for nested schema)
  • directory (String) The directory URL of the ACME account.
  • location (String) The location URL of the ACME account.
  • tos (String) The URL of the terms of service of the ACME account.

Nested Schema for account

Read-Only:

  • contact (List of String) An array of contact email addresses.
  • created_at (String) The timestamp of the account creation.
  • status (String) The status of the account. Can be one of valid, deactivated or revoked.