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
filter
(Block, Optional) (see below for nested schema)
Read-Only
hosts
(Attributes List) List of hosts (see below for nested schema)id
(String) ID of the host datasource
Nested Schema for filter
Optional:
ids
(Set of String) Filter by ids
Nested Schema for hosts
Optional:
description
(String) Description of the hostid
(String) Host identifierinitiator_count
(Number) Number of initiators that are connected between the host or server and the monitored systeminitiator_protocol
(String) Type of initiator (FC or iSCSI) that the host or server uses to connect to a monitored systemissue_count
(Number) Number of health issues that are present on the host or servername
(String) Name of the host or servernative_id
(String) Identifier of the host, defined by the systemnetwork_addresses
(String)operating_system
(String) Operating system of the host or serversystem_id
(String) Unique identifier for the system that the host is connected tosystem_model
(String) Model of the systemsystem_name
(String) Name of the systemsystem_type
(String) Product type of the systemtotal_size
(Number) Total size of all LUNs or Volumes that are provisioned to the host or server from the system - Unit: bytestype
(String) Type of the host