powerflex_device_action_v2 (Resource)
This resource is used to perform Gen2 device actions on PowerFlex systems (5.0+). Supported actions: activate, clear_error, set_capacity_limit.
Example Usage
/*
Copyright (c) 2024-2026 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.
*/
# Commands to run this tf file : terraform init && terraform plan && terraform apply
# This resource performs actions on devices (Gen2 systems 5.0+)
# Supported actions: activate, clear_error, set_capacity_limit
# device_id and action are required
# capacity_limit_in_kb is required when action is set_capacity_limit
# Example: Activate a device
resource "powerflex_device_action_v2" "activate" {
device_id = "0123456789abcdef"
action = "activate"
}
# Example: Clear device error
resource "powerflex_device_action_v2" "clear_error" {
device_id = "0123456789abcdef"
action = "clear_error"
}
# Example: Set device capacity limit
resource "powerflex_device_action_v2" "set_capacity" {
device_id = "0123456789abcdef"
action = "set_capacity_limit"
capacity_limit_in_kb = "10737418240" # 10TB in KB
}
output "device_action" {
value = powerflex_device_action_v2.activate
}
Schema
Required
action(String) The action to perform. Valid values:activate,clear_error,set_capacity_limit.device_id(String) The ID of the device to perform the action on.
Optional
capacity_limit_in_kb(String) Capacity limit in KB. Required when action isset_capacity_limit.
Read-Only
id(String) The identifier for this action resource.