powerstore_replication_session_action (Resource)
This resource is used to perform actions on an existing PowerStore replication session. Supported actions include: sync, pause, resume, failover, reprotect, start_failover_test, stop_failover_test. Running terraform destroy only removes the resource from state; it does not undo the action.
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.
*/
# Commands to run this tf file : terraform init && terraform plan && terraform apply
# This resource performs actions on an existing replication session.
# Supported actions: sync, pause, resume, failover, reprotect, start_failover_test, stop_failover_test
# Destroying this resource only removes it from Terraform state; it does not undo the action.
# Example: Planned failover
resource "powerstore_replication_session_action" "failover" {
session_id = "replication-session-id-here"
action = "failover"
is_planned = true
reverse = false
}
Schema
Required
action(String) Action to perform on the replication session. Valid values:sync,pause,resume,failover,reprotect,start_failover_test,stop_failover_test.session_id(String) Unique identifier of the replication session to perform the action on.
Optional
is_planned(Boolean) For failover action: whether the failover is planned (true) or unplanned (false). Default is true.reverse(Boolean) For failover action: whether to auto-reprotect after failover. Default is false.
Read-Only
id(String) Composite identifier of the action in the formatsession_id/action/timestamp.post_state(String) State of the replication session after the action was performed.