title | linkTitle | page_title | subcategory | description |
---|---|---|---|---|
powerscale_support_assist resource |
powerscale_support_assist |
powerscale_support_assist Resource - terraform-provider-powerscale |
This resource is used to manage the Support Assist settings of PowerScale Array. We can Create, Update and Delete the Support Assist settings using this resource. Note that, Support Assist settings is the native functionality of PowerScale. |
This resource is used to manage the Support Assist settings of PowerScale Array. We can Create, Update and Delete the Support Assist settings using this resource. Note that, Support Assist settings is the native functionality of PowerScale.
/*
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, Read, Update, Delete and Import. Delete will clear the the state file.
# After `terraform apply` of this example file will update the settings according to the attributes set in the config.
# All attributes are optional. This resource expects atleast one attribute to be present in the config.
resource "powerscale_support_assist" "test" {
supportassist_enabled = true
enable_download = true
automatic_case_creation = false
enable_remote_support = true
accepted_terms = true
access_key = "key"
pin = "pin"
telemetry = {
offline_collection_period = 7200,
telemetry_enabled = true,
telemetry_persist = true,
telemetry_threads = 6
}
contact = {
primary = {
email = "abc@gmail.com",
first_name = "terraform_first",
language = "En",
last_name = "terraform_last",
phone = "1234567890"
},
secondary = {
email = "xyz@gmail.com",
first_name = "terraform_second",
language = "No",
last_name = "terraform",
phone = "1234567890"
}
}
connections = {
mode = "gateway"
gateway_endpoints = [
{
enabled = true,
host = "1.2.3.4",
port = 9443,
priority = 1,
use_proxy = true,
validate_ssl = true
},
],
network_pools = ["subnet0:pool0"]
}
}
accepted_terms
(Boolean) Set T&C accepted or rejected statusaccess_key
(String) SupportAssist access keyautomatic_case_creation
(Boolean) True indicates automatic case creation is enabledconnections
(Attributes) (see below for nested schema)contact
(Attributes) (see below for nested schema)enable_download
(Boolean) True indicates downloads are enabledenable_remote_support
(Boolean) Allow remote support.pin
(String) SupportAssist pinsupportassist_enabled
(Boolean) Whether SupportAssist is enabledtelemetry
(Attributes) (see below for nested schema)
id
(String) Placeholder ID
Optional:
gateway_endpoints
(Attributes List) Gateway details (see below for nested schema)mode
(String) Connection Mode for SupportAssist: can be direct or via gatewaynetwork_pools
(List of String) Network pools for gateway use
Optional:
enabled
(Boolean) Whether this gateway is enabled/disabledhost
(String) Gateway hostname or IPv4 addressport
(Number) Gateway portpriority
(Number) Gateway's priorityuse_proxy
(Boolean) Whether to use Proxy for this gatewayvalidate_ssl
(Boolean) Whether to validate SSL for this gateway
Optional:
primary
(Attributes) (see below for nested schema)secondary
(Attributes) (see below for nested schema)
Optional:
email
(String) Contact's email address.first_name
(String) Contact's first name.language
(String)last_name
(String) Contact's last name.phone
(String) Contact's phone number.
Optional:
email
(String) Contact's email address.first_name
(String) Contact's first name.language
(String)last_name
(String) Contact's last name.phone
(String) Contact's phone number.
Optional:
offline_collection_period
(Number) Change the offline collection period for when the connection to gateway is downtelemetry_enabled
(Boolean) Change the status of telemetrytelemetry_persist
(Boolean) Change if files are kept after uploadtelemetry_threads
(Number) Change the number of threads for telemetry gathers
Unless specified otherwise, all fields of this resource can be updated.
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_support_assist.example_support_assist <anyString>
# Example:
terraform import powerscale_support_assist.example_support_assist "support_assist"
# After running this command, populate one or more fields 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.