apex_navigator_block_mobility_groups_copy (Resource)
This Terraform resource is used in the process of copying data from one storage group (the source) to another storage group (the target) within the APEX Navigator environment.
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_mobility_groups_copy
resource "terraform_data" "always_run_mobility_groups_copy" {
input = timestamp()
}
resource "apex_navigator_block_mobility_groups_copy" "example" {
for_each = var.mobility_group
mobility_source_id = each.value.mobility_source_id
mobility_target_id = each.value.mobility_target_id
# Note: PowerFlex credentials are required to activate the system for mobility related operations.
powerflex_source {
username = each.value.powerflex_source_user
password = each.value.powerflex_source_password
insecure = each.value.insecure
}
powerflex_target {
username = each.value.powerflex_target_user
password = each.value.powerflex_target_password
insecure = each.value.insecure
}
// This will allow terraform create process to trigger each time we run terraform apply.
lifecycle {
replace_triggered_by = [
terraform_data.always_run_mobility_groups_copy
]
}
}
output "examples_mobility_groups_copy" {
value = apex_navigator_block_mobility_groups_copy.example
sensitive = true
}
Schema
Required
mobility_source_id
(String) Source ID of the Mobility Groupmobility_target_id
(String) Target ID of the Mobility Group
Optional
powerflex_source
(Block, Optional) (see below for nested schema)powerflex_target
(Block, Optional) (see below for nested schema)
Read-Only
id
(String) ID of the Mobility Group Copy Jobstatus
(String) Status of the Mobility Group Copy Job
Nested Schema for powerflex_source
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 truepoll_interval
(Number) Poll interval for long-running operations in seconds. This will check if the powerflex is activated every interval. Defaults if unset to 30scheme
(String) Scheme of the powerflex, defaults if unset to https
Nested Schema for powerflex_target
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 truepoll_interval
(Number) Poll interval for long-running operations in seconds. This will check if the powerflex is activated every interval. Defaults if unset to 30scheme
(String) Scheme of the powerflex, defaults if unset to https