oci logo
Oracle Cloud Infrastructure v0.6.0, Jan 23 23

oci.Database.getAutonomousDatabaseRefreshableClones

This data source provides the list of Autonomous Database Refreshable Clones in Oracle Cloud Infrastructure Database service.

Lists the OCIDs of the Autonomous Database local and connected remote refreshable clones with the region where they exist for the specified source database.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testAutonomousDatabaseRefreshableClones = Oci.Database.GetAutonomousDatabaseRefreshableClones.Invoke(new()
    {
        AutonomousDatabaseId = oci_database_autonomous_database.Test_autonomous_database.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Database.GetAutonomousDatabaseRefreshableClones(ctx, &database.GetAutonomousDatabaseRefreshableClonesArgs{
			AutonomousDatabaseId: oci_database_autonomous_database.Test_autonomous_database.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetAutonomousDatabaseRefreshableClonesArgs;
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 testAutonomousDatabaseRefreshableClones = DatabaseFunctions.getAutonomousDatabaseRefreshableClones(GetAutonomousDatabaseRefreshableClonesArgs.builder()
            .autonomousDatabaseId(oci_database_autonomous_database.test_autonomous_database().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_autonomous_database_refreshable_clones = oci.Database.get_autonomous_database_refreshable_clones(autonomous_database_id=oci_database_autonomous_database["test_autonomous_database"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAutonomousDatabaseRefreshableClones = oci.Database.getAutonomousDatabaseRefreshableClones({
    autonomousDatabaseId: oci_database_autonomous_database.test_autonomous_database.id,
});
variables:
  testAutonomousDatabaseRefreshableClones:
    fn::invoke:
      Function: oci:Database:getAutonomousDatabaseRefreshableClones
      Arguments:
        autonomousDatabaseId: ${oci_database_autonomous_database.test_autonomous_database.id}

Using getAutonomousDatabaseRefreshableClones

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 getAutonomousDatabaseRefreshableClones(args: GetAutonomousDatabaseRefreshableClonesArgs, opts?: InvokeOptions): Promise<GetAutonomousDatabaseRefreshableClonesResult>
function getAutonomousDatabaseRefreshableClonesOutput(args: GetAutonomousDatabaseRefreshableClonesOutputArgs, opts?: InvokeOptions): Output<GetAutonomousDatabaseRefreshableClonesResult>
def get_autonomous_database_refreshable_clones(autonomous_database_id: Optional[str] = None,
                                               filters: Optional[Sequence[_database.GetAutonomousDatabaseRefreshableClonesFilter]] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetAutonomousDatabaseRefreshableClonesResult
def get_autonomous_database_refreshable_clones_output(autonomous_database_id: Optional[pulumi.Input[str]] = None,
                                               filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetAutonomousDatabaseRefreshableClonesFilterArgs]]]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetAutonomousDatabaseRefreshableClonesResult]
func GetAutonomousDatabaseRefreshableClones(ctx *Context, args *GetAutonomousDatabaseRefreshableClonesArgs, opts ...InvokeOption) (*GetAutonomousDatabaseRefreshableClonesResult, error)
func GetAutonomousDatabaseRefreshableClonesOutput(ctx *Context, args *GetAutonomousDatabaseRefreshableClonesOutputArgs, opts ...InvokeOption) GetAutonomousDatabaseRefreshableClonesResultOutput

> Note: This function is named GetAutonomousDatabaseRefreshableClones in the Go SDK.

public static class GetAutonomousDatabaseRefreshableClones 
{
    public static Task<GetAutonomousDatabaseRefreshableClonesResult> InvokeAsync(GetAutonomousDatabaseRefreshableClonesArgs args, InvokeOptions? opts = null)
    public static Output<GetAutonomousDatabaseRefreshableClonesResult> Invoke(GetAutonomousDatabaseRefreshableClonesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAutonomousDatabaseRefreshableClonesResult> getAutonomousDatabaseRefreshableClones(GetAutonomousDatabaseRefreshableClonesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Database/getAutonomousDatabaseRefreshableClones:getAutonomousDatabaseRefreshableClones
  arguments:
    # arguments dictionary

The following arguments are supported:

getAutonomousDatabaseRefreshableClones Result

The following output properties are available:

AutonomousDatabaseId string
Id string

The provider-assigned unique ID for this managed resource.

RefreshableCloneCollections []GetAutonomousDatabaseRefreshableClonesRefreshableCloneCollection

The list of refreshable_clone_collection.

Filters []GetAutonomousDatabaseRefreshableClonesFilter
autonomousDatabaseId String
id String

The provider-assigned unique ID for this managed resource.

refreshableCloneCollections List<GetAutonomousRefreshableClonesRefreshableCloneCollection>

The list of refreshable_clone_collection.

filters List<GetAutonomousRefreshableClonesFilter>
autonomousDatabaseId string
id string

The provider-assigned unique ID for this managed resource.

refreshableCloneCollections GetAutonomousDatabaseRefreshableClonesRefreshableCloneCollection[]

The list of refreshable_clone_collection.

filters GetAutonomousDatabaseRefreshableClonesFilter[]
autonomousDatabaseId String
id String

The provider-assigned unique ID for this managed resource.

refreshableCloneCollections List<Property Map>

The list of refreshable_clone_collection.

filters List<Property Map>

Supporting Types

GetAutonomousDatabaseRefreshableClonesFilter

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

GetAutonomousDatabaseRefreshableClonesRefreshableCloneCollection

GetAutonomousDatabaseRefreshableClonesRefreshableCloneCollectionItem

Id string

The OCID of the Autonomous Database.

Region string

The name of the region where the refreshable clone exists.

Id string

The OCID of the Autonomous Database.

Region string

The name of the region where the refreshable clone exists.

id String

The OCID of the Autonomous Database.

region String

The name of the region where the refreshable clone exists.

id string

The OCID of the Autonomous Database.

region string

The name of the region where the refreshable clone exists.

id str

The OCID of the Autonomous Database.

region str

The name of the region where the refreshable clone exists.

id String

The OCID of the Autonomous Database.

region String

The name of the region where the refreshable clone exists.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.