Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.ObjectStorage.getReplicationSources
Explore with Pulumi AI
This data source provides the list of Replication Sources in Oracle Cloud Infrastructure Object Storage service.
List the replication sources of a destination bucket.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testReplicationSources = oci.ObjectStorage.getReplicationSources({
    bucket: replicationSourceBucket,
    namespace: replicationSourceNamespace,
});
import pulumi
import pulumi_oci as oci
test_replication_sources = oci.ObjectStorage.get_replication_sources(bucket=replication_source_bucket,
    namespace=replication_source_namespace)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/objectstorage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := objectstorage.GetReplicationSources(ctx, &objectstorage.GetReplicationSourcesArgs{
			Bucket:    replicationSourceBucket,
			Namespace: replicationSourceNamespace,
		}, 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 testReplicationSources = Oci.ObjectStorage.GetReplicationSources.Invoke(new()
    {
        Bucket = replicationSourceBucket,
        Namespace = replicationSourceNamespace,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ObjectStorage.ObjectStorageFunctions;
import com.pulumi.oci.ObjectStorage.inputs.GetReplicationSourcesArgs;
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 testReplicationSources = ObjectStorageFunctions.getReplicationSources(GetReplicationSourcesArgs.builder()
            .bucket(replicationSourceBucket)
            .namespace(replicationSourceNamespace)
            .build());
    }
}
variables:
  testReplicationSources:
    fn::invoke:
      function: oci:ObjectStorage:getReplicationSources
      arguments:
        bucket: ${replicationSourceBucket}
        namespace: ${replicationSourceNamespace}
Using getReplicationSources
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 getReplicationSources(args: GetReplicationSourcesArgs, opts?: InvokeOptions): Promise<GetReplicationSourcesResult>
function getReplicationSourcesOutput(args: GetReplicationSourcesOutputArgs, opts?: InvokeOptions): Output<GetReplicationSourcesResult>def get_replication_sources(bucket: Optional[str] = None,
                            filters: Optional[Sequence[GetReplicationSourcesFilter]] = None,
                            namespace: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetReplicationSourcesResult
def get_replication_sources_output(bucket: Optional[pulumi.Input[str]] = None,
                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetReplicationSourcesFilterArgs]]]] = None,
                            namespace: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetReplicationSourcesResult]func GetReplicationSources(ctx *Context, args *GetReplicationSourcesArgs, opts ...InvokeOption) (*GetReplicationSourcesResult, error)
func GetReplicationSourcesOutput(ctx *Context, args *GetReplicationSourcesOutputArgs, opts ...InvokeOption) GetReplicationSourcesResultOutput> Note: This function is named GetReplicationSources in the Go SDK.
public static class GetReplicationSources 
{
    public static Task<GetReplicationSourcesResult> InvokeAsync(GetReplicationSourcesArgs args, InvokeOptions? opts = null)
    public static Output<GetReplicationSourcesResult> Invoke(GetReplicationSourcesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetReplicationSourcesResult> getReplicationSources(GetReplicationSourcesArgs args, InvokeOptions options)
public static Output<GetReplicationSourcesResult> getReplicationSources(GetReplicationSourcesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ObjectStorage/getReplicationSources:getReplicationSources
  arguments:
    # arguments dictionaryThe 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.
- Filters
List<GetReplication Sources Filter> 
- 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.
- Filters
[]GetReplication Sources Filter 
- 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.
- filters
List<GetReplication Sources Filter> 
- 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.
- filters
GetReplication Sources Filter[] 
- 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.
- filters
Sequence[GetReplication Sources Filter] 
- 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.
- filters List<Property Map>
getReplicationSources Result
The following output properties are available:
- Bucket string
- Id string
- The provider-assigned unique ID for this managed resource.
- Namespace string
- ReplicationSources List<GetReplication Sources Replication Source> 
- The list of replication_sources.
- Filters
List<GetReplication Sources Filter> 
- Bucket string
- Id string
- The provider-assigned unique ID for this managed resource.
- Namespace string
- ReplicationSources []GetReplication Sources Replication Source 
- The list of replication_sources.
- Filters
[]GetReplication Sources Filter 
- bucket String
- id String
- The provider-assigned unique ID for this managed resource.
- namespace String
- replicationSources List<GetReplication Sources Replication Source> 
- The list of replication_sources.
- filters
List<GetReplication Sources Filter> 
- bucket string
- id string
- The provider-assigned unique ID for this managed resource.
- namespace string
- replicationSources GetReplication Sources Replication Source[] 
- The list of replication_sources.
- filters
GetReplication Sources Filter[] 
- bucket str
- id str
- The provider-assigned unique ID for this managed resource.
- namespace str
- replication_sources Sequence[GetReplication Sources Replication Source] 
- The list of replication_sources.
- filters
Sequence[GetReplication Sources Filter] 
- bucket String
- id String
- The provider-assigned unique ID for this managed resource.
- namespace String
- replicationSources List<Property Map>
- The list of replication_sources.
- filters List<Property Map>
Supporting Types
GetReplicationSourcesFilter   
GetReplicationSourcesReplicationSource    
- PolicyName string
- The name of the policy.
- SourceBucket stringName 
- The source bucket replicating data from.
- SourceRegion stringName 
- The source region replicating data from, for example "us-ashburn-1".
- PolicyName string
- The name of the policy.
- SourceBucket stringName 
- The source bucket replicating data from.
- SourceRegion stringName 
- The source region replicating data from, for example "us-ashburn-1".
- policyName String
- The name of the policy.
- sourceBucket StringName 
- The source bucket replicating data from.
- sourceRegion StringName 
- The source region replicating data from, for example "us-ashburn-1".
- policyName string
- The name of the policy.
- sourceBucket stringName 
- The source bucket replicating data from.
- sourceRegion stringName 
- The source region replicating data from, for example "us-ashburn-1".
- policy_name str
- The name of the policy.
- source_bucket_ strname 
- The source bucket replicating data from.
- source_region_ strname 
- The source region replicating data from, for example "us-ashburn-1".
- policyName String
- The name of the policy.
- sourceBucket StringName 
- The source bucket replicating data from.
- sourceRegion StringName 
- The source region replicating data from, for example "us-ashburn-1".
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.