powerstore_hostgroup (Data Source)

HostGroup DataSource.

Note: Only one of name or id can be provided at a time.

Example Usage

# commands to run this tf file : terraform init && terraform apply --auto-approve
# This datasource reads host groups either by id or name where user can provide a value to any one of them
# If it is a empty datsource block , then it will read all the host groups
# If id or name is provided then it reads a particular host group with that id or name
# Only one of the attribute can be provided among id and  name 

data "powerstore_hostgroup" "test1" {
  name = "test_hostgroup1"
}

output "hostGroupResult" {
  value = data.powerstore_hostgroup.test1.host_groups
}

Schema

Optional

  • id (String) Unique identifier of the host group. Conflicts with name.
  • name (String) Host group name. Conflicts with id.

Read-Only

Nested Schema for host_groups

Read-Only:

  • description (String) Host group description.
  • host_connectivity (String) Connectivity type for hosts and host groups.
  • host_connectivity_l10n (String) Localized message string corresponding to host_connectivity
  • host_virtual_volume_mappings (Attributes List) Virtual volume mapping details. (see below for nested schema)
  • hosts (Attributes List) Properties of a host. (see below for nested schema)
  • id (String) Unique identifier of the host group.
  • mapped_host_groups (Attributes List) Details about a configured host or host group attached to a volume. (see below for nested schema)
  • name (String) Host group name.

Nested Schema for host_groups.host_virtual_volume_mappings

Read-Only:

  • host_id (String) Unique identifier of a host attached to a volume.
  • id (String) Unique identifier of a mapping between a host and a virtual volume.
  • virtual_volume_id (String) Unique identifier of the virtual volume to which the host is attached.
  • virtual_volume_name (String) Name of the virtual volume to which the host is attached.

Nested Schema for host_groups.hosts

Read-Only:

  • description (String) A description for the host.
  • id (String) Unique identifier of the host.
  • name (String) The host name.

Nested Schema for host_groups.mapped_host_groups

Read-Only:

  • host_id (String) Unique identifier of a host attached to a volume.
  • id (String) Unique identifier of a mapping between a host and a volume.
  • volume_id (String) Unique identifier of the volume to which the host is attached.
  • volume_name (String) Name of the volume to which the host is attached.