1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. odb
  6. getDbServer
Viewing docs for AWS v7.42.0
published on Thursday, Aug 13, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.42.0
published on Thursday, Aug 13, 2026 by Pulumi

    Data source for manging db server 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.getDbServer({
        cloudExadataInfrastructureId: "exadata_infra_id",
        id: "db_server_id",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.odb.get_db_server(cloud_exadata_infrastructure_id="exadata_infra_id",
        id="db_server_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.GetDbServer(ctx, &odb.GetDbServerArgs{
    			CloudExadataInfrastructureId: "exadata_infra_id",
    			Id:                           "db_server_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.GetDbServer.Invoke(new()
        {
            CloudExadataInfrastructureId = "exadata_infra_id",
            Id = "db_server_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.GetDbServerArgs;
    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 example = OdbFunctions.getDbServer(GetDbServerArgs.builder()
                .cloudExadataInfrastructureId("exadata_infra_id")
                .id("db_server_id")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:odb:getDbServer
          arguments:
            cloudExadataInfrastructureId: exadata_infra_id
            id: db_server_id
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_odb_getdbserver" "example" {
      cloud_exadata_infrastructure_id = "exadata_infra_id"
      id                              = "db_server_id"
    }
    

    Using getDbServer

    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 getDbServer(args: GetDbServerArgs, opts?: InvokeOptions): Promise<GetDbServerResult>
    function getDbServerOutput(args: GetDbServerOutputArgs, opts?: InvokeOptions): Output<GetDbServerResult>
    def get_db_server(cloud_exadata_infrastructure_id: Optional[str] = None,
                      id: Optional[str] = None,
                      region: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetDbServerResult
    def get_db_server_output(cloud_exadata_infrastructure_id: pulumi.Input[Optional[str]] = None,
                      id: pulumi.Input[Optional[str]] = None,
                      region: pulumi.Input[Optional[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetDbServerResult]
    func GetDbServer(ctx *Context, args *GetDbServerArgs, opts ...InvokeOption) (*GetDbServerResult, error)
    func GetDbServerOutput(ctx *Context, args *GetDbServerOutputArgs, opts ...InvokeOption) GetDbServerResultOutput

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

    public static class GetDbServer 
    {
        public static Task<GetDbServerResult> InvokeAsync(GetDbServerArgs args, InvokeOptions? opts = null)
        public static Output<GetDbServerResult> Invoke(GetDbServerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbServerResult> getDbServer(GetDbServerArgs args, InvokeOptions options)
    public static Output<GetDbServerResult> getDbServer(GetDbServerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws:odb/getDbServer:getDbServer
      arguments:
        # arguments dictionary
    data "aws_odb_get_db_server" "name" {
        # arguments
    }

    The following arguments are supported:

    CloudExadataInfrastructureId string
    Unique identifier of the cloud vm cluster.
    Id string

    Unique identifier of db node associated with 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
    Unique identifier of the cloud vm cluster.
    Id string

    Unique identifier of db node associated with 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 string
    Unique identifier of the cloud vm cluster.
    id string

    Unique identifier of db node associated with 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
    Unique identifier of the cloud vm cluster.
    id String

    Unique identifier of db node associated with 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
    Unique identifier of the cloud vm cluster.
    id string

    Unique identifier of db node associated with 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
    Unique identifier of the cloud vm cluster.
    id str

    Unique identifier of db node associated with 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
    Unique identifier of the cloud vm cluster.
    id String

    Unique identifier of db node associated with 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.

    getDbServer Result

    The following output properties are available:

    AutonomousVirtualMachineIds List<string>
    List of unique identifiers for the Autonomous VMs associated with this database server.
    AutonomousVmClusterIds List<string>
    OCID of the autonomous VM clusters that are associated with the database server.
    CloudExadataInfrastructureId string
    ComputeModel string
    Compute model of the database server.
    CpuCoreCount int
    Number of CPU cores enabled on the database server.
    CreatedAt string
    Date and time when the database server was created.
    DbNodeStorageSizeInGbs int
    Allocated local node storage in GBs on the database server.
    DbServerPatchingDetails List<GetDbServerDbServerPatchingDetail>
    Scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    DisplayName string
    Display name of the database server.
    ExadataInfrastructureId string
    Exadata infrastructure ID of the database server.
    Id string
    MaxCpuCount int
    Total number of CPU cores available.
    MaxDbNodeStorageInGbs int
    Total local node storage available in GBs.
    MaxMemoryInGbs int
    Total memory available in GBs.
    MemorySizeInGbs int
    Allocated memory in GBs on the database server.
    OciResourceAnchorName string
    Name of the OCI resource anchor.
    Ocid string
    OCID of the database server to retrieve information about.
    Region string
    Shape string
    Shape of the database server. The shape determines the amount of CPU, storage, and memory resources available.
    Status string
    Status of the database server.
    StatusReason string
    Additional information about the current status of the database server.
    VmClusterIds List<string>
    OCID of the VM clusters that are associated with the database server.
    AutonomousVirtualMachineIds []string
    List of unique identifiers for the Autonomous VMs associated with this database server.
    AutonomousVmClusterIds []string
    OCID of the autonomous VM clusters that are associated with the database server.
    CloudExadataInfrastructureId string
    ComputeModel string
    Compute model of the database server.
    CpuCoreCount int
    Number of CPU cores enabled on the database server.
    CreatedAt string
    Date and time when the database server was created.
    DbNodeStorageSizeInGbs int
    Allocated local node storage in GBs on the database server.
    DbServerPatchingDetails []GetDbServerDbServerPatchingDetail
    Scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    DisplayName string
    Display name of the database server.
    ExadataInfrastructureId string
    Exadata infrastructure ID of the database server.
    Id string
    MaxCpuCount int
    Total number of CPU cores available.
    MaxDbNodeStorageInGbs int
    Total local node storage available in GBs.
    MaxMemoryInGbs int
    Total memory available in GBs.
    MemorySizeInGbs int
    Allocated memory in GBs on the database server.
    OciResourceAnchorName string
    Name of the OCI resource anchor.
    Ocid string
    OCID of the database server to retrieve information about.
    Region string
    Shape string
    Shape of the database server. The shape determines the amount of CPU, storage, and memory resources available.
    Status string
    Status of the database server.
    StatusReason string
    Additional information about the current status of the database server.
    VmClusterIds []string
    OCID of the VM clusters that are associated with the database server.
    autonomous_virtual_machine_ids list(string)
    List of unique identifiers for the Autonomous VMs associated with this database server.
    autonomous_vm_cluster_ids list(string)
    OCID of the autonomous VM clusters that are associated with the database server.
    cloud_exadata_infrastructure_id string
    compute_model string
    Compute model of the database server.
    cpu_core_count number
    Number of CPU cores enabled on the database server.
    created_at string
    Date and time when the database server was created.
    db_node_storage_size_in_gbs number
    Allocated local node storage in GBs on the database server.
    db_server_patching_details list(object)
    Scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    display_name string
    Display name of the database server.
    exadata_infrastructure_id string
    Exadata infrastructure ID of the database server.
    id string
    max_cpu_count number
    Total number of CPU cores available.
    max_db_node_storage_in_gbs number
    Total local node storage available in GBs.
    max_memory_in_gbs number
    Total memory available in GBs.
    memory_size_in_gbs number
    Allocated memory in GBs on the database server.
    oci_resource_anchor_name string
    Name of the OCI resource anchor.
    ocid string
    OCID of the database server to retrieve information about.
    region string
    shape string
    Shape of the database server. The shape determines the amount of CPU, storage, and memory resources available.
    status string
    Status of the database server.
    status_reason string
    Additional information about the current status of the database server.
    vm_cluster_ids list(string)
    OCID of the VM clusters that are associated with the database server.
    autonomousVirtualMachineIds List<String>
    List of unique identifiers for the Autonomous VMs associated with this database server.
    autonomousVmClusterIds List<String>
    OCID of the autonomous VM clusters that are associated with the database server.
    cloudExadataInfrastructureId String
    computeModel String
    Compute model of the database server.
    cpuCoreCount Integer
    Number of CPU cores enabled on the database server.
    createdAt String
    Date and time when the database server was created.
    dbNodeStorageSizeInGbs Integer
    Allocated local node storage in GBs on the database server.
    dbServerPatchingDetails List<GetDbServerDbServerPatchingDetail>
    Scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    displayName String
    Display name of the database server.
    exadataInfrastructureId String
    Exadata infrastructure ID of the database server.
    id String
    maxCpuCount Integer
    Total number of CPU cores available.
    maxDbNodeStorageInGbs Integer
    Total local node storage available in GBs.
    maxMemoryInGbs Integer
    Total memory available in GBs.
    memorySizeInGbs Integer
    Allocated memory in GBs on the database server.
    ociResourceAnchorName String
    Name of the OCI resource anchor.
    ocid String
    OCID of the database server to retrieve information about.
    region String
    shape String
    Shape of the database server. The shape determines the amount of CPU, storage, and memory resources available.
    status String
    Status of the database server.
    statusReason String
    Additional information about the current status of the database server.
    vmClusterIds List<String>
    OCID of the VM clusters that are associated with the database server.
    autonomousVirtualMachineIds string[]
    List of unique identifiers for the Autonomous VMs associated with this database server.
    autonomousVmClusterIds string[]
    OCID of the autonomous VM clusters that are associated with the database server.
    cloudExadataInfrastructureId string
    computeModel string
    Compute model of the database server.
    cpuCoreCount number
    Number of CPU cores enabled on the database server.
    createdAt string
    Date and time when the database server was created.
    dbNodeStorageSizeInGbs number
    Allocated local node storage in GBs on the database server.
    dbServerPatchingDetails GetDbServerDbServerPatchingDetail[]
    Scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    displayName string
    Display name of the database server.
    exadataInfrastructureId string
    Exadata infrastructure ID of the database server.
    id string
    maxCpuCount number
    Total number of CPU cores available.
    maxDbNodeStorageInGbs number
    Total local node storage available in GBs.
    maxMemoryInGbs number
    Total memory available in GBs.
    memorySizeInGbs number
    Allocated memory in GBs on the database server.
    ociResourceAnchorName string
    Name of the OCI resource anchor.
    ocid string
    OCID of the database server to retrieve information about.
    region string
    shape string
    Shape of the database server. The shape determines the amount of CPU, storage, and memory resources available.
    status string
    Status of the database server.
    statusReason string
    Additional information about the current status of the database server.
    vmClusterIds string[]
    OCID of the VM clusters that are associated with the database server.
    autonomous_virtual_machine_ids Sequence[str]
    List of unique identifiers for the Autonomous VMs associated with this database server.
    autonomous_vm_cluster_ids Sequence[str]
    OCID of the autonomous VM clusters that are associated with the database server.
    cloud_exadata_infrastructure_id str
    compute_model str
    Compute model of the database server.
    cpu_core_count int
    Number of CPU cores enabled on the database server.
    created_at str
    Date and time when the database server was created.
    db_node_storage_size_in_gbs int
    Allocated local node storage in GBs on the database server.
    db_server_patching_details Sequence[GetDbServerDbServerPatchingDetail]
    Scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    display_name str
    Display name of the database server.
    exadata_infrastructure_id str
    Exadata infrastructure ID of the database server.
    id str
    max_cpu_count int
    Total number of CPU cores available.
    max_db_node_storage_in_gbs int
    Total local node storage available in GBs.
    max_memory_in_gbs int
    Total memory available in GBs.
    memory_size_in_gbs int
    Allocated memory in GBs on the database server.
    oci_resource_anchor_name str
    Name of the OCI resource anchor.
    ocid str
    OCID of the database server to retrieve information about.
    region str
    shape str
    Shape of the database server. The shape determines the amount of CPU, storage, and memory resources available.
    status str
    Status of the database server.
    status_reason str
    Additional information about the current status of the database server.
    vm_cluster_ids Sequence[str]
    OCID of the VM clusters that are associated with the database server.
    autonomousVirtualMachineIds List<String>
    List of unique identifiers for the Autonomous VMs associated with this database server.
    autonomousVmClusterIds List<String>
    OCID of the autonomous VM clusters that are associated with the database server.
    cloudExadataInfrastructureId String
    computeModel String
    Compute model of the database server.
    cpuCoreCount Number
    Number of CPU cores enabled on the database server.
    createdAt String
    Date and time when the database server was created.
    dbNodeStorageSizeInGbs Number
    Allocated local node storage in GBs on the database server.
    dbServerPatchingDetails List<Property Map>
    Scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    displayName String
    Display name of the database server.
    exadataInfrastructureId String
    Exadata infrastructure ID of the database server.
    id String
    maxCpuCount Number
    Total number of CPU cores available.
    maxDbNodeStorageInGbs Number
    Total local node storage available in GBs.
    maxMemoryInGbs Number
    Total memory available in GBs.
    memorySizeInGbs Number
    Allocated memory in GBs on the database server.
    ociResourceAnchorName String
    Name of the OCI resource anchor.
    ocid String
    OCID of the database server to retrieve information about.
    region String
    shape String
    Shape of the database server. The shape determines the amount of CPU, storage, and memory resources available.
    status String
    Status of the database server.
    statusReason String
    Additional information about the current status of the database server.
    vmClusterIds List<String>
    OCID of the VM clusters that are associated with the database server.

    Supporting Types

    GetDbServerDbServerPatchingDetail

    EstimatedPatchDuration int
    Estimated time, in minutes, that it takes to patch the database server.
    PatchingStatus string
    Status of the patching operation.
    TimePatchingEnded string
    Date and time when the patching operation ended.
    TimePatchingStarted string
    Date and time when the patching operation started.
    EstimatedPatchDuration int
    Estimated time, in minutes, that it takes to patch the database server.
    PatchingStatus string
    Status of the patching operation.
    TimePatchingEnded string
    Date and time when the patching operation ended.
    TimePatchingStarted string
    Date and time when the patching operation started.
    estimated_patch_duration number
    Estimated time, in minutes, that it takes to patch the database server.
    patching_status string
    Status of the patching operation.
    time_patching_ended string
    Date and time when the patching operation ended.
    time_patching_started string
    Date and time when the patching operation started.
    estimatedPatchDuration Integer
    Estimated time, in minutes, that it takes to patch the database server.
    patchingStatus String
    Status of the patching operation.
    timePatchingEnded String
    Date and time when the patching operation ended.
    timePatchingStarted String
    Date and time when the patching operation started.
    estimatedPatchDuration number
    Estimated time, in minutes, that it takes to patch the database server.
    patchingStatus string
    Status of the patching operation.
    timePatchingEnded string
    Date and time when the patching operation ended.
    timePatchingStarted string
    Date and time when the patching operation started.
    estimated_patch_duration int
    Estimated time, in minutes, that it takes to patch the database server.
    patching_status str
    Status of the patching operation.
    time_patching_ended str
    Date and time when the patching operation ended.
    time_patching_started str
    Date and time when the patching operation started.
    estimatedPatchDuration Number
    Estimated time, in minutes, that it takes to patch the database server.
    patchingStatus String
    Status of the patching operation.
    timePatchingEnded String
    Date and time when the patching operation ended.
    timePatchingStarted String
    Date and time when the patching operation started.

    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 logo
    Viewing docs for AWS v7.42.0
    published on Thursday, Aug 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial