Skip to content

Files

Latest commit

822be0b · Mar 26, 2025

History

History
74 lines (58 loc) · 2.65 KB
·

template_clone.md

File metadata and controls

74 lines (58 loc) · 2.65 KB
·
title linkTitle page_title subcategory description
powerflex_template_clone resource
powerflex_template_clone
powerflex_template_clone Resource - powerflex
Resource Group Management
This resource is only used to clone a template using the original template ID from the template needing to be cloned, with a unique name for the cloned template.

powerflex_template_clone (Resource)

This resource is only used to clone a template using the original template ID from the template needing to be cloned, with a unique name for the cloned template.

Example Usage

/*
Copyright (c) 2025 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 init && terraform plan && terraform apply
# Create, and read is supported for this resource

//gets original template id from sample templates
data "powerflex_template" "template" {
  filter{
    category = ["Sample Templates"]
  }
}

resource "powerflex_template_clone" "example" {
  template_name = "Template Clone"
  original_template_id=data.powerflex_template.template.template_details[0].original_template_id
}

After the execution of above resource block, the Template will be cloned. For more information, please check the terraform state file.

Schema

Required

  • original_template_id (String) Template Clone Resources's original template ID derived from the template needing to be cloned.
  • template_name (String) Template Clone Resources's unique template name for the cloned template.