apex_navigator_block_clones_refresh (Resource)

This Terraform resource is used to manage clones refreshes on 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 to manage lifecycle for apex_navigator_block_clones_refresh
resource "terraform_data" "always_run_mobility_clones_refresh" {
  input = timestamp()
}

resource "apex_navigator_block_clones_refresh" "example" {
  # Clone Id you want to refresh
  clone_id = "POWERFLEX-ABCD1234567890__DATAMOBILITYGROUP__12345678-1234-1234-1234-123456789012"
  # System ID
  system_id = "POWERFLEX-ELMSIOENG10015"
  # 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_refresh
    ]
  }
}

output "examples_clones_refresh" {
  value     = apex_navigator_block_clones_refresh.example
  sensitive = true
}

Schema

Required

  • clone_id (String) Unique identifier for the clone to be refreshed.
  • system_id (String)

Optional

Read-Only

  • id (String) ID for the clone refresh Job
  • status (String) Status of the clone refresh Job

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