1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ObjectStorage
  5. getReplicationSources
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.ObjectStorage.getReplicationSources

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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[_objectstorage.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[_objectstorage.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ObjectStorage/getReplicationSources:getReplicationSources
      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.
    Filters List<GetReplicationSourcesFilter>
    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 []GetReplicationSourcesFilter
    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<GetReplicationSourcesFilter>
    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 GetReplicationSourcesFilter[]
    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[objectstorage.GetReplicationSourcesFilter]
    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<GetReplicationSourcesReplicationSource>
    The list of replication_sources.
    Filters List<GetReplicationSourcesFilter>
    Bucket string
    Id string
    The provider-assigned unique ID for this managed resource.
    Namespace string
    ReplicationSources []GetReplicationSourcesReplicationSource
    The list of replication_sources.
    Filters []GetReplicationSourcesFilter
    bucket String
    id String
    The provider-assigned unique ID for this managed resource.
    namespace String
    replicationSources List<GetReplicationSourcesReplicationSource>
    The list of replication_sources.
    filters List<GetReplicationSourcesFilter>
    bucket string
    id string
    The provider-assigned unique ID for this managed resource.
    namespace string
    replicationSources GetReplicationSourcesReplicationSource[]
    The list of replication_sources.
    filters GetReplicationSourcesFilter[]
    bucket str
    id str
    The provider-assigned unique ID for this managed resource.
    namespace str
    replication_sources Sequence[objectstorage.GetReplicationSourcesReplicationSource]
    The list of replication_sources.
    filters Sequence[objectstorage.GetReplicationSourcesFilter]
    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

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetReplicationSourcesReplicationSource

    PolicyName string
    The name of the policy.
    SourceBucketName string
    The source bucket replicating data from.
    SourceRegionName string
    The source region replicating data from, for example "us-ashburn-1".
    PolicyName string
    The name of the policy.
    SourceBucketName string
    The source bucket replicating data from.
    SourceRegionName string
    The source region replicating data from, for example "us-ashburn-1".
    policyName String
    The name of the policy.
    sourceBucketName String
    The source bucket replicating data from.
    sourceRegionName String
    The source region replicating data from, for example "us-ashburn-1".
    policyName string
    The name of the policy.
    sourceBucketName string
    The source bucket replicating data from.
    sourceRegionName string
    The source region replicating data from, for example "us-ashburn-1".
    policy_name str
    The name of the policy.
    source_bucket_name str
    The source bucket replicating data from.
    source_region_name str
    The source region replicating data from, for example "us-ashburn-1".
    policyName String
    The name of the policy.
    sourceBucketName String
    The source bucket replicating data from.
    sourceRegionName String
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi