Oracle Cloud Infrastructure
getReplicationPolicy
This data source provides details about a specific Replication Policy resource in Oracle Cloud Infrastructure Object Storage service.
Get the replication policy.
Example Usage
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testReplicationPolicy = Output.Create(Oci.ObjectStorage.GetReplicationPolicy.InvokeAsync(new Oci.ObjectStorage.GetReplicationPolicyArgs
{
Bucket = @var.Replication_policy_bucket,
Namespace = @var.Replication_policy_namespace,
ReplicationId = oci_objectstorage_replication.Test_replication.Id,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/ObjectStorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ObjectStorage.GetReplicationPolicy(ctx, &objectstorage.GetReplicationPolicyArgs{
Bucket: _var.Replication_policy_bucket,
Namespace: _var.Replication_policy_namespace,
ReplicationId: oci_objectstorage_replication.Test_replication.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_replication_policy = oci.ObjectStorage.get_replication_policy(bucket=var["replication_policy_bucket"],
namespace=var["replication_policy_namespace"],
replication_id=oci_objectstorage_replication["test_replication"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testReplicationPolicy = oci.ObjectStorage.getReplicationPolicy({
bucket: _var.replication_policy_bucket,
namespace: _var.replication_policy_namespace,
replicationId: oci_objectstorage_replication.test_replication.id,
});
Coming soon!
Using getReplicationPolicy
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 getReplicationPolicy(args: GetReplicationPolicyArgs, opts?: InvokeOptions): Promise<GetReplicationPolicyResult>
function getReplicationPolicyOutput(args: GetReplicationPolicyOutputArgs, opts?: InvokeOptions): Output<GetReplicationPolicyResult>
def get_replication_policy(bucket: Optional[str] = None,
namespace: Optional[str] = None,
replication_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetReplicationPolicyResult
def get_replication_policy_output(bucket: Optional[pulumi.Input[str]] = None,
namespace: Optional[pulumi.Input[str]] = None,
replication_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetReplicationPolicyResult]
func GetReplicationPolicy(ctx *Context, args *GetReplicationPolicyArgs, opts ...InvokeOption) (*GetReplicationPolicyResult, error)
func GetReplicationPolicyOutput(ctx *Context, args *GetReplicationPolicyOutputArgs, opts ...InvokeOption) GetReplicationPolicyResultOutput
> Note: This function is named GetReplicationPolicy
in the Go SDK.
public static class GetReplicationPolicy
{
public static Task<GetReplicationPolicyResult> InvokeAsync(GetReplicationPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetReplicationPolicyResult> Invoke(GetReplicationPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetReplicationPolicyResult> getReplicationPolicy(GetReplicationPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: oci:ObjectStorage/getReplicationPolicy:getReplicationPolicy
Arguments:
# Arguments dictionary
The following arguments are supported:
- Bucket string
The name of the bucket. Avoid entering confidential information. Example:
my-new-bucket1
- Namespace string
The Object Storage namespace used for the request.
- Replication
Id string The ID of the replication policy.
- Bucket string
The name of the bucket. Avoid entering confidential information. Example:
my-new-bucket1
- Namespace string
The Object Storage namespace used for the request.
- Replication
Id string The ID of the replication policy.
- bucket String
The name of the bucket. Avoid entering confidential information. Example:
my-new-bucket1
- namespace String
The Object Storage namespace used for the request.
- replication
Id String The ID of the replication policy.
- bucket string
The name of the bucket. Avoid entering confidential information. Example:
my-new-bucket1
- namespace string
The Object Storage namespace used for the request.
- replication
Id string The ID of the replication policy.
- bucket str
The name of the bucket. Avoid entering confidential information. Example:
my-new-bucket1
- namespace str
The Object Storage namespace used for the request.
- replication_
id str The ID of the replication policy.
- bucket String
The name of the bucket. Avoid entering confidential information. Example:
my-new-bucket1
- namespace String
The Object Storage namespace used for the request.
- replication
Id String The ID of the replication policy.
getReplicationPolicy Result
The following output properties are available:
- Bucket string
- Delete
Object stringIn Destination Bucket The 'delete_object_in_destination_bucket' field has been deprecated. It is no longer supported.
- Destination
Bucket stringName The bucket to replicate to in the destination region. Replication policy creation does not automatically create a destination bucket. Create the destination bucket before creating the policy.
- Destination
Region stringName The destination region to replicate to, for example "us-ashburn-1".
- Id string
The id of the replication policy.
- Name string
The name of the policy.
- Namespace string
- Replication
Id string - Status string
The replication status of the policy. If the status is CLIENT_ERROR, once the user fixes the issue described in the status message, the status will become ACTIVE.
- Status
Message string A human-readable description of the status.
- Time
Created string The date when the replication policy was created as per RFC 3339.
- Time
Last stringSync Changes made to the source bucket before this time has been replicated.
- Bucket string
- Delete
Object stringIn Destination Bucket The 'delete_object_in_destination_bucket' field has been deprecated. It is no longer supported.
- Destination
Bucket stringName The bucket to replicate to in the destination region. Replication policy creation does not automatically create a destination bucket. Create the destination bucket before creating the policy.
- Destination
Region stringName The destination region to replicate to, for example "us-ashburn-1".
- Id string
The id of the replication policy.
- Name string
The name of the policy.
- Namespace string
- Replication
Id string - Status string
The replication status of the policy. If the status is CLIENT_ERROR, once the user fixes the issue described in the status message, the status will become ACTIVE.
- Status
Message string A human-readable description of the status.
- Time
Created string The date when the replication policy was created as per RFC 3339.
- Time
Last stringSync Changes made to the source bucket before this time has been replicated.
- bucket String
- delete
Object StringIn Destination Bucket The 'delete_object_in_destination_bucket' field has been deprecated. It is no longer supported.
- destination
Bucket StringName The bucket to replicate to in the destination region. Replication policy creation does not automatically create a destination bucket. Create the destination bucket before creating the policy.
- destination
Region StringName The destination region to replicate to, for example "us-ashburn-1".
- id String
The id of the replication policy.
- name String
The name of the policy.
- namespace String
- replication
Id String - status String
The replication status of the policy. If the status is CLIENT_ERROR, once the user fixes the issue described in the status message, the status will become ACTIVE.
- status
Message String A human-readable description of the status.
- time
Created String The date when the replication policy was created as per RFC 3339.
- time
Last StringSync Changes made to the source bucket before this time has been replicated.
- bucket string
- delete
Object stringIn Destination Bucket The 'delete_object_in_destination_bucket' field has been deprecated. It is no longer supported.
- destination
Bucket stringName The bucket to replicate to in the destination region. Replication policy creation does not automatically create a destination bucket. Create the destination bucket before creating the policy.
- destination
Region stringName The destination region to replicate to, for example "us-ashburn-1".
- id string
The id of the replication policy.
- name string
The name of the policy.
- namespace string
- replication
Id string - status string
The replication status of the policy. If the status is CLIENT_ERROR, once the user fixes the issue described in the status message, the status will become ACTIVE.
- status
Message string A human-readable description of the status.
- time
Created string The date when the replication policy was created as per RFC 3339.
- time
Last stringSync Changes made to the source bucket before this time has been replicated.
- bucket str
- delete_
object_ strin_ destination_ bucket The 'delete_object_in_destination_bucket' field has been deprecated. It is no longer supported.
- destination_
bucket_ strname The bucket to replicate to in the destination region. Replication policy creation does not automatically create a destination bucket. Create the destination bucket before creating the policy.
- destination_
region_ strname The destination region to replicate to, for example "us-ashburn-1".
- id str
The id of the replication policy.
- name str
The name of the policy.
- namespace str
- replication_
id str - status str
The replication status of the policy. If the status is CLIENT_ERROR, once the user fixes the issue described in the status message, the status will become ACTIVE.
- status_
message str A human-readable description of the status.
- time_
created str The date when the replication policy was created as per RFC 3339.
- time_
last_ strsync Changes made to the source bucket before this time has been replicated.
- bucket String
- delete
Object StringIn Destination Bucket The 'delete_object_in_destination_bucket' field has been deprecated. It is no longer supported.
- destination
Bucket StringName The bucket to replicate to in the destination region. Replication policy creation does not automatically create a destination bucket. Create the destination bucket before creating the policy.
- destination
Region StringName The destination region to replicate to, for example "us-ashburn-1".
- id String
The id of the replication policy.
- name String
The name of the policy.
- namespace String
- replication
Id String - status String
The replication status of the policy. If the status is CLIENT_ERROR, once the user fixes the issue described in the status message, the status will become ACTIVE.
- status
Message String A human-readable description of the status.
- time
Created String The date when the replication policy was created as per RFC 3339.
- time
Last StringSync Changes made to the source bucket before this time has been replicated.
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.