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

aws.odb.getDbServer

Deploy with Pulumi
aws logo
AWS v7.8.0 published on Tuesday, Oct 7, 2025 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.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.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
    

    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: Optional[pulumi.Input[str]] = None,
                      id: Optional[pulumi.Input[str]] = None,
                      region: Optional[pulumi.Input[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

    The following arguments are supported:

    CloudExadataInfrastructureId string
    The unique identifier of the cloud vm cluster.
    Id string

    The 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
    The unique identifier of the cloud vm cluster.
    Id string

    The 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
    The unique identifier of the cloud vm cluster.
    id String

    The 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
    The unique identifier of the cloud vm cluster.
    id string

    The 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
    The unique identifier of the cloud vm cluster.
    id str

    The 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
    The unique identifier of the cloud vm cluster.
    id String

    The 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>
    The list of unique identifiers for the Autonomous VMs associated with this database server.
    AutonomousVmClusterIds List<string>
    The OCID of the autonomous VM clusters that are associated with the database server.
    CloudExadataInfrastructureId string
    ComputeModel string
    The compute model of the database server.
    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 allocated local node storage in GBs on the database server.
    DbServerPatchingDetails List<GetDbServerDbServerPatchingDetail>
    The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    DisplayName string
    The display name of the database server.
    ExadataInfrastructureId string
    The exadata infrastructure ID of the database server.
    Id string
    MaxCpuCount int
    The total number of CPU cores available.
    MaxDbNodeStorageInGbs int
    The total local node storage available in GBs.
    MaxMemoryInGbs int
    The total memory available in GBs.
    MemorySizeInGbs int
    The allocated memory in GBs on the database server.
    OciResourceAnchorName string
    The name of the OCI resource anchor.
    Ocid string
    The OCID of the database server to retrieve information about.
    Region string
    Shape string
    The shape of the database server. The shape determines the amount of CPU, storage, and memory resources available.
    Status string
    The status of the database server.
    StatusReason string
    Additional information about the current status of the database server.
    VmClusterIds List<string>
    The OCID of the VM clusters that are associated with the database server.
    AutonomousVirtualMachineIds []string
    The list of unique identifiers for the Autonomous VMs associated with this database server.
    AutonomousVmClusterIds []string
    The OCID of the autonomous VM clusters that are associated with the database server.
    CloudExadataInfrastructureId string
    ComputeModel string
    The compute model of the database server.
    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 allocated local node storage in GBs on the database server.
    DbServerPatchingDetails []GetDbServerDbServerPatchingDetail
    The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    DisplayName string
    The display name of the database server.
    ExadataInfrastructureId string
    The exadata infrastructure ID of the database server.
    Id string
    MaxCpuCount int
    The total number of CPU cores available.
    MaxDbNodeStorageInGbs int
    The total local node storage available in GBs.
    MaxMemoryInGbs int
    The total memory available in GBs.
    MemorySizeInGbs int
    The allocated memory in GBs on the database server.
    OciResourceAnchorName string
    The name of the OCI resource anchor.
    Ocid string
    The OCID of the database server to retrieve information about.
    Region string
    Shape string
    The shape of the database server. The shape determines the amount of CPU, storage, and memory resources available.
    Status string
    The status of the database server.
    StatusReason string
    Additional information about the current status of the database server.
    VmClusterIds []string
    The OCID of the VM clusters that are associated with the database server.
    autonomousVirtualMachineIds List<String>
    The list of unique identifiers for the Autonomous VMs associated with this database server.
    autonomousVmClusterIds List<String>
    The OCID of the autonomous VM clusters that are associated with the database server.
    cloudExadataInfrastructureId String
    computeModel String
    The compute model of the database server.
    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 allocated local node storage in GBs on the database server.
    dbServerPatchingDetails List<GetDbServerDbServerPatchingDetail>
    The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    displayName String
    The display name of the database server.
    exadataInfrastructureId String
    The exadata infrastructure ID of the database server.
    id String
    maxCpuCount Integer
    The total number of CPU cores available.
    maxDbNodeStorageInGbs Integer
    The total local node storage available in GBs.
    maxMemoryInGbs Integer
    The total memory available in GBs.
    memorySizeInGbs Integer
    The allocated memory in GBs on the database server.
    ociResourceAnchorName String
    The name of the OCI resource anchor.
    ocid String
    The OCID of the database server to retrieve information about.
    region String
    shape String
    The shape of the database server. The shape determines the amount of CPU, storage, and memory resources available.
    status String
    The status of the database server.
    statusReason String
    Additional information about the current status of the database server.
    vmClusterIds List<String>
    The OCID of the VM clusters that are associated with the database server.
    autonomousVirtualMachineIds string[]
    The list of unique identifiers for the Autonomous VMs associated with this database server.
    autonomousVmClusterIds string[]
    The OCID of the autonomous VM clusters that are associated with the database server.
    cloudExadataInfrastructureId string
    computeModel string
    The compute model of the database server.
    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 allocated local node storage in GBs on the database server.
    dbServerPatchingDetails GetDbServerDbServerPatchingDetail[]
    The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    displayName string
    The display name of the database server.
    exadataInfrastructureId string
    The exadata infrastructure ID of the database server.
    id string
    maxCpuCount number
    The total number of CPU cores available.
    maxDbNodeStorageInGbs number
    The total local node storage available in GBs.
    maxMemoryInGbs number
    The total memory available in GBs.
    memorySizeInGbs number
    The allocated memory in GBs on the database server.
    ociResourceAnchorName string
    The name of the OCI resource anchor.
    ocid string
    The OCID of the database server to retrieve information about.
    region string
    shape string
    The shape of the database server. The shape determines the amount of CPU, storage, and memory resources available.
    status string
    The status of the database server.
    statusReason string
    Additional information about the current status of the database server.
    vmClusterIds string[]
    The OCID of the VM clusters that are associated with the database server.
    autonomous_virtual_machine_ids Sequence[str]
    The list of unique identifiers for the Autonomous VMs associated with this database server.
    autonomous_vm_cluster_ids Sequence[str]
    The OCID of the autonomous VM clusters that are associated with the database server.
    cloud_exadata_infrastructure_id str
    compute_model str
    The compute model of the database server.
    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 allocated local node storage in GBs on the database server.
    db_server_patching_details Sequence[GetDbServerDbServerPatchingDetail]
    The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
    display_name str
    The display name of the database server.
    exadata_infrastructure_id str
    The exadata infrastructure ID of the database server.
    id str
    max_cpu_count int
    The total number of CPU cores available.
    max_db_node_storage_in_gbs int
    The total local node storage available in GBs.
    max_memory_in_gbs int
    The total memory available in GBs.
    memory_size_in_gbs int
    The allocated memory in GBs on the database server.
    oci_resource_anchor_name str
    The name of the OCI resource anchor.
    ocid str
    The OCID of the database server to retrieve information about.
    region str
    shape str
    The shape of the database server. The shape determines the amount of CPU, storage, and memory resources available.
    status str
    The status of the database server.
    status_reason str
    Additional information about the current status of the database server.
    vm_cluster_ids Sequence[str]
    The OCID of the VM clusters that are associated with the database server.
    autonomousVirtualMachineIds List<String>
    The list of unique identifiers for the Autonomous VMs associated with this database server.
    autonomousVmClusterIds List<String>
    The OCID of the autonomous VM clusters that are associated with the database server.
    cloudExadataInfrastructureId String
    computeModel String
    The compute model of the database server.
    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 allocated local node storage in GBs 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 display name of the database server.
    exadataInfrastructureId String
    The exadata infrastructure ID of the database server.
    id String
    maxCpuCount Number
    The total number of CPU cores available.
    maxDbNodeStorageInGbs Number
    The total local node storage available in GBs.
    maxMemoryInGbs Number
    The total memory available in GBs.
    memorySizeInGbs Number
    The allocated memory in GBs on the database server.
    ociResourceAnchorName String
    The name of the OCI resource anchor.
    ocid String
    The OCID of the database server to retrieve information about.
    region String
    shape String
    The shape of the database server. The shape determines the amount of CPU, storage, and memory resources available.
    status String
    The status of the database server.
    statusReason String
    Additional information about the current status of the database server.
    vmClusterIds List<String>
    The OCID of the VM clusters that are associated with the database server.

    Supporting Types

    GetDbServerDbServerPatchingDetail

    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