1. Packages
  2. AWS
  3. API Docs
  4. odb
  5. getDbServers
AWS v7.8.0 published on Tuesday, Oct 7, 2025 by Pulumi

aws.odb.getDbServers

Deploy with Pulumi
aws logo
AWS v7.8.0 published on Tuesday, Oct 7, 2025 by Pulumi

    Data source for manging db servers linked to exadata infrastructure of Oracle Database@AWS.

    You can find out more about Oracle Database@AWS from User Guide.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.odb.getDbServers({
        cloudExadataInfrastructureId: "exadata_infra_id",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.odb.get_db_servers(cloud_exadata_infrastructure_id="exadata_infra_id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/odb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := odb.GetDbServers(ctx, &odb.GetDbServersArgs{
    			CloudExadataInfrastructureId: "exadata_infra_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Odb.GetDbServers.Invoke(new()
        {
            CloudExadataInfrastructureId = "exadata_infra_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.odb.OdbFunctions;
    import com.pulumi.aws.odb.inputs.GetDbServersArgs;
    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 example = OdbFunctions.getDbServers(GetDbServersArgs.builder()
                .cloudExadataInfrastructureId("exadata_infra_id")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:odb:getDbServers
          arguments:
            cloudExadataInfrastructureId: exadata_infra_id
    

    Using getDbServers

    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 getDbServers(args: GetDbServersArgs, opts?: InvokeOptions): Promise<GetDbServersResult>
    function getDbServersOutput(args: GetDbServersOutputArgs, opts?: InvokeOptions): Output<GetDbServersResult>
    def get_db_servers(cloud_exadata_infrastructure_id: Optional[str] = None,
                       region: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDbServersResult
    def get_db_servers_output(cloud_exadata_infrastructure_id: Optional[pulumi.Input[str]] = None,
                       region: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetDbServersResult]
    func GetDbServers(ctx *Context, args *GetDbServersArgs, opts ...InvokeOption) (*GetDbServersResult, error)
    func GetDbServersOutput(ctx *Context, args *GetDbServersOutputArgs, opts ...InvokeOption) GetDbServersResultOutput

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

    public static class GetDbServers 
    {
        public static Task<GetDbServersResult> InvokeAsync(GetDbServersArgs args, InvokeOptions? opts = null)
        public static Output<GetDbServersResult> Invoke(GetDbServersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbServersResult> getDbServers(GetDbServersArgs args, InvokeOptions options)
    public static Output<GetDbServersResult> getDbServers(GetDbServersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws:odb/getDbServers:getDbServers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CloudExadataInfrastructureId string

    The unique identifier of the cloud vm cluster.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    CloudExadataInfrastructureId string

    The unique identifier of the cloud vm cluster.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    cloudExadataInfrastructureId String

    The unique identifier of the cloud vm cluster.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    cloudExadataInfrastructureId string

    The unique identifier of the cloud vm cluster.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    cloud_exadata_infrastructure_id str

    The unique identifier of the cloud vm cluster.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    cloudExadataInfrastructureId String

    The unique identifier of the cloud vm cluster.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    getDbServers Result

    The following output properties are available:

    CloudExadataInfrastructureId string
    DbServers List<GetDbServersDbServer>
    the list of DB servers along with their properties.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    CloudExadataInfrastructureId string
    DbServers []GetDbServersDbServer
    the list of DB servers along with their properties.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    cloudExadataInfrastructureId String
    dbServers List<GetDbServersDbServer>
    the list of DB servers along with their properties.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    cloudExadataInfrastructureId string
    dbServers GetDbServersDbServer[]
    the list of DB servers along with their properties.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    cloud_exadata_infrastructure_id str
    db_servers Sequence[GetDbServersDbServer]
    the list of DB servers along with their properties.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    cloudExadataInfrastructureId String
    dbServers List<Property Map>
    the list of DB servers along with their properties.
    id String
    The provider-assigned unique ID for this managed resource.
    region String

    Supporting Types

    GetDbServersDbServer

    AutonomousVirtualMachineIds List<string>
    A list of unique identifiers for the Autonomous VMs.
    AutonomousVmClusterIds List<string>
    A list of identifiers for the Autonomous VM clusters.
    ComputeModel string
    The OCI compute model used when you create or clone an instance: ECPU or OCPU. ECPUs are based on the number of cores elastically allocated from a pool of compute and storage servers, while OCPUs are based on the physical core of a processor with hyper-threading enabled.
    CpuCoreCount int
    The number of CPU cores enabled on the database server.
    CreatedAt string
    The date and time when the database server was created.
    DbNodeStorageSizeInGbs int
    The amount of local node storage, in gigabytes (GB), that's allocated on the database server.
    DbServerPatchingDetails List<GetDbServersDbServerDbServerPatchingDetail>
    The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    DisplayName string
    The user-friendly name of the database server. The name doesn't need to be unique.
    ExadataInfrastructureId string
    The ID of the Exadata infrastructure that hosts the database server.
    Id string
    MaxCpuCount int
    The total number of CPU cores available on the database server.
    MaxDbNodeStorageInGbs int
    The total amount of local node storage, in gigabytes (GB), that's available on the database server.
    MaxMemoryInGbs int
    The total amount of memory, in gigabytes (GB), that's available on the database server.
    MemorySizeInGbs int
    The amount of memory, in gigabytes (GB), that's allocated on the database server.
    OciResourceAnchorName string
    The name of the OCI resource anchor for the database server.
    Ocid string
    The OCID of the database server.
    Shape string
    The hardware system model of the Exadata infrastructure that the database server is hosted on. The shape determines the amount of CPU, storage, and memory resources available.
    Status string
    The current status of the database server.
    StatusReason string
    Additional information about the status of the database server.
    VmClusterIds List<string>
    The IDs of the VM clusters that are associated with the database server.
    AutonomousVirtualMachineIds []string
    A list of unique identifiers for the Autonomous VMs.
    AutonomousVmClusterIds []string
    A list of identifiers for the Autonomous VM clusters.
    ComputeModel string
    The OCI compute model used when you create or clone an instance: ECPU or OCPU. ECPUs are based on the number of cores elastically allocated from a pool of compute and storage servers, while OCPUs are based on the physical core of a processor with hyper-threading enabled.
    CpuCoreCount int
    The number of CPU cores enabled on the database server.
    CreatedAt string
    The date and time when the database server was created.
    DbNodeStorageSizeInGbs int
    The amount of local node storage, in gigabytes (GB), that's allocated on the database server.
    DbServerPatchingDetails []GetDbServersDbServerDbServerPatchingDetail
    The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    DisplayName string
    The user-friendly name of the database server. The name doesn't need to be unique.
    ExadataInfrastructureId string
    The ID of the Exadata infrastructure that hosts the database server.
    Id string
    MaxCpuCount int
    The total number of CPU cores available on the database server.
    MaxDbNodeStorageInGbs int
    The total amount of local node storage, in gigabytes (GB), that's available on the database server.
    MaxMemoryInGbs int
    The total amount of memory, in gigabytes (GB), that's available on the database server.
    MemorySizeInGbs int
    The amount of memory, in gigabytes (GB), that's allocated on the database server.
    OciResourceAnchorName string
    The name of the OCI resource anchor for the database server.
    Ocid string
    The OCID of the database server.
    Shape string
    The hardware system model of the Exadata infrastructure that the database server is hosted on. The shape determines the amount of CPU, storage, and memory resources available.
    Status string
    The current status of the database server.
    StatusReason string
    Additional information about the status of the database server.
    VmClusterIds []string
    The IDs of the VM clusters that are associated with the database server.
    autonomousVirtualMachineIds List<String>
    A list of unique identifiers for the Autonomous VMs.
    autonomousVmClusterIds List<String>
    A list of identifiers for the Autonomous VM clusters.
    computeModel String
    The OCI compute model used when you create or clone an instance: ECPU or OCPU. ECPUs are based on the number of cores elastically allocated from a pool of compute and storage servers, while OCPUs are based on the physical core of a processor with hyper-threading enabled.
    cpuCoreCount Integer
    The number of CPU cores enabled on the database server.
    createdAt String
    The date and time when the database server was created.
    dbNodeStorageSizeInGbs Integer
    The amount of local node storage, in gigabytes (GB), that's allocated on the database server.
    dbServerPatchingDetails List<GetDbServersDbServerDbServerPatchingDetail>
    The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    displayName String
    The user-friendly name of the database server. The name doesn't need to be unique.
    exadataInfrastructureId String
    The ID of the Exadata infrastructure that hosts the database server.
    id String
    maxCpuCount Integer
    The total number of CPU cores available on the database server.
    maxDbNodeStorageInGbs Integer
    The total amount of local node storage, in gigabytes (GB), that's available on the database server.
    maxMemoryInGbs Integer
    The total amount of memory, in gigabytes (GB), that's available on the database server.
    memorySizeInGbs Integer
    The amount of memory, in gigabytes (GB), that's allocated on the database server.
    ociResourceAnchorName String
    The name of the OCI resource anchor for the database server.
    ocid String
    The OCID of the database server.
    shape String
    The hardware system model of the Exadata infrastructure that the database server is hosted on. The shape determines the amount of CPU, storage, and memory resources available.
    status String
    The current status of the database server.
    statusReason String
    Additional information about the status of the database server.
    vmClusterIds List<String>
    The IDs of the VM clusters that are associated with the database server.
    autonomousVirtualMachineIds string[]
    A list of unique identifiers for the Autonomous VMs.
    autonomousVmClusterIds string[]
    A list of identifiers for the Autonomous VM clusters.
    computeModel string
    The OCI compute model used when you create or clone an instance: ECPU or OCPU. ECPUs are based on the number of cores elastically allocated from a pool of compute and storage servers, while OCPUs are based on the physical core of a processor with hyper-threading enabled.
    cpuCoreCount number
    The number of CPU cores enabled on the database server.
    createdAt string
    The date and time when the database server was created.
    dbNodeStorageSizeInGbs number
    The amount of local node storage, in gigabytes (GB), that's allocated on the database server.
    dbServerPatchingDetails GetDbServersDbServerDbServerPatchingDetail[]
    The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    displayName string
    The user-friendly name of the database server. The name doesn't need to be unique.
    exadataInfrastructureId string
    The ID of the Exadata infrastructure that hosts the database server.
    id string
    maxCpuCount number
    The total number of CPU cores available on the database server.
    maxDbNodeStorageInGbs number
    The total amount of local node storage, in gigabytes (GB), that's available on the database server.
    maxMemoryInGbs number
    The total amount of memory, in gigabytes (GB), that's available on the database server.
    memorySizeInGbs number
    The amount of memory, in gigabytes (GB), that's allocated on the database server.
    ociResourceAnchorName string
    The name of the OCI resource anchor for the database server.
    ocid string
    The OCID of the database server.
    shape string
    The hardware system model of the Exadata infrastructure that the database server is hosted on. The shape determines the amount of CPU, storage, and memory resources available.
    status string
    The current status of the database server.
    statusReason string
    Additional information about the status of the database server.
    vmClusterIds string[]
    The IDs of the VM clusters that are associated with the database server.
    autonomous_virtual_machine_ids Sequence[str]
    A list of unique identifiers for the Autonomous VMs.
    autonomous_vm_cluster_ids Sequence[str]
    A list of identifiers for the Autonomous VM clusters.
    compute_model str
    The OCI compute model used when you create or clone an instance: ECPU or OCPU. ECPUs are based on the number of cores elastically allocated from a pool of compute and storage servers, while OCPUs are based on the physical core of a processor with hyper-threading enabled.
    cpu_core_count int
    The number of CPU cores enabled on the database server.
    created_at str
    The date and time when the database server was created.
    db_node_storage_size_in_gbs int
    The amount of local node storage, in gigabytes (GB), that's allocated on the database server.
    db_server_patching_details Sequence[GetDbServersDbServerDbServerPatchingDetail]
    The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    display_name str
    The user-friendly name of the database server. The name doesn't need to be unique.
    exadata_infrastructure_id str
    The ID of the Exadata infrastructure that hosts the database server.
    id str
    max_cpu_count int
    The total number of CPU cores available on the database server.
    max_db_node_storage_in_gbs int
    The total amount of local node storage, in gigabytes (GB), that's available on the database server.
    max_memory_in_gbs int
    The total amount of memory, in gigabytes (GB), that's available on the database server.
    memory_size_in_gbs int
    The amount of memory, in gigabytes (GB), that's allocated on the database server.
    oci_resource_anchor_name str
    The name of the OCI resource anchor for the database server.
    ocid str
    The OCID of the database server.
    shape str
    The hardware system model of the Exadata infrastructure that the database server is hosted on. The shape determines the amount of CPU, storage, and memory resources available.
    status str
    The current status of the database server.
    status_reason str
    Additional information about the status of the database server.
    vm_cluster_ids Sequence[str]
    The IDs of the VM clusters that are associated with the database server.
    autonomousVirtualMachineIds List<String>
    A list of unique identifiers for the Autonomous VMs.
    autonomousVmClusterIds List<String>
    A list of identifiers for the Autonomous VM clusters.
    computeModel String
    The OCI compute model used when you create or clone an instance: ECPU or OCPU. ECPUs are based on the number of cores elastically allocated from a pool of compute and storage servers, while OCPUs are based on the physical core of a processor with hyper-threading enabled.
    cpuCoreCount Number
    The number of CPU cores enabled on the database server.
    createdAt String
    The date and time when the database server was created.
    dbNodeStorageSizeInGbs Number
    The amount of local node storage, in gigabytes (GB), that's allocated on the database server.
    dbServerPatchingDetails List<Property Map>
    The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    displayName String
    The user-friendly name of the database server. The name doesn't need to be unique.
    exadataInfrastructureId String
    The ID of the Exadata infrastructure that hosts the database server.
    id String
    maxCpuCount Number
    The total number of CPU cores available on the database server.
    maxDbNodeStorageInGbs Number
    The total amount of local node storage, in gigabytes (GB), that's available on the database server.
    maxMemoryInGbs Number
    The total amount of memory, in gigabytes (GB), that's available on the database server.
    memorySizeInGbs Number
    The amount of memory, in gigabytes (GB), that's allocated on the database server.
    ociResourceAnchorName String
    The name of the OCI resource anchor for the database server.
    ocid String
    The OCID of the database server.
    shape String
    The hardware system model of the Exadata infrastructure that the database server is hosted on. The shape determines the amount of CPU, storage, and memory resources available.
    status String
    The current status of the database server.
    statusReason String
    Additional information about the status of the database server.
    vmClusterIds List<String>
    The IDs of the VM clusters that are associated with the database server.

    GetDbServersDbServerDbServerPatchingDetail

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.8.0 published on Tuesday, Oct 7, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate