Skip to content

Latest commit

 

History

History
123 lines (96 loc) · 5.79 KB

cluster_owner.md

File metadata and controls

123 lines (96 loc) · 5.79 KB
title linkTitle page_title subcategory description
powerscale_cluster_owner resource
powerscale_cluster_owner
powerscale_cluster_owner Resource - terraform-provider-powerscale
This resource is used to manage the Cluster Owner Settings entity of PowerScale Array. PowerScale Cluster Owner Settings provide the ability to configure owner settings on the cluster.We can Create, Update and Delete the Cluster Owner Settings using this resource. We can also import existing Cluster Owner Settings from PowerScale array. Note that, Cluster Owner Settings is the native functionality of PowerScale. When creating the resource, we actually load Cluster Owner Settings from PowerScale to the resource state.

powerscale_cluster_owner (Resource)

This resource is used to manage the Cluster Owner Settings entity of PowerScale Array. PowerScale Cluster Owner Settings provide the ability to configure owner settings on the cluster.We can Create, Update and Delete the Cluster Owner Settings using this resource. We can also import existing Cluster Owner Settings from PowerScale array. Note that, Cluster Owner Settings is the native functionality of PowerScale. When creating the resource, we actually load Cluster Owner Settings from PowerScale to the resource state.

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

# Available actions: Create, Update, Delete and Import
# If resource arguments are omitted, `terraform apply` will load Cluster Owner Details from PowerScale, and save to
# terraform state file.
# If any resource arguments are specified, `terraform apply` will try to load Cluster Owner Details (if not loaded) and update the settings.
# `terraform destroy` will delete the resource from terraform state file rather than deleting Cluster Owner Details from PowerScale.
# For more information, Please check the terraform state file.

resource "powerscale_cluster_owner" "test" {
  company          = "company_name"
  location         = "location"
  primary_email    = "[email protected]"
  primary_name     = "primary_name"
  primary_phone1   = "+91-12345-67890"
  primary_phone2   = "+1 123-456-7890" # primary alternate phone number
  secondary_email  = "[email protected]"
  secondary_name   = "secondary_name"
  secondary_phone1 = "+44 (20) 1234 5678"
  secondary_phone2 = "+1 (800) 555-5555" # secondary alternate phone number
}

# After the execution of above resource block, Cluster Owner Settings would have been cached in terraform state file, and
# Cluster Owner Settings would have been updated on PowerScale.
# For more information, Please check the terraform state file.

Schema

Optional

  • company (String) Company Name of the Cluster Owner Settings.
  • location (String) Location of the Cluster Owner Settings.
  • primary_email (String) Primary Email of the Cluster Owner Settings.
  • primary_name (String) Primary Name of the Cluster Owner Settings.
  • primary_phone1 (String) Primary Phone of the Cluster Owner Settings.
  • primary_phone2 (String) Primary Alternate Phone of the Cluster Owner Settings.
  • secondary_email (String) Secondary Email of the Cluster Owner Settings.
  • secondary_name (String) Secondary Name of the Cluster Owner Settings.
  • secondary_phone1 (String) Secondary Phone of the Cluster Owner Settings.
  • secondary_phone2 (String) Secondary Alternate Phone of the Cluster Owner Settings.

Read-Only

  • id (String) ID of the Cluster Owner Settings.

Unless specified otherwise, all fields of this resource can be updated.

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.

# The command is
# terraform import powerscale_cluster_owner.owner <anystring>
# Example:
terraform import powerscale_cluster_owner.owner cluster_owner
# after running this command, populate the name field and other required parameters in the config file to start managing this resource.
# Note: running "terraform show" after importing shows the current config/state of the resource. You can copy/paste that config to make it easier to manage the resource.