Viewing docs for Oracle Cloud Infrastructure v4.16.0
published on Wednesday, Jun 17, 2026 by Pulumi
published on Wednesday, Jun 17, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.16.0
published on Wednesday, Jun 17, 2026 by Pulumi
published on Wednesday, Jun 17, 2026 by Pulumi
This data source provides the list of Db System Replicas in Oracle Cloud Infrastructure Psql service.
Returns a list of replica database systems.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbSystemReplicas = oci.psql.getDbSystemReplicas({
dbSystemId: testDbSystem.id,
});
import pulumi
import pulumi_oci as oci
test_db_system_replicas = oci.psql.get_db_system_replicas(db_system_id=test_db_system["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/psql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := psql.GetDbSystemReplicas(ctx, &psql.GetDbSystemReplicasArgs{
DbSystemId: testDbSystem.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 testDbSystemReplicas = Oci.Psql.GetDbSystemReplicas.Invoke(new()
{
DbSystemId = testDbSystem.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Psql.PsqlFunctions;
import com.pulumi.oci.Psql.inputs.GetDbSystemReplicasArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 testDbSystemReplicas = PsqlFunctions.getDbSystemReplicas(GetDbSystemReplicasArgs.builder()
.dbSystemId(testDbSystem.id())
.build());
}
}
variables:
testDbSystemReplicas:
fn::invoke:
function: oci:Psql:getDbSystemReplicas
arguments:
dbSystemId: ${testDbSystem.id}
pulumi {
required_providers {
oci = {
source = "pulumi/oci"
}
}
}
data "oci_psql_getdbsystemreplicas" "testDbSystemReplicas" {
db_system_id = testDbSystem.id
}
Using getDbSystemReplicas
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 getDbSystemReplicas(args: GetDbSystemReplicasArgs, opts?: InvokeOptions): Promise<GetDbSystemReplicasResult>
function getDbSystemReplicasOutput(args: GetDbSystemReplicasOutputArgs, opts?: InvokeOptions): Output<GetDbSystemReplicasResult>def get_db_system_replicas(db_system_id: Optional[str] = None,
filters: Optional[Sequence[GetDbSystemReplicasFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetDbSystemReplicasResult
def get_db_system_replicas_output(db_system_id: pulumi.Input[Optional[str]] = None,
filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetDbSystemReplicasFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbSystemReplicasResult]func GetDbSystemReplicas(ctx *Context, args *GetDbSystemReplicasArgs, opts ...InvokeOption) (*GetDbSystemReplicasResult, error)
func GetDbSystemReplicasOutput(ctx *Context, args *GetDbSystemReplicasOutputArgs, opts ...InvokeOption) GetDbSystemReplicasResultOutput> Note: This function is named GetDbSystemReplicas in the Go SDK.
public static class GetDbSystemReplicas
{
public static Task<GetDbSystemReplicasResult> InvokeAsync(GetDbSystemReplicasArgs args, InvokeOptions? opts = null)
public static Output<GetDbSystemReplicasResult> Invoke(GetDbSystemReplicasInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDbSystemReplicasResult> getDbSystemReplicas(GetDbSystemReplicasArgs args, InvokeOptions options)
public static Output<GetDbSystemReplicasResult> getDbSystemReplicas(GetDbSystemReplicasArgs args, InvokeOptions options)
fn::invoke:
function: oci:Psql/getDbSystemReplicas:getDbSystemReplicas
arguments:
# arguments dictionarydata "oci_psql_getdbsystemreplicas" "name" {
# arguments
}The following arguments are supported:
- Db
System stringId - A unique identifier for the database system.
- Filters
List<Get
Db System Replicas Filter>
- Db
System stringId - A unique identifier for the database system.
- Filters
[]Get
Db System Replicas Filter
- db_
system_ stringid - A unique identifier for the database system.
- filters list(object)
- db
System StringId - A unique identifier for the database system.
- filters
List<Get
Db System Replicas Filter>
- db
System stringId - A unique identifier for the database system.
- filters
Get
Db System Replicas Filter[]
- db_
system_ strid - A unique identifier for the database system.
- filters
Sequence[Get
Db System Replicas Filter]
- db
System StringId - A unique identifier for the database system.
- filters List<Property Map>
getDbSystemReplicas Result
The following output properties are available:
- Db
System stringId - Db
System List<GetReplica Collections Db System Replicas Db System Replica Collection> - The list of db_system_replica_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Db System Replicas Filter>
- Db
System stringId - Db
System []GetReplica Collections Db System Replicas Db System Replica Collection - The list of db_system_replica_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Db System Replicas Filter
- db_
system_ stringid - db_
system_ list(object)replica_ collections - The list of db_system_replica_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- filters list(object)
- db
System StringId - db
System List<GetReplica Collections Db System Replicas Db System Replica Collection> - The list of db_system_replica_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Db System Replicas Filter>
- db
System stringId - db
System GetReplica Collections Db System Replicas Db System Replica Collection[] - The list of db_system_replica_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Db System Replicas Filter[]
- db_
system_ strid - db_
system_ Sequence[Getreplica_ collections Db System Replicas Db System Replica Collection] - The list of db_system_replica_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[Get
Db System Replicas Filter]
- db
System StringId - db
System List<Property Map>Replica Collections - The list of db_system_replica_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
Supporting Types
GetDbSystemReplicasDbSystemReplicaCollection
- Items
List<Get
Db System Replicas Db System Replica Collection Item> - List of replica database systems.
- Items
[]Get
Db System Replicas Db System Replica Collection Item - List of replica database systems.
- items list(object)
- List of replica database systems.
- items
List<Get
Db System Replicas Db System Replica Collection Item> - List of replica database systems.
- items
Get
Db System Replicas Db System Replica Collection Item[] - List of replica database systems.
- items
Sequence[Get
Db System Replicas Db System Replica Collection Item] - List of replica database systems.
- items List<Property Map>
- List of replica database systems.
GetDbSystemReplicasDbSystemReplicaCollectionItem
GetDbSystemReplicasFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.16.0
published on Wednesday, Jun 17, 2026 by Pulumi
published on Wednesday, Jun 17, 2026 by Pulumi