We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.oracle.getDbServers
Explore with Pulumi AI
Use this data source to access information about existing DB Servers.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.oracle.getDbServers({
    resourceGroupName: "existing",
    cloudExadataInfrastructureName: "existing",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.oracle.get_db_servers(resource_group_name="existing",
    cloud_exadata_infrastructure_name="existing")
pulumi.export("id", example.id)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/oracle"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := oracle.GetDbServers(ctx, &oracle.GetDbServersArgs{
			ResourceGroupName:              "existing",
			CloudExadataInfrastructureName: "existing",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.Oracle.GetDbServers.Invoke(new()
    {
        ResourceGroupName = "existing",
        CloudExadataInfrastructureName = "existing",
    });
    return new Dictionary<string, object?>
    {
        ["id"] = example.Apply(getDbServersResult => getDbServersResult.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.oracle.OracleFunctions;
import com.pulumi.azure.oracle.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 = OracleFunctions.getDbServers(GetDbServersArgs.builder()
            .resourceGroupName("existing")
            .cloudExadataInfrastructureName("existing")
            .build());
        ctx.export("id", example.applyValue(getDbServersResult -> getDbServersResult.id()));
    }
}
variables:
  example:
    fn::invoke:
      function: azure:oracle:getDbServers
      arguments:
        resourceGroupName: existing
        cloudExadataInfrastructureName: existing
outputs:
  id: ${example.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_name: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetDbServersResult
def get_db_servers_output(cloud_exadata_infrastructure_name: Optional[pulumi.Input[str]] = None,
                   resource_group_name: 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: azure:oracle/getDbServers:getDbServers
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CloudExadata stringInfrastructure Name 
- The name of the Cloud Exadata Infrastructure.
- ResourceGroup stringName 
- The name of the Resource Group where the DB Server exists.
- CloudExadata stringInfrastructure Name 
- The name of the Cloud Exadata Infrastructure.
- ResourceGroup stringName 
- The name of the Resource Group where the DB Server exists.
- cloudExadata StringInfrastructure Name 
- The name of the Cloud Exadata Infrastructure.
- resourceGroup StringName 
- The name of the Resource Group where the DB Server exists.
- cloudExadata stringInfrastructure Name 
- The name of the Cloud Exadata Infrastructure.
- resourceGroup stringName 
- The name of the Resource Group where the DB Server exists.
- cloud_exadata_ strinfrastructure_ name 
- The name of the Cloud Exadata Infrastructure.
- resource_group_ strname 
- The name of the Resource Group where the DB Server exists.
- cloudExadata StringInfrastructure Name 
- The name of the Cloud Exadata Infrastructure.
- resourceGroup StringName 
- The name of the Resource Group where the DB Server exists.
getDbServers Result
The following output properties are available:
- CloudExadata stringInfrastructure Name 
- DbServers List<GetDb Servers Db Server> 
- A db_serversblock as defined below.
- Id string
- The provider-assigned unique ID for this managed resource.
- ResourceGroup stringName 
- CloudExadata stringInfrastructure Name 
- DbServers []GetDb Servers Db Server 
- A db_serversblock as defined below.
- Id string
- The provider-assigned unique ID for this managed resource.
- ResourceGroup stringName 
- cloudExadata StringInfrastructure Name 
- dbServers List<GetDb Servers Db Server> 
- A db_serversblock as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- resourceGroup StringName 
- cloudExadata stringInfrastructure Name 
- dbServers GetDb Servers Db Server[] 
- A db_serversblock as defined below.
- id string
- The provider-assigned unique ID for this managed resource.
- resourceGroup stringName 
- cloud_exadata_ strinfrastructure_ name 
- db_servers Sequence[GetDb Servers Db Server] 
- A db_serversblock as defined below.
- id str
- The provider-assigned unique ID for this managed resource.
- resource_group_ strname 
- cloudExadata StringInfrastructure Name 
- dbServers List<Property Map>
- A db_serversblock as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- resourceGroup StringName 
Supporting Types
GetDbServersDbServer    
- AutonomousVirtual List<string>Machine Ds 
- The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
- AutonomousVm List<string>Cluster Ids 
- The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
- CompartmentId string
- The OCID of the compartment.
- CpuCore intCount 
- The number of CPU cores enabled on the DB Server.
- DbNode List<string>Ids 
- The OCID of the Db nodes associated with the DB Server.
- DbNode intStorage Size In Gbs 
- The allocated local node storage in GBs on the DB Server.
- DisplayName string
- The user-friendly name for the DB Server. The name does not need to be unique.
- ExadataInfrastructure stringId 
- The OCID of the Exadata infrastructure.
- LifecycleDetails string
- Additional information about the current lifecycle state.
- LifecycleState string
- The current state of the DB Server.
- MaxCpu intCount 
- The total number of CPU cores available.
- MaxDb intNode Storage In Gbs 
- The total local node storage available in GBs.
- MaxMemory intIn Gbs 
- The total memory available in GBs.
- MemorySize intIn Gbs 
- The allocated memory in GBs on the DB Server.
- Ocid string
- The OCID of the DB Server.
- Shape string
- The shape of the DB Server. The shape determines the amount of CPU, storage, and memory resources available.
- TimeCreated string
- The date and time that the DB Server was created.
- VmCluster List<string>Ids 
- The OCID of the VM Clusters associated with the DB Server.
- AutonomousVirtual []stringMachine Ds 
- The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
- AutonomousVm []stringCluster Ids 
- The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
- CompartmentId string
- The OCID of the compartment.
- CpuCore intCount 
- The number of CPU cores enabled on the DB Server.
- DbNode []stringIds 
- The OCID of the Db nodes associated with the DB Server.
- DbNode intStorage Size In Gbs 
- The allocated local node storage in GBs on the DB Server.
- DisplayName string
- The user-friendly name for the DB Server. The name does not need to be unique.
- ExadataInfrastructure stringId 
- The OCID of the Exadata infrastructure.
- LifecycleDetails string
- Additional information about the current lifecycle state.
- LifecycleState string
- The current state of the DB Server.
- MaxCpu intCount 
- The total number of CPU cores available.
- MaxDb intNode Storage In Gbs 
- The total local node storage available in GBs.
- MaxMemory intIn Gbs 
- The total memory available in GBs.
- MemorySize intIn Gbs 
- The allocated memory in GBs on the DB Server.
- Ocid string
- The OCID of the DB Server.
- Shape string
- The shape of the DB Server. The shape determines the amount of CPU, storage, and memory resources available.
- TimeCreated string
- The date and time that the DB Server was created.
- VmCluster []stringIds 
- The OCID of the VM Clusters associated with the DB Server.
- autonomousVirtual List<String>Machine Ds 
- The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
- autonomousVm List<String>Cluster Ids 
- The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
- compartmentId String
- The OCID of the compartment.
- cpuCore IntegerCount 
- The number of CPU cores enabled on the DB Server.
- dbNode List<String>Ids 
- The OCID of the Db nodes associated with the DB Server.
- dbNode IntegerStorage Size In Gbs 
- The allocated local node storage in GBs on the DB Server.
- displayName String
- The user-friendly name for the DB Server. The name does not need to be unique.
- exadataInfrastructure StringId 
- The OCID of the Exadata infrastructure.
- lifecycleDetails String
- Additional information about the current lifecycle state.
- lifecycleState String
- The current state of the DB Server.
- maxCpu IntegerCount 
- The total number of CPU cores available.
- maxDb IntegerNode Storage In Gbs 
- The total local node storage available in GBs.
- maxMemory IntegerIn Gbs 
- The total memory available in GBs.
- memorySize IntegerIn Gbs 
- The allocated memory in GBs on the DB Server.
- ocid String
- The OCID of the DB Server.
- shape String
- The shape of the DB Server. The shape determines the amount of CPU, storage, and memory resources available.
- timeCreated String
- The date and time that the DB Server was created.
- vmCluster List<String>Ids 
- The OCID of the VM Clusters associated with the DB Server.
- autonomousVirtual string[]Machine Ds 
- The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
- autonomousVm string[]Cluster Ids 
- The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
- compartmentId string
- The OCID of the compartment.
- cpuCore numberCount 
- The number of CPU cores enabled on the DB Server.
- dbNode string[]Ids 
- The OCID of the Db nodes associated with the DB Server.
- dbNode numberStorage Size In Gbs 
- The allocated local node storage in GBs on the DB Server.
- displayName string
- The user-friendly name for the DB Server. The name does not need to be unique.
- exadataInfrastructure stringId 
- The OCID of the Exadata infrastructure.
- lifecycleDetails string
- Additional information about the current lifecycle state.
- lifecycleState string
- The current state of the DB Server.
- maxCpu numberCount 
- The total number of CPU cores available.
- maxDb numberNode Storage In Gbs 
- The total local node storage available in GBs.
- maxMemory numberIn Gbs 
- The total memory available in GBs.
- memorySize numberIn Gbs 
- The allocated memory in GBs on the DB Server.
- ocid string
- The OCID of the DB Server.
- shape string
- The shape of the DB Server. The shape determines the amount of CPU, storage, and memory resources available.
- timeCreated string
- The date and time that the DB Server was created.
- vmCluster string[]Ids 
- The OCID of the VM Clusters associated with the DB Server.
- autonomous_virtual_ Sequence[str]machine_ ds 
- The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
- autonomous_vm_ Sequence[str]cluster_ ids 
- The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
- compartment_id str
- The OCID of the compartment.
- cpu_core_ intcount 
- The number of CPU cores enabled on the DB Server.
- db_node_ Sequence[str]ids 
- The OCID of the Db nodes associated with the DB Server.
- db_node_ intstorage_ size_ in_ gbs 
- The allocated local node storage in GBs on the DB Server.
- display_name str
- The user-friendly name for the DB Server. The name does not need to be unique.
- exadata_infrastructure_ strid 
- The OCID of the Exadata infrastructure.
- lifecycle_details str
- Additional information about the current lifecycle state.
- lifecycle_state str
- The current state of the DB Server.
- max_cpu_ intcount 
- The total number of CPU cores available.
- max_db_ intnode_ storage_ in_ gbs 
- The total local node storage available in GBs.
- max_memory_ intin_ gbs 
- The total memory available in GBs.
- memory_size_ intin_ gbs 
- The allocated memory in GBs on the DB Server.
- ocid str
- The OCID of the DB Server.
- shape str
- The shape of the DB Server. The shape determines the amount of CPU, storage, and memory resources available.
- time_created str
- The date and time that the DB Server was created.
- vm_cluster_ Sequence[str]ids 
- The OCID of the VM Clusters associated with the DB Server.
- autonomousVirtual List<String>Machine Ds 
- The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
- autonomousVm List<String>Cluster Ids 
- The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
- compartmentId String
- The OCID of the compartment.
- cpuCore NumberCount 
- The number of CPU cores enabled on the DB Server.
- dbNode List<String>Ids 
- The OCID of the Db nodes associated with the DB Server.
- dbNode NumberStorage Size In Gbs 
- The allocated local node storage in GBs on the DB Server.
- displayName String
- The user-friendly name for the DB Server. The name does not need to be unique.
- exadataInfrastructure StringId 
- The OCID of the Exadata infrastructure.
- lifecycleDetails String
- Additional information about the current lifecycle state.
- lifecycleState String
- The current state of the DB Server.
- maxCpu NumberCount 
- The total number of CPU cores available.
- maxDb NumberNode Storage In Gbs 
- The total local node storage available in GBs.
- maxMemory NumberIn Gbs 
- The total memory available in GBs.
- memorySize NumberIn Gbs 
- The allocated memory in GBs on the DB Server.
- ocid String
- The OCID of the DB Server.
- shape String
- The shape of the DB Server. The shape determines the amount of CPU, storage, and memory resources available.
- timeCreated String
- The date and time that the DB Server was created.
- vmCluster List<String>Ids 
- The OCID of the VM Clusters associated with the DB Server.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.