Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getReplicationSources

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testReplicationSources = Output.Create(Oci.ObjectStorage.GetReplicationSources.InvokeAsync(new Oci.ObjectStorage.GetReplicationSourcesArgs
        {
            Bucket = @var.Replication_source_bucket,
            Namespace = @var.Replication_source_namespace,
        }));
    }

}
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.GetReplicationSources(ctx, &objectstorage.GetReplicationSourcesArgs{
			Bucket:    _var.Replication_source_bucket,
			Namespace: _var.Replication_source_namespace,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_replication_sources = oci.ObjectStorage.get_replication_sources(bucket=var["replication_source_bucket"],
    namespace=var["replication_source_namespace"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testReplicationSources = oci.ObjectStorage.getReplicationSources({
    bucket: _var.replication_source_bucket,
    namespace: _var.replication_source_namespace,
});

Coming soon!

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 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 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<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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.