Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_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<Get
Replication 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
[]Get
Replication 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<Get
Replication 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
Get
Replication 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[objectstorage.
Get Replication 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
- Replication
Sources List<GetReplication Sources Replication Source> - The list of replication_sources.
- Filters
List<Get
Replication Sources Filter>
- Bucket string
- Id string
- The provider-assigned unique ID for this managed resource.
- Namespace string
- Replication
Sources []GetReplication Sources Replication Source - The list of replication_sources.
- Filters
[]Get
Replication Sources Filter
- bucket String
- id String
- The provider-assigned unique ID for this managed resource.
- namespace String
- replication
Sources List<GetReplication Sources Replication Source> - The list of replication_sources.
- filters
List<Get
Replication Sources Filter>
- bucket string
- id string
- The provider-assigned unique ID for this managed resource.
- namespace string
- replication
Sources GetReplication Sources Replication Source[] - The list of replication_sources.
- filters
Get
Replication Sources Filter[]
- bucket str
- id str
- The provider-assigned unique ID for this managed resource.
- namespace str
- replication_
sources Sequence[objectstorage.Get Replication Sources Replication Source] - The list of replication_sources.
- filters
Sequence[objectstorage.
Get Replication Sources Filter]
- bucket String
- id String
- The provider-assigned unique ID for this managed resource.
- namespace String
- replication
Sources List<Property Map> - The list of replication_sources.
- filters List<Property Map>
Supporting Types
GetReplicationSourcesFilter
GetReplicationSourcesReplicationSource
- Policy
Name string - The name of the policy.
- Source
Bucket stringName - The source bucket replicating data from.
- Source
Region stringName - The source region replicating data from, for example "us-ashburn-1".
- Policy
Name string - The name of the policy.
- Source
Bucket stringName - The source bucket replicating data from.
- Source
Region stringName - The source region replicating data from, for example "us-ashburn-1".
- policy
Name String - The name of the policy.
- source
Bucket StringName - The source bucket replicating data from.
- source
Region StringName - The source region replicating data from, for example "us-ashburn-1".
- policy
Name string - The name of the policy.
- source
Bucket stringName - The source bucket replicating data from.
- source
Region 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".
- policy
Name String - The name of the policy.
- source
Bucket StringName - The source bucket replicating data from.
- source
Region 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
oci
Terraform Provider.