Viewing docs for powerstore 1.3.0
published on Wednesday, Jun 24, 2026 by dell
published on Wednesday, Jun 24, 2026 by dell
Viewing docs for powerstore 1.3.0
published on Wednesday, Jun 24, 2026 by dell
published on Wednesday, Jun 24, 2026 by dell
This datasource is used to query replication sessions from PowerStore array. The results can be used to monitor replication health, status, and session details for metro and async replication.
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 datasource reads replication session details from PowerStore array.
// Example: Get all replication sessions
const all = powerstore.getReplicationSession({});
// Example: Get a specific replication session by ID
const byId = powerstore.getReplicationSession({
id: "replication-session-id-here",
});
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 datasource reads replication session details from PowerStore array.
# Example: Get all replication sessions
all = powerstore.get_replication_session()
# Example: Get a specific replication session by ID
by_id = powerstore.get_replication_session(id="replication-session-id-here")
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 datasource reads replication session details from PowerStore array.
// Example: Get all replication sessions
_, err := powerstore.GetReplicationSession(ctx, &powerstore.GetReplicationSessionArgs{}, nil)
if err != nil {
return err
}
// Example: Get a specific replication session by ID
_, err = powerstore.GetReplicationSession(ctx, &powerstore.GetReplicationSessionArgs{
Id: pulumi.StringRef("replication-session-id-here"),
}, nil)
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 datasource reads replication session details from PowerStore array.
// Example: Get all replication sessions
var all = Powerstore.GetReplicationSession.Invoke();
// Example: Get a specific replication session by ID
var byId = Powerstore.GetReplicationSession.Invoke(new()
{
Id = "replication-session-id-here",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.powerstore.PowerstoreFunctions;
import com.pulumi.powerstore.inputs.GetReplicationSessionArgs;
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 datasource reads replication session details from PowerStore array.
// Example: Get all replication sessions
final var all = PowerstoreFunctions.getReplicationSession(GetReplicationSessionArgs.builder()
.build());
// Example: Get a specific replication session by ID
final var byId = PowerstoreFunctions.getReplicationSession(GetReplicationSessionArgs.builder()
.id("replication-session-id-here")
.build());
}
}
variables:
# /*
# 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 datasource reads replication session details from PowerStore array.
# Example: Get all replication sessions
all:
fn::invoke:
function: powerstore:getReplicationSession
arguments: {}
# Example: Get a specific replication session by ID
byId:
fn::invoke:
function: powerstore:getReplicationSession
arguments:
id: replication-session-id-here
Example coming soon!
Using getReplicationSession
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getReplicationSession(args: GetReplicationSessionArgs, opts?: InvokeOptions): Promise<GetReplicationSessionResult>
function getReplicationSessionOutput(args: GetReplicationSessionOutputArgs, opts?: InvokeOptions): Output<GetReplicationSessionResult>def get_replication_session(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetReplicationSessionResult
def get_replication_session_output(id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetReplicationSessionResult]func GetReplicationSession(ctx *Context, args *GetReplicationSessionArgs, opts ...InvokeOption) (*GetReplicationSessionResult, error)
func GetReplicationSessionOutput(ctx *Context, args *GetReplicationSessionOutputArgs, opts ...InvokeOption) GetReplicationSessionResultOutput> Note: This function is named GetReplicationSession in the Go SDK.
public static class GetReplicationSession
{
public static Task<GetReplicationSessionResult> InvokeAsync(GetReplicationSessionArgs args, InvokeOptions? opts = null)
public static Output<GetReplicationSessionResult> Invoke(GetReplicationSessionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetReplicationSessionResult> getReplicationSession(GetReplicationSessionArgs args, InvokeOptions options)
public static Output<GetReplicationSessionResult> getReplicationSession(GetReplicationSessionArgs args, InvokeOptions options)
fn::invoke:
function: powerstore:index/getReplicationSession:getReplicationSession
arguments:
# arguments dictionarydata "powerstore_getreplicationsession" "name" {
# arguments
}The following arguments are supported:
- Id string
- Unique identifier of a specific replication session to query. If provided, only this session is returned.
- Id string
- Unique identifier of a specific replication session to query. If provided, only this session is returned.
- id string
- Unique identifier of a specific replication session to query. If provided, only this session is returned.
- id String
- Unique identifier of a specific replication session to query. If provided, only this session is returned.
- id string
- Unique identifier of a specific replication session to query. If provided, only this session is returned.
- id str
- Unique identifier of a specific replication session to query. If provided, only this session is returned.
- id String
- Unique identifier of a specific replication session to query. If provided, only this session is returned.
getReplicationSession Result
The following output properties are available:
- Id string
- Unique identifier of a specific replication session to query. If provided, only this session is returned.
- Replication
Sessions List<GetReplication Session Replication Session> - List of replication sessions matching the query.
- Id string
- Unique identifier of a specific replication session to query. If provided, only this session is returned.
- Replication
Sessions []GetReplication Session Replication Session - List of replication sessions matching the query.
- id string
- Unique identifier of a specific replication session to query. If provided, only this session is returned.
- replication_
sessions list(object) - List of replication sessions matching the query.
- id String
- Unique identifier of a specific replication session to query. If provided, only this session is returned.
- replication
Sessions List<GetReplication Session Replication Session> - List of replication sessions matching the query.
- id string
- Unique identifier of a specific replication session to query. If provided, only this session is returned.
- replication
Sessions GetReplication Session Replication Session[] - List of replication sessions matching the query.
- id str
- Unique identifier of a specific replication session to query. If provided, only this session is returned.
- replication_
sessions Sequence[GetReplication Session Replication Session] - List of replication sessions matching the query.
- id String
- Unique identifier of a specific replication session to query. If provided, only this session is returned.
- replication
Sessions List<Property Map> - List of replication sessions matching the query.
Supporting Types
GetReplicationSessionReplicationSession
- Data
Transfer stringState - Current data transfer state.
- Failover
Test boolIn Progress - Whether a test failover is in progress.
- Id string
- Unique identifier of the replication session.
- Last
Sync doubleDuration - Elapsed time of the last synchronization in milliseconds.
- Last
Sync stringTimestamp - Time of last successful synchronization.
- Local
Resource stringId - Unique identifier of the local storage resource.
- Progress
Percentage double - Progress of the current replication operation.
- Remote
Resource stringId - Unique identifier of the remote storage resource.
- Remote
System stringId - Unique identifier of the remote system.
- Replication
Rule stringId - Associated replication rule instance ID.
- Resource
Type string - Type of the storage resource.
- Resource
Type stringL10n - Localized resource type string.
- Role string
- Role of the replication session.
- Role
L10n string - Localized role string.
- State string
- Current state of the replication session.
- State
L10n string - Localized state string.
- Type string
- Replication session type (e.g., MetroActiveActive).
- Type
L10n string - Localized type string.
- Data
Transfer stringState - Current data transfer state.
- Failover
Test boolIn Progress - Whether a test failover is in progress.
- Id string
- Unique identifier of the replication session.
- Last
Sync float64Duration - Elapsed time of the last synchronization in milliseconds.
- Last
Sync stringTimestamp - Time of last successful synchronization.
- Local
Resource stringId - Unique identifier of the local storage resource.
- Progress
Percentage float64 - Progress of the current replication operation.
- Remote
Resource stringId - Unique identifier of the remote storage resource.
- Remote
System stringId - Unique identifier of the remote system.
- Replication
Rule stringId - Associated replication rule instance ID.
- Resource
Type string - Type of the storage resource.
- Resource
Type stringL10n - Localized resource type string.
- Role string
- Role of the replication session.
- Role
L10n string - Localized role string.
- State string
- Current state of the replication session.
- State
L10n string - Localized state string.
- Type string
- Replication session type (e.g., MetroActiveActive).
- Type
L10n string - Localized type string.
- data_
transfer_ stringstate - Current data transfer state.
- failover_
test_ boolin_ progress - Whether a test failover is in progress.
- id string
- Unique identifier of the replication session.
- last_
sync_ numberduration - Elapsed time of the last synchronization in milliseconds.
- last_
sync_ stringtimestamp - Time of last successful synchronization.
- local_
resource_ stringid - Unique identifier of the local storage resource.
- progress_
percentage number - Progress of the current replication operation.
- remote_
resource_ stringid - Unique identifier of the remote storage resource.
- remote_
system_ stringid - Unique identifier of the remote system.
- replication_
rule_ stringid - Associated replication rule instance ID.
- resource_
type string - Type of the storage resource.
- resource_
type_ stringl10n - Localized resource type string.
- role string
- Role of the replication session.
- role_
l10n string - Localized role string.
- state string
- Current state of the replication session.
- state_
l10n string - Localized state string.
- type string
- Replication session type (e.g., MetroActiveActive).
- type_
l10n string - Localized type string.
- data
Transfer StringState - Current data transfer state.
- failover
Test BooleanIn Progress - Whether a test failover is in progress.
- id String
- Unique identifier of the replication session.
- last
Sync DoubleDuration - Elapsed time of the last synchronization in milliseconds.
- last
Sync StringTimestamp - Time of last successful synchronization.
- local
Resource StringId - Unique identifier of the local storage resource.
- progress
Percentage Double - Progress of the current replication operation.
- remote
Resource StringId - Unique identifier of the remote storage resource.
- remote
System StringId - Unique identifier of the remote system.
- replication
Rule StringId - Associated replication rule instance ID.
- resource
Type String - Type of the storage resource.
- resource
Type StringL10n - Localized resource type string.
- role String
- Role of the replication session.
- role
L10n String - Localized role string.
- state String
- Current state of the replication session.
- state
L10n String - Localized state string.
- type String
- Replication session type (e.g., MetroActiveActive).
- type
L10n String - Localized type string.
- data
Transfer stringState - Current data transfer state.
- failover
Test booleanIn Progress - Whether a test failover is in progress.
- id string
- Unique identifier of the replication session.
- last
Sync numberDuration - Elapsed time of the last synchronization in milliseconds.
- last
Sync stringTimestamp - Time of last successful synchronization.
- local
Resource stringId - Unique identifier of the local storage resource.
- progress
Percentage number - Progress of the current replication operation.
- remote
Resource stringId - Unique identifier of the remote storage resource.
- remote
System stringId - Unique identifier of the remote system.
- replication
Rule stringId - Associated replication rule instance ID.
- resource
Type string - Type of the storage resource.
- resource
Type stringL10n - Localized resource type string.
- role string
- Role of the replication session.
- role
L10n string - Localized role string.
- state string
- Current state of the replication session.
- state
L10n string - Localized state string.
- type string
- Replication session type (e.g., MetroActiveActive).
- type
L10n string - Localized type string.
- data_
transfer_ strstate - Current data transfer state.
- failover_
test_ boolin_ progress - Whether a test failover is in progress.
- id str
- Unique identifier of the replication session.
- last_
sync_ floatduration - Elapsed time of the last synchronization in milliseconds.
- last_
sync_ strtimestamp - Time of last successful synchronization.
- local_
resource_ strid - Unique identifier of the local storage resource.
- progress_
percentage float - Progress of the current replication operation.
- remote_
resource_ strid - Unique identifier of the remote storage resource.
- remote_
system_ strid - Unique identifier of the remote system.
- replication_
rule_ strid - Associated replication rule instance ID.
- resource_
type str - Type of the storage resource.
- resource_
type_ strl10n - Localized resource type string.
- role str
- Role of the replication session.
- role_
l10n str - Localized role string.
- state str
- Current state of the replication session.
- state_
l10n str - Localized state string.
- type str
- Replication session type (e.g., MetroActiveActive).
- type_
l10n str - Localized type string.
- data
Transfer StringState - Current data transfer state.
- failover
Test BooleanIn Progress - Whether a test failover is in progress.
- id String
- Unique identifier of the replication session.
- last
Sync NumberDuration - Elapsed time of the last synchronization in milliseconds.
- last
Sync StringTimestamp - Time of last successful synchronization.
- local
Resource StringId - Unique identifier of the local storage resource.
- progress
Percentage Number - Progress of the current replication operation.
- remote
Resource StringId - Unique identifier of the remote storage resource.
- remote
System StringId - Unique identifier of the remote system.
- replication
Rule StringId - Associated replication rule instance ID.
- resource
Type String - Type of the storage resource.
- resource
Type StringL10n - Localized resource type string.
- role String
- Role of the replication session.
- role
L10n String - Localized role string.
- state String
- Current state of the replication session.
- state
L10n String - Localized state string.
- type String
- Replication session type (e.g., MetroActiveActive).
- type
L10n String - Localized type string.
Package Details
- Repository
- powerstore dell/terraform-provider-powerstore
- License
- Notes
- This Pulumi package is based on the
powerstoreTerraform Provider.
Viewing docs for powerstore 1.3.0
published on Wednesday, Jun 24, 2026 by dell
published on Wednesday, Jun 24, 2026 by dell