Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.FileStorage.getReplicationTarget
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Replication Target resource in Oracle Cloud Infrastructure File Storage service.
Gets the specified replication target’s information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testReplicationTarget = oci.FileStorage.getReplicationTarget({
replicationTargetId: testReplicationTargetOciFileStorageReplicationTarget.id,
});
import pulumi
import pulumi_oci as oci
test_replication_target = oci.FileStorage.get_replication_target(replication_target_id=test_replication_target_oci_file_storage_replication_target["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.GetReplicationTarget(ctx, &filestorage.GetReplicationTargetArgs{
ReplicationTargetId: testReplicationTargetOciFileStorageReplicationTarget.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 testReplicationTarget = Oci.FileStorage.GetReplicationTarget.Invoke(new()
{
ReplicationTargetId = testReplicationTargetOciFileStorageReplicationTarget.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.GetReplicationTargetArgs;
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 testReplicationTarget = FileStorageFunctions.getReplicationTarget(GetReplicationTargetArgs.builder()
.replicationTargetId(testReplicationTargetOciFileStorageReplicationTarget.id())
.build());
}
}
variables:
testReplicationTarget:
fn::invoke:
Function: oci:FileStorage:getReplicationTarget
Arguments:
replicationTargetId: ${testReplicationTargetOciFileStorageReplicationTarget.id}
Using getReplicationTarget
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 getReplicationTarget(args: GetReplicationTargetArgs, opts?: InvokeOptions): Promise<GetReplicationTargetResult>
function getReplicationTargetOutput(args: GetReplicationTargetOutputArgs, opts?: InvokeOptions): Output<GetReplicationTargetResult>
def get_replication_target(replication_target_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetReplicationTargetResult
def get_replication_target_output(replication_target_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetReplicationTargetResult]
func GetReplicationTarget(ctx *Context, args *GetReplicationTargetArgs, opts ...InvokeOption) (*GetReplicationTargetResult, error)
func GetReplicationTargetOutput(ctx *Context, args *GetReplicationTargetOutputArgs, opts ...InvokeOption) GetReplicationTargetResultOutput
> Note: This function is named GetReplicationTarget
in the Go SDK.
public static class GetReplicationTarget
{
public static Task<GetReplicationTargetResult> InvokeAsync(GetReplicationTargetArgs args, InvokeOptions? opts = null)
public static Output<GetReplicationTargetResult> Invoke(GetReplicationTargetInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetReplicationTargetResult> getReplicationTarget(GetReplicationTargetArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:FileStorage/getReplicationTarget:getReplicationTarget
arguments:
# arguments dictionary
The following arguments are supported:
- Replication
Target stringId - The OCID of the replication target.
- Replication
Target stringId - The OCID of the replication target.
- replication
Target StringId - The OCID of the replication target.
- replication
Target stringId - The OCID of the replication target.
- replication_
target_ strid - The OCID of the replication target.
- replication
Target StringId - The OCID of the replication target.
getReplicationTarget Result
The following output properties are available:
- Availability
Domain 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
- Compartment
Id string - The OCID of the compartment that contains the replication.
- 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"}
- 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. This name is same as the replication display name for the associated resource. Example:
My Replication
- 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 provider-assigned unique ID for this managed resource.
- Last
Snapshot 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.
- Lifecycle
Details string - Additional information about the current
lifecycleState
. - 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 - The OCID of replication.
- Replication
Target stringId - Source
Id string - The OCID of source filesystem.
- State string
- The current state of this replication.
- Target
Id string - The OCID of target filesystem.
- Time
Created 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 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
- Compartment
Id string - The OCID of the compartment that contains the replication.
- 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"}
- 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. This name is same as the replication display name for the associated resource. Example:
My Replication
- 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 provider-assigned unique ID for this managed resource.
- Last
Snapshot 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.
- Lifecycle
Details string - Additional information about the current
lifecycleState
. - 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 - The OCID of replication.
- Replication
Target stringId - Source
Id string - The OCID of source filesystem.
- State string
- The current state of this replication.
- Target
Id string - The OCID of target filesystem.
- Time
Created 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 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
- compartment
Id String - The OCID of the compartment that contains the replication.
- 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"}
- 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. This name is same as the replication display name for the associated resource. Example:
My Replication
- 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 provider-assigned unique ID for this managed resource.
- last
Snapshot 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.
- lifecycle
Details String - Additional information about the current
lifecycleState
. - 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 - The OCID of replication.
- replication
Target StringId - source
Id String - The OCID of source filesystem.
- state String
- The current state of this replication.
- target
Id String - The OCID of target filesystem.
- time
Created 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 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
- compartment
Id string - The OCID of the compartment that contains the replication.
- {[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"}
- 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. This name is same as the replication display name for the associated resource. Example:
My Replication
- {[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 provider-assigned unique ID for this managed resource.
- last
Snapshot 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.
- lifecycle
Details string - Additional information about the current
lifecycleState
. - 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 - The OCID of replication.
- replication
Target stringId - source
Id string - The OCID of source filesystem.
- state string
- The current state of this replication.
- target
Id string - The OCID of target filesystem.
- time
Created 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 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.
- 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. This name is same as the replication display name for the associated resource. Example:
My Replication
- 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 provider-assigned unique ID for this managed resource.
- 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.
- replication_
target_ strid - source_
id str - The OCID of source filesystem.
- state str
- The current state of this replication.
- 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
- availability
Domain 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
- compartment
Id String - The OCID of the compartment that contains the replication.
- 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"}
- 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. This name is same as the replication display name for the associated resource. Example:
My Replication
- 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 provider-assigned unique ID for this managed resource.
- last
Snapshot 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.
- lifecycle
Details String - Additional information about the current
lifecycleState
. - 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 - The OCID of replication.
- replication
Target StringId - source
Id String - The OCID of source filesystem.
- state String
- The current state of this replication.
- target
Id String - The OCID of target filesystem.
- time
Created 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
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi