powermax_portgroups (Data Source)
Data source for reading PortGroups 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 fibre portgroups.
data "powermax_portgroups" "fibreportgroups" {
# Optional filter to list specified Portgroups names and/or type
filter {
# type for which portgroups to be listed - fibre or iscsi
type = "fibre"
# Optional list of IDs to filter
names = [
"tfacc_test1_fibre",
#"test2_fibre",
]
}
}
data "powermax_portgroups" "scsiportgroups" {
filter {
type = "iscsi"
# Optional filter to list specified Portgroups Names
}
}
# List all portgroups.
data "powermax_portgroups" "allportgroups" {
#filter {
# Optional list of IDs to filter
#names = [
# "test1",
# "test2",
#]
#}
}
Schema
Optional
filter
(Block, Optional) (see below for nested schema)
Read-Only
id
(String) Identifierport_groups
(Attributes List) List of port group attributes (see below for nested schema)
Nested Schema for filter
Optional:
names
(Set of String)type
(String) The Type of the portgroup.
Nested Schema for port_groups
Required:
name
(String) The name of the portgroup.ports
(Attributes List) The list of ports associated with the portgroup. (see below for nested schema)protocol
(String) The portgroup protocol.type
(String) The Type of the portgroup.
Read-Only:
id
(String) Identifiermaskingview
(List of String) The masking views associated with the portgroup.numofmaskingviews
(Number) The number of masking views associated with the portgroup.numofports
(Number) The number of ports associated with the portgroup.
Nested Schema for port_groups.ports
Required:
director_id
(String)port_id
(String)