published on Wednesday, Jun 24, 2026 by dell
published on Wednesday, Jun 24, 2026 by dell
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as powerstore from "@pulumi/powerstore";
//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 && pulumi preview && pulumi up
// 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
const failover = new powerstore.ReplicationSessionAction("failover", {
sessionId: "replication-session-id-here",
action: "failover",
isPlanned: true,
reverse: false,
});
import pulumi
import pulumi_powerstore as powerstore
#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 && pulumi preview && pulumi up
# 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
failover = powerstore.ReplicationSessionAction("failover",
session_id="replication-session-id-here",
action="failover",
is_planned=True,
reverse=False)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/powerstore/powerstore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// 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 && pulumi preview && pulumi up
// 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
_, err := powerstore.NewReplicationSessionAction(ctx, "failover", &powerstore.ReplicationSessionActionArgs{
SessionId: pulumi.String("replication-session-id-here"),
Action: pulumi.String("failover"),
IsPlanned: pulumi.Bool(true),
Reverse: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Powerstore = Pulumi.Powerstore;
return await Deployment.RunAsync(() =>
{
//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 && pulumi preview && pulumi up
// 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
var failover = new Powerstore.ReplicationSessionAction("failover", new()
{
SessionId = "replication-session-id-here",
Action = "failover",
IsPlanned = true,
Reverse = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.powerstore.ReplicationSessionAction;
import com.pulumi.powerstore.ReplicationSessionActionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
//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 && pulumi preview && pulumi up
// 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
var failover = new ReplicationSessionAction("failover", ReplicationSessionActionArgs.builder()
.sessionId("replication-session-id-here")
.action("failover")
.isPlanned(true)
.reverse(false)
.build());
}
}
resources:
# /*
# 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 && pulumi preview && pulumi up
# 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
failover:
type: powerstore:ReplicationSessionAction
properties:
sessionId: replication-session-id-here
action: failover
isPlanned: true
reverse: false
Example coming soon!
Create ReplicationSessionAction Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ReplicationSessionAction(name: string, args: ReplicationSessionActionArgs, opts?: CustomResourceOptions);@overload
def ReplicationSessionAction(resource_name: str,
args: ReplicationSessionActionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ReplicationSessionAction(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
session_id: Optional[str] = None,
is_planned: Optional[bool] = None,
reverse: Optional[bool] = None)func NewReplicationSessionAction(ctx *Context, name string, args ReplicationSessionActionArgs, opts ...ResourceOption) (*ReplicationSessionAction, error)public ReplicationSessionAction(string name, ReplicationSessionActionArgs args, CustomResourceOptions? opts = null)
public ReplicationSessionAction(String name, ReplicationSessionActionArgs args)
public ReplicationSessionAction(String name, ReplicationSessionActionArgs args, CustomResourceOptions options)
type: powerstore:ReplicationSessionAction
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "powerstore_replicationsessionaction" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ReplicationSessionActionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ReplicationSessionActionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ReplicationSessionActionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReplicationSessionActionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReplicationSessionActionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var replicationSessionActionResource = new Powerstore.ReplicationSessionAction("replicationSessionActionResource", new()
{
Action = "string",
SessionId = "string",
IsPlanned = false,
Reverse = false,
});
example, err := powerstore.NewReplicationSessionAction(ctx, "replicationSessionActionResource", &powerstore.ReplicationSessionActionArgs{
Action: pulumi.String("string"),
SessionId: pulumi.String("string"),
IsPlanned: pulumi.Bool(false),
Reverse: pulumi.Bool(false),
})
resource "powerstore_replicationsessionaction" "replicationSessionActionResource" {
action = "string"
session_id = "string"
is_planned = false
reverse = false
}
var replicationSessionActionResource = new ReplicationSessionAction("replicationSessionActionResource", ReplicationSessionActionArgs.builder()
.action("string")
.sessionId("string")
.isPlanned(false)
.reverse(false)
.build());
replication_session_action_resource = powerstore.ReplicationSessionAction("replicationSessionActionResource",
action="string",
session_id="string",
is_planned=False,
reverse=False)
const replicationSessionActionResource = new powerstore.ReplicationSessionAction("replicationSessionActionResource", {
action: "string",
sessionId: "string",
isPlanned: false,
reverse: false,
});
type: powerstore:ReplicationSessionAction
properties:
action: string
isPlanned: false
reverse: false
sessionId: string
ReplicationSessionAction Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ReplicationSessionAction resource accepts the following input properties:
- 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.
- Is
Planned bool - For failover action: whether the failover is planned (true) or unplanned (false). Default is true.
- Reverse bool
- For failover action: whether to auto-reprotect after failover. Default is false.
- 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.
- Is
Planned bool - For failover action: whether the failover is planned (true) or unplanned (false). Default is true.
- Reverse bool
- For failover action: whether to auto-reprotect after failover. Default is false.
- 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.
- is_
planned bool - For failover action: whether the failover is planned (true) or unplanned (false). Default is true.
- reverse bool
- For failover action: whether to auto-reprotect after failover. Default is false.
- 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.
- 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.
- 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.
- 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.
- action str
- Action to perform on the replication session. Valid values:
sync,pause,resume,failover,reprotect,start_failover_test,stop_failover_test. - session_
id str - Unique identifier of the replication session to perform the action on.
- is_
planned bool - For failover action: whether the failover is planned (true) or unplanned (false). Default is true.
- reverse bool
- For failover action: whether to auto-reprotect after failover. Default is false.
- 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.
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the ReplicationSessionAction resource produces the following output properties:
- id string
- The provider-assigned unique ID for this managed resource.
- post_
state string - State of the replication session after the action was performed.
- id str
- The provider-assigned unique ID for this managed resource.
- post_
state str - State of the replication session after the action was performed.
Look up Existing ReplicationSessionAction Resource
Get an existing ReplicationSessionAction resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ReplicationSessionActionState, opts?: CustomResourceOptions): ReplicationSessionAction@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
is_planned: Optional[bool] = None,
post_state: Optional[str] = None,
reverse: Optional[bool] = None,
session_id: Optional[str] = None) -> ReplicationSessionActionfunc GetReplicationSessionAction(ctx *Context, name string, id IDInput, state *ReplicationSessionActionState, opts ...ResourceOption) (*ReplicationSessionAction, error)public static ReplicationSessionAction Get(string name, Input<string> id, ReplicationSessionActionState? state, CustomResourceOptions? opts = null)public static ReplicationSessionAction get(String name, Output<String> id, ReplicationSessionActionState state, CustomResourceOptions options)resources: _: type: powerstore:ReplicationSessionAction get: id: ${id}import {
to = powerstore_replicationsessionaction.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Action string
- Action to perform on the replication session. Valid values:
sync,pause,resume,failover,reprotect,start_failover_test,stop_failover_test. - Is
Planned bool - For failover action: whether the failover is planned (true) or unplanned (false). Default is true.
- Post
State string - State of the replication session after the action was performed.
- Reverse bool
- For failover action: whether to auto-reprotect after failover. Default is false.
- Session
Id string - Unique identifier of the replication session to perform the action on.
- Action string
- Action to perform on the replication session. Valid values:
sync,pause,resume,failover,reprotect,start_failover_test,stop_failover_test. - Is
Planned bool - For failover action: whether the failover is planned (true) or unplanned (false). Default is true.
- Post
State string - State of the replication session after the action was performed.
- Reverse bool
- For failover action: whether to auto-reprotect after failover. Default is false.
- Session
Id string - Unique identifier of the replication session to perform the action on.
- action string
- Action to perform on the replication session. Valid values:
sync,pause,resume,failover,reprotect,start_failover_test,stop_failover_test. - is_
planned bool - For failover action: whether the failover is planned (true) or unplanned (false). Default is true.
- post_
state string - State of the replication session after the action was performed.
- reverse bool
- For failover action: whether to auto-reprotect after failover. Default is false.
- session_
id string - Unique identifier of the replication session to perform the action on.
- action String
- Action to perform on the replication session. Valid values:
sync,pause,resume,failover,reprotect,start_failover_test,stop_failover_test. - is
Planned Boolean - For failover action: whether the failover is planned (true) or unplanned (false). Default is true.
- post
State String - State of the replication session after the action was performed.
- reverse Boolean
- For failover action: whether to auto-reprotect after failover. Default is false.
- session
Id String - Unique identifier of the replication session to perform the action on.
- action string
- Action to perform on the replication session. Valid values:
sync,pause,resume,failover,reprotect,start_failover_test,stop_failover_test. - is
Planned boolean - For failover action: whether the failover is planned (true) or unplanned (false). Default is true.
- post
State string - State of the replication session after the action was performed.
- reverse boolean
- For failover action: whether to auto-reprotect after failover. Default is false.
- session
Id string - Unique identifier of the replication session to perform the action on.
- action str
- Action to perform on the replication session. Valid values:
sync,pause,resume,failover,reprotect,start_failover_test,stop_failover_test. - is_
planned bool - For failover action: whether the failover is planned (true) or unplanned (false). Default is true.
- post_
state str - State of the replication session after the action was performed.
- reverse bool
- For failover action: whether to auto-reprotect after failover. Default is false.
- session_
id str - Unique identifier of the replication session to perform the action on.
- action String
- Action to perform on the replication session. Valid values:
sync,pause,resume,failover,reprotect,start_failover_test,stop_failover_test. - is
Planned Boolean - For failover action: whether the failover is planned (true) or unplanned (false). Default is true.
- post
State String - State of the replication session after the action was performed.
- reverse Boolean
- For failover action: whether to auto-reprotect after failover. Default is false.
- session
Id String - Unique identifier of the replication session to perform the action on.
Package Details
- Repository
- powerstore dell/terraform-provider-powerstore
- License
- Notes
- This Pulumi package is based on the
powerstoreTerraform Provider.
published on Wednesday, Jun 24, 2026 by dell