Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.FileStorage.getReplication
Explore with Pulumi AI
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: testReplicationOciFileStorageReplication.id,
});
import pulumi
import pulumi_oci as oci
test_replication = oci.FileStorage.get_replication(replication_id=test_replication_oci_file_storage_replication["id"])
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.GetReplication(ctx, &filestorage.GetReplicationArgs{
ReplicationId: testReplicationOciFileStorageReplication.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 = testReplicationOciFileStorageReplication.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(testReplicationOciFileStorageReplication.id())
.build());
}
}
variables:
testReplication:
fn::invoke:
Function: oci:FileStorage:getReplication
Arguments:
replicationId: ${testReplicationOciFileStorageReplication.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:
- Replication
Id string - The OCID of the replication.
- Replication
Id string - The OCID of the replication.
- replication
Id String - The OCID of the replication.
- replication
Id string - The OCID of the replication.
- replication_
id str - The OCID of the replication.
- replication
Id String - The OCID of the replication.
getReplication Result
The following output properties are available:
- Availability
Domain 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
- Compartment
Id string - The OCID of the compartment that contains the replication.
- 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"}
- Delta
Progress string - Percentage progress of the current replication cycle.
- Delta
Status string - The current state of the snapshot during replication operations.
- Display
Name string - A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example:
My replication
- 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
- The OCID of the replication.
- Is
Lock boolOverride - Last
Snapshot stringId - The OCID of the last snapshot that has been replicated completely. Empty if the copy of the initial snapshot is not complete.
- Lifecycle
Details string - Additional information about the current 'lifecycleState'.
- Locks
List<Get
Replication Lock> - Locks associated with this resource.
- Recovery
Point stringTime - The
snapshotTime
of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example:2021-04-04T20:01:29.100Z
- Replication
Id string - Replication
Interval string - Duration in minutes between replication snapshots.
- Replication
Target stringId - The OCID of the
ReplicationTarget
. - Source
Id 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. - Target
Id string - The OCID of the target file system.
- Time
Created string - The date and time the replication was created in RFC 3339 timestamp format. Example:
2021-01-04T20:01:29.100Z
- Availability
Domain 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
- Compartment
Id string - The OCID of the compartment that contains the replication.
- 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"}
- Delta
Progress string - Percentage progress of the current replication cycle.
- Delta
Status string - The current state of the snapshot during replication operations.
- Display
Name string - A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example:
My replication
- 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
- The OCID of the replication.
- Is
Lock boolOverride - Last
Snapshot stringId - The OCID of the last snapshot that has been replicated completely. Empty if the copy of the initial snapshot is not complete.
- Lifecycle
Details string - Additional information about the current 'lifecycleState'.
- Locks
[]Get
Replication Lock - Locks associated with this resource.
- Recovery
Point stringTime - The
snapshotTime
of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example:2021-04-04T20:01:29.100Z
- Replication
Id string - Replication
Interval string - Duration in minutes between replication snapshots.
- Replication
Target stringId - The OCID of the
ReplicationTarget
. - Source
Id 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. - Target
Id string - The OCID of the target file system.
- Time
Created string - The date and time the replication was created in RFC 3339 timestamp format. Example:
2021-01-04T20:01:29.100Z
- availability
Domain 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
- compartment
Id String - The OCID of the compartment that contains the replication.
- 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"}
- delta
Progress String - Percentage progress of the current replication cycle.
- delta
Status String - The current state of the snapshot during replication operations.
- display
Name String - A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example:
My replication
- 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
- The OCID of the replication.
- is
Lock BooleanOverride - last
Snapshot StringId - The OCID of the last snapshot that has been replicated completely. Empty if the copy of the initial snapshot is not complete.
- lifecycle
Details String - Additional information about the current 'lifecycleState'.
- locks
List<Get
Replication Lock> - Locks associated with this resource.
- recovery
Point StringTime - The
snapshotTime
of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example:2021-04-04T20:01:29.100Z
- replication
Id String - replication
Interval String - Duration in minutes between replication snapshots.
- replication
Target StringId - The OCID of the
ReplicationTarget
. - source
Id 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. - target
Id String - The OCID of the target file system.
- time
Created String - The date and time the replication was created in RFC 3339 timestamp format. Example:
2021-01-04T20:01:29.100Z
- availability
Domain 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
- compartment
Id string - The OCID of the compartment that contains the replication.
- {[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"}
- delta
Progress string - Percentage progress of the current replication cycle.
- delta
Status string - The current state of the snapshot during replication operations.
- display
Name string - A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example:
My replication
- {[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
- The OCID of the replication.
- is
Lock booleanOverride - last
Snapshot stringId - The OCID of the last snapshot that has been replicated completely. Empty if the copy of the initial snapshot is not complete.
- lifecycle
Details string - Additional information about the current 'lifecycleState'.
- locks
Get
Replication Lock[] - Locks associated with this resource.
- recovery
Point stringTime - The
snapshotTime
of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example:2021-04-04T20:01:29.100Z
- replication
Id string - replication
Interval string - Duration in minutes between replication snapshots.
- replication
Target stringId - The OCID of the
ReplicationTarget
. - source
Id 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. - target
Id string - The OCID of the target file system.
- time
Created 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.
- 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. Avoid entering confidential information. Example:
My replication
- 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
- The OCID of the replication.
- is_
lock_ booloverride - last_
snapshot_ strid - 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'.
- locks
Sequence[filestorage.
Get Replication Lock] - Locks associated with this resource.
- 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 - replication_
interval str - Duration in minutes between replication snapshots.
- replication_
target_ strid - 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
- availability
Domain 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
- compartment
Id String - The OCID of the compartment that contains the replication.
- 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"}
- delta
Progress String - Percentage progress of the current replication cycle.
- delta
Status String - The current state of the snapshot during replication operations.
- display
Name String - A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example:
My replication
- 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
- The OCID of the replication.
- is
Lock BooleanOverride - last
Snapshot StringId - The OCID of the last snapshot that has been replicated completely. Empty if the copy of the initial snapshot is not complete.
- lifecycle
Details String - Additional information about the current 'lifecycleState'.
- locks List<Property Map>
- Locks associated with this resource.
- recovery
Point StringTime - The
snapshotTime
of the most recent recoverable replication snapshot in RFC 3339 timestamp format. Example:2021-04-04T20:01:29.100Z
- replication
Id String - replication
Interval String - Duration in minutes between replication snapshots.
- replication
Target StringId - The OCID of the
ReplicationTarget
. - source
Id 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. - target
Id String - The OCID of the target file system.
- time
Created String - The date and time the replication was created in RFC 3339 timestamp format. Example:
2021-01-04T20:01:29.100Z
Supporting Types
GetReplicationLock
- Message string
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- string
- The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- Time
Created string - The date and time the replication was created in RFC 3339 timestamp format. Example:
2021-01-04T20:01:29.100Z
- Type string
- Type of the lock.
- Message string
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- string
- The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- Time
Created string - The date and time the replication was created in RFC 3339 timestamp format. Example:
2021-01-04T20:01:29.100Z
- Type string
- Type of the lock.
- message String
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- String
- The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- time
Created String - The date and time the replication was created in RFC 3339 timestamp format. Example:
2021-01-04T20:01:29.100Z
- type String
- Type of the lock.
- message string
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- string
- The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- time
Created string - The date and time the replication was created in RFC 3339 timestamp format. Example:
2021-01-04T20:01:29.100Z
- type string
- Type of the lock.
- message str
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- str
- The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- time_
created str - The date and time the replication was created in RFC 3339 timestamp format. Example:
2021-01-04T20:01:29.100Z
- type str
- Type of the lock.
- message String
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- String
- The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- time
Created String - The date and time the replication was created in RFC 3339 timestamp format. Example:
2021-01-04T20:01:29.100Z
- type String
- Type of the lock.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.