0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-29 18:21:10 +00:00
terraform-provider-proxmox/docs/data-sources/virtual_environment_datastores.md
Pavel Boldyrev b5b61b48dc
feat(datastores)!: implement new structured format and filters for datastores data source (#1875)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2025-04-01 17:32:29 -04:00

1.7 KiB

layout title parent subcategory description
page proxmox_virtual_environment_datastores Data Sources Virtual Environment Retrieves information about all the datastores available to a specific node.

Data Source: proxmox_virtual_environment_datastores

Retrieves information about all the datastores available to a specific node.

Schema

Required

  • node_name (String) The name of the node to retrieve the stores from.

Optional

Nested Schema for datastores

Required:

  • content_types (Set of String) Allowed store content types.
  • id (String) The ID of the store.
  • node_name (String) The name of the node the store is on.
  • type (String) Store type.

Optional:

  • active (Boolean) Whether the store is active.
  • enabled (Boolean) Whether the store is enabled.
  • shared (Boolean) Shared flag from store configuration.
  • space_available (Number) Available store space in bytes.
  • space_total (Number) Total store space in bytes.
  • space_used (Number) Used store space in bytes.
  • space_used_fraction (Number) Used fraction (used/total).

Nested Schema for filters

Optional:

  • content_types (Set of String) Only list stores with the given content types.
  • id (String) Only list stores with the given ID.
  • target (String) If target is different to node_name, then only lists shared stores which content is accessible on this node and the specified target node.