Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Database.getAutonomousDatabaseRefreshableClones
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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/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:
- Autonomous
Database stringId - The database OCID.
- Filters
List<Get
Autonomous Database Refreshable Clones Filter>
- Autonomous
Database stringId - The database OCID.
- Filters
[]Get
Autonomous Database Refreshable Clones Filter
- autonomous
Database StringId - The database OCID.
- filters
List<Get
Autonomous Refreshable Clones Filter>
- autonomous
Database stringId - The database OCID.
- filters
Get
Autonomous Database Refreshable Clones Filter[]
- autonomous
Database StringId - The database OCID.
- filters List<Property Map>
getAutonomousDatabaseRefreshableClones Result
The following output properties are available:
- Autonomous
Database stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Refreshable
Clone List<GetCollections Autonomous Database Refreshable Clones Refreshable Clone Collection> - The list of refreshable_clone_collection.
- Filters
List<Get
Autonomous Database Refreshable Clones Filter>
- Autonomous
Database stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Refreshable
Clone []GetCollections Autonomous Database Refreshable Clones Refreshable Clone Collection - The list of refreshable_clone_collection.
- Filters
[]Get
Autonomous Database Refreshable Clones Filter
- autonomous
Database StringId - id String
- The provider-assigned unique ID for this managed resource.
- refreshable
Clone List<GetCollections Autonomous Refreshable Clones Refreshable Clone Collection> - The list of refreshable_clone_collection.
- filters
List<Get
Autonomous Refreshable Clones Filter>
- autonomous
Database stringId - id string
- The provider-assigned unique ID for this managed resource.
- refreshable
Clone GetCollections Autonomous Database Refreshable Clones Refreshable Clone Collection[] - The list of refreshable_clone_collection.
- filters
Get
Autonomous Database Refreshable Clones Filter[]
- autonomous_
database_ strid - id str
- The provider-assigned unique ID for this managed resource.
- refreshable_
clone_ Sequence[database.collections Get Autonomous Database Refreshable Clones Refreshable Clone Collection] - The list of refreshable_clone_collection.
- filters
Sequence[database.
Get Autonomous Database Refreshable Clones Filter]
- autonomous
Database StringId - id String
- The provider-assigned unique ID for this managed resource.
- refreshable
Clone List<Property Map>Collections - The list of refreshable_clone_collection.
- filters List<Property Map>
Supporting Types
GetAutonomousDatabaseRefreshableClonesFilter
GetAutonomousDatabaseRefreshableClonesRefreshableCloneCollection
GetAutonomousDatabaseRefreshableClonesRefreshableCloneCollectionItem
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi