powermax_hostgroup (Data Source)

Data source for reading HostGroups in PowerMax array.

Example Usage

/*
Copyright (c) 2023 Dell Inc., or its subsidiaries. All Rights Reserved.

Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://mozilla.org/MPL/2.0/


Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

# List all hostgroups
data "powermax_hostgroup" "all" {}

output "all" {
  value = data.powermax_hostgroup.all
}

# List a specific hostgroup
data "powermax_hostgroup" "groups" {
  filter {
    names = ["host_group_example_1", "host_group_example_2"]
  }
}

output "groups" {
  value = data.powermax_hostgroup.groups
}

Schema

Optional

Read-Only

Nested Schema for filter

Optional:

  • names (Set of String)

Nested Schema for host_group_details

Optional:

  • host (Attributes List) List of related host ids (see below for nested schema)
  • maskingview (List of String) List of masking views ids related to the host

Read-Only:

  • consistent_lun (Boolean) Consistent lun flag set
  • host_group_id (String) Id of a hostgroup
  • name (String) Name of a hostgroup
  • num_of_hosts (Number) Number of hosts related to a hostgroup
  • num_of_initiators (Number) Number of initiators related to a hostgroup
  • num_of_masking_views (Number) Number of masking views related to a hostgroup
  • port_flags_override (Boolean) Port flags are overwritten
  • type (String) The host group type

Nested Schema for host_group_details.host

Optional:

  • initiator (List of String) The host initators associated with the host

Read-Only:

  • host_id (String) The host id