powermax_portgroup (Resource)
Resource for managing PortGroups in PowerMax array. Updates are supported for the following parameters: name
, ports
.
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.
*/
resource "powermax_portgroup" "portgroup_1" {
name = "tfacc_pg_test_1"
protocol = "SCSI_FC"
ports = [
{
director_id = "OR-1C"
port_id = "0"
}
]
}
Schema
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.
Read-Only
id
(String) The ID of the portgroup.maskingview
(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.type
(String) The type of the portgroup.
Nested Schema for ports
Required:
director_id
(String)port_id
(String)
Import
Import is supported using the following syntax:
# Copyright (c) YEAR 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.
# The command is
# terraform import powermax_portgroup.portgroup_1 <id>
# Example:
terraform import powermax_portgroup.portgroup_1 tfacc_pg_test_1
# after running this command, populate the name field in the config file to start managing this resource