Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.FileStorage.getReplicationTargets
Explore with Pulumi AI
This data source provides the list of Replication Targets in Oracle Cloud Infrastructure File Storage service.
Lists the replication target resources in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testReplicationTargets = oci.FileStorage.getReplicationTargets({
    availabilityDomain: replicationTargetAvailabilityDomain,
    compartmentId: compartmentId,
    displayName: replicationTargetDisplayName,
    id: replicationTargetId,
    state: replicationTargetState,
});
import pulumi
import pulumi_oci as oci
test_replication_targets = oci.FileStorage.get_replication_targets(availability_domain=replication_target_availability_domain,
    compartment_id=compartment_id,
    display_name=replication_target_display_name,
    id=replication_target_id,
    state=replication_target_state)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/filestorage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := filestorage.GetReplicationTargets(ctx, &filestorage.GetReplicationTargetsArgs{
			AvailabilityDomain: replicationTargetAvailabilityDomain,
			CompartmentId:      compartmentId,
			DisplayName:        pulumi.StringRef(replicationTargetDisplayName),
			Id:                 pulumi.StringRef(replicationTargetId),
			State:              pulumi.StringRef(replicationTargetState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testReplicationTargets = Oci.FileStorage.GetReplicationTargets.Invoke(new()
    {
        AvailabilityDomain = replicationTargetAvailabilityDomain,
        CompartmentId = compartmentId,
        DisplayName = replicationTargetDisplayName,
        Id = replicationTargetId,
        State = replicationTargetState,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FileStorage.FileStorageFunctions;
import com.pulumi.oci.FileStorage.inputs.GetReplicationTargetsArgs;
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) {
        final var testReplicationTargets = FileStorageFunctions.getReplicationTargets(GetReplicationTargetsArgs.builder()
            .availabilityDomain(replicationTargetAvailabilityDomain)
            .compartmentId(compartmentId)
            .displayName(replicationTargetDisplayName)
            .id(replicationTargetId)
            .state(replicationTargetState)
            .build());
    }
}
variables:
  testReplicationTargets:
    fn::invoke:
      function: oci:FileStorage:getReplicationTargets
      arguments:
        availabilityDomain: ${replicationTargetAvailabilityDomain}
        compartmentId: ${compartmentId}
        displayName: ${replicationTargetDisplayName}
        id: ${replicationTargetId}
        state: ${replicationTargetState}
Using getReplicationTargets
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 getReplicationTargets(args: GetReplicationTargetsArgs, opts?: InvokeOptions): Promise<GetReplicationTargetsResult>
function getReplicationTargetsOutput(args: GetReplicationTargetsOutputArgs, opts?: InvokeOptions): Output<GetReplicationTargetsResult>def get_replication_targets(availability_domain: Optional[str] = None,
                            compartment_id: Optional[str] = None,
                            display_name: Optional[str] = None,
                            filters: Optional[Sequence[GetReplicationTargetsFilter]] = None,
                            id: Optional[str] = None,
                            state: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetReplicationTargetsResult
def get_replication_targets_output(availability_domain: Optional[pulumi.Input[str]] = None,
                            compartment_id: Optional[pulumi.Input[str]] = None,
                            display_name: Optional[pulumi.Input[str]] = None,
                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetReplicationTargetsFilterArgs]]]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            state: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetReplicationTargetsResult]func GetReplicationTargets(ctx *Context, args *GetReplicationTargetsArgs, opts ...InvokeOption) (*GetReplicationTargetsResult, error)
func GetReplicationTargetsOutput(ctx *Context, args *GetReplicationTargetsOutputArgs, opts ...InvokeOption) GetReplicationTargetsResultOutput> Note: This function is named GetReplicationTargets in the Go SDK.
public static class GetReplicationTargets 
{
    public static Task<GetReplicationTargetsResult> InvokeAsync(GetReplicationTargetsArgs args, InvokeOptions? opts = null)
    public static Output<GetReplicationTargetsResult> Invoke(GetReplicationTargetsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetReplicationTargetsResult> getReplicationTargets(GetReplicationTargetsArgs args, InvokeOptions options)
public static Output<GetReplicationTargetsResult> getReplicationTargets(GetReplicationTargetsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:FileStorage/getReplicationTargets:getReplicationTargets
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- CompartmentId string
- The OCID of the compartment.
- DisplayName string
- A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource
- Filters
List<GetReplication Targets Filter> 
- Id string
- Filter results by OCID. Must be an OCID of the correct type for the resouce type.
- State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- CompartmentId string
- The OCID of the compartment.
- DisplayName string
- A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource
- Filters
[]GetReplication Targets Filter 
- Id string
- Filter results by OCID. Must be an OCID of the correct type for the resouce type.
- State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartmentId String
- The OCID of the compartment.
- displayName String
- A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource
- filters
List<GetReplication Targets Filter> 
- id String
- Filter results by OCID. Must be an OCID of the correct type for the resouce type.
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- availabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartmentId string
- The OCID of the compartment.
- displayName string
- A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource
- filters
GetReplication Targets Filter[] 
- id string
- Filter results by OCID. Must be an OCID of the correct type for the resouce type.
- state string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- availability_domain str
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartment_id str
- The OCID of the compartment.
- display_name str
- A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource
- filters
Sequence[GetReplication Targets Filter] 
- id str
- Filter results by OCID. Must be an OCID of the correct type for the resouce type.
- state str
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartmentId String
- The OCID of the compartment.
- displayName String
- A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource
- filters List<Property Map>
- id String
- Filter results by OCID. Must be an OCID of the correct type for the resouce type.
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
getReplicationTargets Result
The following output properties are available:
- AvailabilityDomain string
- The availability domain the replication target is in. Must be in the same availability domain as the target file system. Example: Uocm:PHX-AD-1
- CompartmentId string
- The OCID of the compartment that contains the replication.
- ReplicationTargets List<GetReplication Targets Replication Target> 
- The list of replication_targets.
- DisplayName string
- A user-friendly name. This name is same as the replication display name for the associated resource. Example: My Replication
- Filters
List<GetReplication Targets Filter> 
- Id string
- The OCID of the replication target.
- State string
- The current state of this replication.
- AvailabilityDomain string
- The availability domain the replication target is in. Must be in the same availability domain as the target file system. Example: Uocm:PHX-AD-1
- CompartmentId string
- The OCID of the compartment that contains the replication.
- ReplicationTargets []GetReplication Targets Replication Target 
- The list of replication_targets.
- DisplayName string
- A user-friendly name. This name is same as the replication display name for the associated resource. Example: My Replication
- Filters
[]GetReplication Targets Filter 
- Id string
- The OCID of the replication target.
- State string
- The current state of this replication.
- availabilityDomain String
- The availability domain the replication target is in. Must be in the same availability domain as the target file system. Example: Uocm:PHX-AD-1
- compartmentId String
- The OCID of the compartment that contains the replication.
- replicationTargets List<GetReplication Targets Replication Target> 
- The list of replication_targets.
- displayName String
- A user-friendly name. This name is same as the replication display name for the associated resource. Example: My Replication
- filters
List<GetReplication Targets Filter> 
- id String
- The OCID of the replication target.
- state String
- The current state of this replication.
- availabilityDomain string
- The availability domain the replication target is in. Must be in the same availability domain as the target file system. Example: Uocm:PHX-AD-1
- compartmentId string
- The OCID of the compartment that contains the replication.
- replicationTargets GetReplication Targets Replication Target[] 
- The list of replication_targets.
- displayName string
- A user-friendly name. This name is same as the replication display name for the associated resource. Example: My Replication
- filters
GetReplication Targets Filter[] 
- id string
- The OCID of the replication target.
- state string
- The current state of this replication.
- availability_domain str
- The availability domain the replication target is in. Must be in the same availability domain as the target file system. Example: Uocm:PHX-AD-1
- compartment_id str
- The OCID of the compartment that contains the replication.
- replication_targets Sequence[GetReplication Targets Replication Target] 
- The list of replication_targets.
- display_name str
- A user-friendly name. This name is same as the replication display name for the associated resource. Example: My Replication
- filters
Sequence[GetReplication Targets Filter] 
- id str
- The OCID of the replication target.
- state str
- The current state of this replication.
- availabilityDomain String
- The availability domain the replication target is in. Must be in the same availability domain as the target file system. Example: Uocm:PHX-AD-1
- compartmentId String
- The OCID of the compartment that contains the replication.
- replicationTargets List<Property Map>
- The list of replication_targets.
- displayName String
- A user-friendly name. This name is same as the replication display name for the associated resource. Example: My Replication
- filters List<Property Map>
- id String
- The OCID of the replication target.
- state String
- The current state of this replication.
Supporting Types
GetReplicationTargetsFilter   
GetReplicationTargetsReplicationTarget    
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- CompartmentId string
- The OCID of the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DeltaProgress string
- Percentage progress of the current replication cycle.
- DeltaStatus string
- The current state of the snapshot during replication operations.
- DisplayName string
- A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- Filter results by OCID. Must be an OCID of the correct type for the resouce type.
- LastSnapshot stringId 
- The OCID of the last snapshot snapshot which was completely applied to the target file system. Empty while the initial snapshot is being applied.
- LifecycleDetails string
- Additional information about the current lifecycleState.
- RecoveryPoint stringTime 
- The snapshotTime of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example: 2021-04-04T20:01:29.100Z
- ReplicationId string
- The OCID of replication.
- SourceId string
- The OCID of source filesystem.
- State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Dictionary<string, string>
- System tags for this resource. System tags are applied to resources by internal Oracle Cloud Infrastructure services.
- TargetId string
- The OCID of target filesystem.
- TimeCreated string
- The date and time the replication target was created in target region. in RFC 3339 timestamp format. Example: 2021-01-04T20:01:29.100Z
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- CompartmentId string
- The OCID of the compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DeltaProgress string
- Percentage progress of the current replication cycle.
- DeltaStatus string
- The current state of the snapshot during replication operations.
- DisplayName string
- A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- Filter results by OCID. Must be an OCID of the correct type for the resouce type.
- LastSnapshot stringId 
- The OCID of the last snapshot snapshot which was completely applied to the target file system. Empty while the initial snapshot is being applied.
- LifecycleDetails string
- Additional information about the current lifecycleState.
- RecoveryPoint stringTime 
- The snapshotTime of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example: 2021-04-04T20:01:29.100Z
- ReplicationId string
- The OCID of replication.
- SourceId string
- The OCID of source filesystem.
- State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- map[string]string
- System tags for this resource. System tags are applied to resources by internal Oracle Cloud Infrastructure services.
- TargetId string
- The OCID of target filesystem.
- TimeCreated string
- The date and time the replication target was created in target region. in RFC 3339 timestamp format. Example: 2021-01-04T20:01:29.100Z
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartmentId String
- The OCID of the compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- deltaProgress String
- Percentage progress of the current replication cycle.
- deltaStatus String
- The current state of the snapshot during replication operations.
- displayName String
- A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- Filter results by OCID. Must be an OCID of the correct type for the resouce type.
- lastSnapshot StringId 
- The OCID of the last snapshot snapshot which was completely applied to the target file system. Empty while the initial snapshot is being applied.
- lifecycleDetails String
- Additional information about the current lifecycleState.
- recoveryPoint StringTime 
- The snapshotTime of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example: 2021-04-04T20:01:29.100Z
- replicationId String
- The OCID of replication.
- sourceId String
- The OCID of source filesystem.
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Map<String,String>
- System tags for this resource. System tags are applied to resources by internal Oracle Cloud Infrastructure services.
- targetId String
- The OCID of target filesystem.
- timeCreated String
- The date and time the replication target was created in target region. in RFC 3339 timestamp format. Example: 2021-01-04T20:01:29.100Z
- availabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartmentId string
- The OCID of the compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- deltaProgress string
- Percentage progress of the current replication cycle.
- deltaStatus string
- The current state of the snapshot during replication operations.
- displayName string
- A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id string
- Filter results by OCID. Must be an OCID of the correct type for the resouce type.
- lastSnapshot stringId 
- The OCID of the last snapshot snapshot which was completely applied to the target file system. Empty while the initial snapshot is being applied.
- lifecycleDetails string
- Additional information about the current lifecycleState.
- recoveryPoint stringTime 
- The snapshotTime of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example: 2021-04-04T20:01:29.100Z
- replicationId string
- The OCID of replication.
- sourceId string
- The OCID of source filesystem.
- state string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- {[key: string]: string}
- System tags for this resource. System tags are applied to resources by internal Oracle Cloud Infrastructure services.
- targetId string
- The OCID of target filesystem.
- timeCreated string
- The date and time the replication target was created in target region. in RFC 3339 timestamp format. Example: 2021-01-04T20:01:29.100Z
- availability_domain str
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartment_id str
- The OCID of the compartment.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- delta_progress str
- Percentage progress of the current replication cycle.
- delta_status str
- The current state of the snapshot during replication operations.
- display_name str
- A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id str
- Filter results by OCID. Must be an OCID of the correct type for the resouce type.
- last_snapshot_ strid 
- The OCID of the last snapshot snapshot which was completely applied to the target file system. Empty while the initial snapshot is being applied.
- lifecycle_details str
- Additional information about the current lifecycleState.
- recovery_point_ strtime 
- The snapshotTime of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example: 2021-04-04T20:01:29.100Z
- replication_id str
- The OCID of replication.
- source_id str
- The OCID of source filesystem.
- state str
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Mapping[str, str]
- System tags for this resource. System tags are applied to resources by internal Oracle Cloud Infrastructure services.
- target_id str
- The OCID of target filesystem.
- time_created str
- The date and time the replication target was created in target region. in RFC 3339 timestamp format. Example: 2021-01-04T20:01:29.100Z
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartmentId String
- The OCID of the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- deltaProgress String
- Percentage progress of the current replication cycle.
- deltaStatus String
- The current state of the snapshot during replication operations.
- displayName String
- A user-friendly name. It does not have to be unique, and it is changeable. Example: My resource
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- Filter results by OCID. Must be an OCID of the correct type for the resouce type.
- lastSnapshot StringId 
- The OCID of the last snapshot snapshot which was completely applied to the target file system. Empty while the initial snapshot is being applied.
- lifecycleDetails String
- Additional information about the current lifecycleState.
- recoveryPoint StringTime 
- The snapshotTime of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example: 2021-04-04T20:01:29.100Z
- replicationId String
- The OCID of replication.
- sourceId String
- The OCID of source filesystem.
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Map<String>
- System tags for this resource. System tags are applied to resources by internal Oracle Cloud Infrastructure services.
- targetId String
- The OCID of target filesystem.
- timeCreated String
- The date and time the replication target was created in target region. in RFC 3339 timestamp format. Example: 2021-01-04T20:01:29.100Z
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.