Data Sources
Data Sources
Terraform data sources for querying existing ZSvirt resources.
ZSvirt was open-sourced from the ZStack ZSphere commercial project and has since developed independently. Some code, configuration, and documentation still retain historical ZStack/ZSphere names (such as environment variables, configuration items, dependencies, paths, and commands). These names are for compatibility only and do not affect the normal use of ZSvirt.
Data sources let you look up existing ZSvirt objects by name, pattern, or filter before passing their UUIDs to resources.
zsphere_tag
This resource allows you to manage tags in ZSvirt. A tag is a label that can be attached to resources for organization and filtering. Tags have a name, value, color, and optional description.
zsphere_datacenters
Fetches a list of datacenters and their associated attributes from the ZSvirt environment.