powermax_host (Data Source)

Data source for reading Hosts 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.
*/

data "powermax_host" "HostDsAll" {
}

data "powermax_host" "HostDsFiltered" {
  filter {
    # Optional list of IDs to filter
    names = [
      "Host124",
      "Host173",
    ]
  }
}

output "hostDsResultAll" {
  value = data.powermax_host.HostDsAll
}

output "hostDsResult" {
  value = data.powermax_host.HostDsFiltered
}

Schema

Optional

Read-Only

  • hosts (Attributes List) List of host attributes (see below for nested schema)
  • id (String) Unique identifier of the host instance.

Nested Schema for filter

Optional:

  • names (Set of String)

Nested Schema for hosts

Required:

  • host_flags (Attributes) Flags set for the host. When host_flags = {} then default flags will be considered. (see below for nested schema)
  • initiator (List of String) The initiators associated with the host.
  • name (String) The name of the host.

Optional:

  • consistent_lun (Boolean) It enables the rejection of any masking operation involving this host that would result in inconsistent LUN values.

Read-Only:

  • bw_limit (Number) Specifies the bandwidth limit for a host.
  • id (String) The ID of the host.
  • maskingview (List of String) The masking views associated with the host.
  • num_of_host_groups (Number) The number of hostgroups associated with the host.
  • num_of_initiators (Number) The number of initiators associated with the host.
  • num_of_masking_views (Number) The number of masking views associated with the host.
  • numofpowerpathhosts (Number) The number of powerpath hosts associated with the host.
  • port_flags_override (Boolean) States whether port flags override is enabled on the host.
  • powerpathhosts (List of String) The powerpath hosts associated with the host.
  • type (String) Specifies the type of host.

Nested Schema for hosts.host_flags

Optional:

  • avoid_reset_broadcast (Attributes) It enables a SCSI bus reset to only occur to the port that received the reset. (see below for nested schema)
  • disable_q_reset_on_ua (Attributes) It is used for hosts that do not expect the queue to be flushed on a 0629 sense. (see below for nested schema)
  • environ_set (Attributes) It enables the environmental error reporting by the storage system to the host on the specific port. (see below for nested schema)
  • openvms (Attributes) This attribute enables an Open VMS fibre connection. (see below for nested schema)
  • scsi_3 (Attributes) Alters the inquiry data to report that the storage system supports the SCSI-3 protocol. (see below for nested schema)
  • scsi_support1 (Attributes) This attribute provides a stricter compliance with SCSI standards. (see below for nested schema)
  • spc2_protocol_version (Attributes) When setting this flag, the port must be offline. (see below for nested schema)
  • volume_set_addressing (Attributes) It enables the volume set addressing mode. (see below for nested schema)

Nested Schema for hosts.host_flags.avoid_reset_broadcast

Optional:

  • enabled (Boolean)
  • override (Boolean)

Nested Schema for hosts.host_flags.disable_q_reset_on_ua

Optional:

  • enabled (Boolean)
  • override (Boolean)

Nested Schema for hosts.host_flags.environ_set

Optional:

  • enabled (Boolean)
  • override (Boolean)

Nested Schema for hosts.host_flags.openvms

Optional:

  • enabled (Boolean)
  • override (Boolean)

Nested Schema for hosts.host_flags.scsi_3

Optional:

  • enabled (Boolean)
  • override (Boolean)

Nested Schema for hosts.host_flags.scsi_support1

Optional:

  • enabled (Boolean)
  • override (Boolean)

Nested Schema for hosts.host_flags.spc2_protocol_version

Optional:

  • enabled (Boolean)
  • override (Boolean)

Nested Schema for hosts.host_flags.volume_set_addressing

Optional:

  • enabled (Boolean)
  • override (Boolean)