apex_navigator_block_clones_map (Resource)
This Terraform resource is used to map hosts to clones.
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.
*/
// Resource to manage lifecycle for apex_navigator_block_clones_map
resource "terraform_data" "always_run_mobility_clones_map" {
input = timestamp()
}
resource "apex_navigator_block_clones_map" "example" {
# Clone Id you want to map hosts to
clone_id = "POWERFLEX-ABCD1234567890__DATAMOBILITYGROUP__12345678-1234-1234-1234-123456789012"
# System ID
system_id = "POWERFLEX-ELMSIOENG10015"
# Host ids you want to add to the clone
host_ids = [
"POWERFLEX-ABCD1234567890__HOST__abcdef1234567890"
]
# Note: PowerFlex credentials are required to activate the system for clones related operations.
powerflex {
username = "example-username"
password = "example-pass"
}
// This will allow terraform create process to trigger each time we run terraform apply.
lifecycle {
replace_triggered_by = [
terraform_data.always_run_mobility_clones_map
]
}
}
output "examples_clones_map" {
value = apex_navigator_block_clones_map.example
sensitive = true
}
Schema
Required
clone_id
(String) The ID of the clonehost_ids
(List of String) List of host ids(host_ids) to map to the clonesystem_id
(String)
Optional
host_mappings
(Attributes List) This represents the mapping of a repurposed (clone) storage object to a host (presumably using the clone for some analytical workload) (see below for nested schema)powerflex
(Block, Optional) (see below for nested schema)status
(String) Status of the clone map Job
Read-Only
id
(String) ID of the clone map job
Nested Schema for host_mappings
Read-Only:
host_id
(String) Identifier of the hosthost_initiator_protocol
(String) Type of the hosthost_ip
(String) IP address of hosthost_name
(String) Name of host/SDC to be mapped to the cloneid
(String) This is a host mappings id generated by APEX Navigator for Multicloud Storagenqn
(String) NVMe qualified name. Only applicable if host_initiator_protocol is NVMe
Nested Schema for powerflex
Required:
password
(String, Sensitive) Password of the powerflexusername
(String) Username of the powerflex
Optional:
host
(String) Host, ip or hostname of the powerflex. If left empty we will attempt to get the ip through Apex from the IDinsecure
(Boolean) Validated the certificate when connecting to the powerflex, defaults if unset to truescheme
(String) Scheme of the powerflex, defaults if unset to https