apex_navigator_block_mobility_groups (Resource)

This Terraform resource is used to manage Source Data Mobility Groups on Apex Navigator.We can create, read, update, delete Data Mobility Groups on Apex Navigator.We can also import existing Data Mobility Groups from Apex Navigator.

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 "apex_navigator_block_mobility_groups" "example" {
  # Name of the Mobility Group source
  name = "TerraformMobilityGroup"
  # ID of the target system
  system_id = "POWERFLEX-ABCD1234567890"
  # Type of the target system
  system_type = "POWERFLEX"
  # ID of the volume you want to add to the group
  volume_id = [
    "POWERFLEX-ABCD1234567890__VOLUME__1234567890123456"
  ]
  # Note: PowerFlex credentials are required to activate the system for mobility related operations.
  powerflex {
    username = "example-user"
    password = "example-pass"
    insecure = true
  }
}
output "examples_mobility_group" {
  value     = apex_navigator_block_mobility_groups.example
  sensitive = true
}

Schema

Required

  • name (String) Mobility group name
  • system_id (String) Identifier of the system for the mobility group members
  • system_type (String) The source system type (e.g.: POWERFLEX)
  • volume_id (List of String) List of volume ids you want to add to the group

Optional

  • description (String) Mobility group description
  • id (String) Mobility group identifier
  • powerflex (Block, Optional) (see below for nested schema)

Read-Only

  • creation_timestamp (String) When the mobility group was created
  • members (Attributes List) A mobility member is an object (e.g. volume) that is part of a mobility group that will be the source of mobility copy operations. (see below for nested schema)

Nested Schema for powerflex

Required:

  • password (String, Sensitive) Password of the powerflex
  • username (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 ID
  • insecure (Boolean) Validated the certificate when connecting to the powerflex, defaults if unset to true
  • scheme (String) Scheme of the powerflex, defaults if unset to https

Nested Schema for members

Read-Only:

  • id (String) Identifier of the member (e.g. PowerFlex volume identifier)
  • name (String) Name of the member (e.g. name of the volume)
  • size (String) Size of the member (e.g. volume size in bytes)

Import

Import is supported using the following syntax:

/*
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.
*/

terraform import apex_navigator_block_mobility_groups.example "{\"id\":\"<mobility-group-id>\",\"username\":\"<powerflex-username>\",\"password\":\"<powerflex-password>\",\"host\":\"<powerflex-host>\",\"insecure\":<insecure>,\"scheme\":\"<powerflex-scheme>\"}"