1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FileStorage
  5. getReplication
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.FileStorage.getReplication

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

    This data source provides details about a specific Replication resource in Oracle Cloud Infrastructure File Storage service.

    Gets the specified replication’s information.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testReplication = oci.FileStorage.getReplication({
        replicationId: oci_file_storage_replication.test_replication.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_replication = oci.FileStorage.get_replication(replication_id=oci_file_storage_replication["test_replication"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/FileStorage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := FileStorage.GetReplication(ctx, &filestorage.GetReplicationArgs{
    			ReplicationId: oci_file_storage_replication.Test_replication.Id,
    		}, 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 testReplication = Oci.FileStorage.GetReplication.Invoke(new()
        {
            ReplicationId = oci_file_storage_replication.Test_replication.Id,
        });
    
    });
    
    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.GetReplicationArgs;
    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 testReplication = FileStorageFunctions.getReplication(GetReplicationArgs.builder()
                .replicationId(oci_file_storage_replication.test_replication().id())
                .build());
    
        }
    }
    
    variables:
      testReplication:
        fn::invoke:
          Function: oci:FileStorage:getReplication
          Arguments:
            replicationId: ${oci_file_storage_replication.test_replication.id}
    

    Using getReplication

    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 getReplication(args: GetReplicationArgs, opts?: InvokeOptions): Promise<GetReplicationResult>
    function getReplicationOutput(args: GetReplicationOutputArgs, opts?: InvokeOptions): Output<GetReplicationResult>
    def get_replication(replication_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetReplicationResult
    def get_replication_output(replication_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetReplicationResult]
    func GetReplication(ctx *Context, args *GetReplicationArgs, opts ...InvokeOption) (*GetReplicationResult, error)
    func GetReplicationOutput(ctx *Context, args *GetReplicationOutputArgs, opts ...InvokeOption) GetReplicationResultOutput

    > Note: This function is named GetReplication in the Go SDK.

    public static class GetReplication 
    {
        public static Task<GetReplicationResult> InvokeAsync(GetReplicationArgs args, InvokeOptions? opts = null)
        public static Output<GetReplicationResult> Invoke(GetReplicationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetReplicationResult> getReplication(GetReplicationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:FileStorage/getReplication:getReplication
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ReplicationId string
    The OCID of the replication.
    ReplicationId string
    The OCID of the replication.
    replicationId String
    The OCID of the replication.
    replicationId string
    The OCID of the replication.
    replication_id str
    The OCID of the replication.
    replicationId String
    The OCID of the replication.

    getReplication Result

    The following output properties are available:

    AvailabilityDomain string
    The availability domain the replication is in. The replication must be in the same availability domain as the source file system. Example: Uocm:PHX-AD-1
    CompartmentId string
    The OCID of the compartment that contains the replication.
    DefinedTags Dictionary<string, object>
    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. Avoid entering confidential information. Example: My replication
    FreeformTags Dictionary<string, object>
    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
    The OCID of the replication.
    LastSnapshotId string
    The OCID of the last snapshot that has been replicated completely. Empty if the copy of the initial snapshot is not complete.
    LifecycleDetails string
    Additional information about the current 'lifecycleState'.
    RecoveryPointTime string
    The snapshotTime of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example: 2021-04-04T20:01:29.100Z
    ReplicationId string
    ReplicationInterval string
    Duration in minutes between replication snapshots.
    ReplicationTargetId string
    The OCID of the ReplicationTarget.
    SourceId string
    The OCID of the source file system.
    State string
    The current state of this replication. This resource can be in a FAILED state if replication target is deleted instead of the replication resource.
    TargetId string
    The OCID of the target file system.
    TimeCreated string
    The date and time the replication was created in RFC 3339 timestamp format. Example: 2021-01-04T20:01:29.100Z
    AvailabilityDomain string
    The availability domain the replication is in. The replication must be in the same availability domain as the source file system. Example: Uocm:PHX-AD-1
    CompartmentId string
    The OCID of the compartment that contains the replication.
    DefinedTags map[string]interface{}
    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. Avoid entering confidential information. Example: My replication
    FreeformTags map[string]interface{}
    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
    The OCID of the replication.
    LastSnapshotId string
    The OCID of the last snapshot that has been replicated completely. Empty if the copy of the initial snapshot is not complete.
    LifecycleDetails string
    Additional information about the current 'lifecycleState'.
    RecoveryPointTime string
    The snapshotTime of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example: 2021-04-04T20:01:29.100Z
    ReplicationId string
    ReplicationInterval string
    Duration in minutes between replication snapshots.
    ReplicationTargetId string
    The OCID of the ReplicationTarget.
    SourceId string
    The OCID of the source file system.
    State string
    The current state of this replication. This resource can be in a FAILED state if replication target is deleted instead of the replication resource.
    TargetId string
    The OCID of the target file system.
    TimeCreated string
    The date and time the replication was created in RFC 3339 timestamp format. Example: 2021-01-04T20:01:29.100Z
    availabilityDomain String
    The availability domain the replication is in. The replication must be in the same availability domain as the source file system. Example: Uocm:PHX-AD-1
    compartmentId String
    The OCID of the compartment that contains the replication.
    definedTags Map<String,Object>
    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. Avoid entering confidential information. Example: My replication
    freeformTags Map<String,Object>
    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
    The OCID of the replication.
    lastSnapshotId String
    The OCID of the last snapshot that has been replicated completely. Empty if the copy of the initial snapshot is not complete.
    lifecycleDetails String
    Additional information about the current 'lifecycleState'.
    recoveryPointTime String
    The snapshotTime of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example: 2021-04-04T20:01:29.100Z
    replicationId String
    replicationInterval String
    Duration in minutes between replication snapshots.
    replicationTargetId String
    The OCID of the ReplicationTarget.
    sourceId String
    The OCID of the source file system.
    state String
    The current state of this replication. This resource can be in a FAILED state if replication target is deleted instead of the replication resource.
    targetId String
    The OCID of the target file system.
    timeCreated String
    The date and time the replication was created in RFC 3339 timestamp format. Example: 2021-01-04T20:01:29.100Z
    availabilityDomain string
    The availability domain the replication is in. The replication must be in the same availability domain as the source file system. Example: Uocm:PHX-AD-1
    compartmentId string
    The OCID of the compartment that contains the replication.
    definedTags {[key: string]: any}
    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. Avoid entering confidential information. Example: My replication
    freeformTags {[key: string]: any}
    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
    The OCID of the replication.
    lastSnapshotId string
    The OCID of the last snapshot that has been replicated completely. Empty if the copy of the initial snapshot is not complete.
    lifecycleDetails string
    Additional information about the current 'lifecycleState'.
    recoveryPointTime string
    The snapshotTime of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example: 2021-04-04T20:01:29.100Z
    replicationId string
    replicationInterval string
    Duration in minutes between replication snapshots.
    replicationTargetId string
    The OCID of the ReplicationTarget.
    sourceId string
    The OCID of the source file system.
    state string
    The current state of this replication. This resource can be in a FAILED state if replication target is deleted instead of the replication resource.
    targetId string
    The OCID of the target file system.
    timeCreated string
    The date and time the replication was created in RFC 3339 timestamp format. Example: 2021-01-04T20:01:29.100Z
    availability_domain str
    The availability domain the replication is in. The replication must be in the same availability domain as the source file system. Example: Uocm:PHX-AD-1
    compartment_id str
    The OCID of the compartment that contains the replication.
    defined_tags Mapping[str, Any]
    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. Avoid entering confidential information. Example: My replication
    freeform_tags Mapping[str, Any]
    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
    The OCID of the replication.
    last_snapshot_id str
    The OCID of the last snapshot that has been replicated completely. Empty if the copy of the initial snapshot is not complete.
    lifecycle_details str
    Additional information about the current 'lifecycleState'.
    recovery_point_time str
    The snapshotTime of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example: 2021-04-04T20:01:29.100Z
    replication_id str
    replication_interval str
    Duration in minutes between replication snapshots.
    replication_target_id str
    The OCID of the ReplicationTarget.
    source_id str
    The OCID of the source file system.
    state str
    The current state of this replication. This resource can be in a FAILED state if replication target is deleted instead of the replication resource.
    target_id str
    The OCID of the target file system.
    time_created str
    The date and time the replication was created in RFC 3339 timestamp format. Example: 2021-01-04T20:01:29.100Z
    availabilityDomain String
    The availability domain the replication is in. The replication must be in the same availability domain as the source file system. Example: Uocm:PHX-AD-1
    compartmentId String
    The OCID of the compartment that contains the replication.
    definedTags Map<Any>
    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. Avoid entering confidential information. Example: My replication
    freeformTags Map<Any>
    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
    The OCID of the replication.
    lastSnapshotId String
    The OCID of the last snapshot that has been replicated completely. Empty if the copy of the initial snapshot is not complete.
    lifecycleDetails String
    Additional information about the current 'lifecycleState'.
    recoveryPointTime String
    The snapshotTime of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example: 2021-04-04T20:01:29.100Z
    replicationId String
    replicationInterval String
    Duration in minutes between replication snapshots.
    replicationTargetId String
    The OCID of the ReplicationTarget.
    sourceId String
    The OCID of the source file system.
    state String
    The current state of this replication. This resource can be in a FAILED state if replication target is deleted instead of the replication resource.
    targetId String
    The OCID of the target file system.
    timeCreated String
    The date and time the replication was created 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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi