apex_navigator_block_hosts (Data Source)

This Terraform Datasource is used to query existing hosts on Apex Navigator. The information fetched from this block can be further used for resource block.

Example Usage

/*
Copyright (c) 2024 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 "apex_navigator_block_hosts" "example" {}

output "examples_hosts" {
  value = data.apex_navigator_block_hosts.example
}

# data "apex_navigator_block_hosts" "example" {
#     filter {
#     ids = ["host-id"] 
#   }
# }

# output "examples_hosts" {
#   value = data.apex_navigator_block_hosts.example
# }

Schema

Optional

Read-Only

Nested Schema for filter

Optional:

  • ids (Set of String) Filter by ids

Nested Schema for hosts

Optional:

  • description (String) Description of the host
  • id (String) Host identifier
  • initiator_count (Number) Number of initiators that are connected between the host or server and the monitored system
  • initiator_protocol (String) Type of initiator (FC or iSCSI) that the host or server uses to connect to a monitored system
  • issue_count (Number) Number of health issues that are present on the host or server
  • name (String) Name of the host or server
  • native_id (String) Identifier of the host, defined by the system
  • network_addresses (String)
  • operating_system (String) Operating system of the host or server
  • system_id (String) Unique identifier for the system that the host is connected to
  • system_model (String) Model of the system
  • system_name (String) Name of the system
  • system_type (String) Product type of the system
  • total_size (Number) Total size of all LUNs or Volumes that are provisioned to the host or server from the system - Unit: bytes
  • type (String) Type of the host