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

oci.Database.getAutonomousDatabaseRefreshableClones

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 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

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAutonomousDatabaseRefreshableClones = oci.Database.getAutonomousDatabaseRefreshableClones({
        autonomousDatabaseId: testAutonomousDatabase.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_autonomous_database_refreshable_clones = oci.Database.get_autonomous_database_refreshable_clones(autonomous_database_id=test_autonomous_database["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/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: testAutonomousDatabase.Id,
    		}, 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 testAutonomousDatabaseRefreshableClones = Oci.Database.GetAutonomousDatabaseRefreshableClones.Invoke(new()
        {
            AutonomousDatabaseId = testAutonomousDatabase.Id,
        });
    
    });
    
    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(testAutonomousDatabase.id())
                .build());
    
        }
    }
    
    variables:
      testAutonomousDatabaseRefreshableClones:
        fn::invoke:
          Function: oci:Database:getAutonomousDatabaseRefreshableClones
          Arguments:
            autonomousDatabaseId: ${testAutonomousDatabase.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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi