1. Packages
  2. Azure Classic
  3. API Docs
  4. oracle
  5. getDbServers

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.oracle.getDbServers

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:oracle/getDbServers:getDbServers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CloudExadataInfrastructureName string
    The name of the Cloud Exadata Infrastructure.
    ResourceGroupName string
    The name of the Resource Group where the DB Server exists.
    CloudExadataInfrastructureName string
    The name of the Cloud Exadata Infrastructure.
    ResourceGroupName string
    The name of the Resource Group where the DB Server exists.
    cloudExadataInfrastructureName String
    The name of the Cloud Exadata Infrastructure.
    resourceGroupName String
    The name of the Resource Group where the DB Server exists.
    cloudExadataInfrastructureName string
    The name of the Cloud Exadata Infrastructure.
    resourceGroupName string
    The name of the Resource Group where the DB Server exists.
    cloud_exadata_infrastructure_name str
    The name of the Cloud Exadata Infrastructure.
    resource_group_name str
    The name of the Resource Group where the DB Server exists.
    cloudExadataInfrastructureName String
    The name of the Cloud Exadata Infrastructure.
    resourceGroupName String
    The name of the Resource Group where the DB Server exists.

    getDbServers Result

    The following output properties are available:

    CloudExadataInfrastructureName string
    DbServers List<GetDbServersDbServer>
    A db_servers block as defined below.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceGroupName string
    CloudExadataInfrastructureName string
    DbServers []GetDbServersDbServer
    A db_servers block as defined below.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceGroupName string
    cloudExadataInfrastructureName String
    dbServers List<GetDbServersDbServer>
    A db_servers block as defined below.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceGroupName String
    cloudExadataInfrastructureName string
    dbServers GetDbServersDbServer[]
    A db_servers block as defined below.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceGroupName string
    cloud_exadata_infrastructure_name str
    db_servers Sequence[GetDbServersDbServer]
    A db_servers block as defined below.
    id str
    The provider-assigned unique ID for this managed resource.
    resource_group_name str
    cloudExadataInfrastructureName String
    dbServers List<Property Map>
    A db_servers block as defined below.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceGroupName String

    Supporting Types

    GetDbServersDbServer

    AutonomousVirtualMachineDs List<string>
    The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
    AutonomousVmClusterIds List<string>
    The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
    CompartmentId string
    The OCID of the compartment.
    CpuCoreCount int
    The number of CPU cores enabled on the DB Server.
    DbNodeIds List<string>
    The OCID of the Db nodes associated with the DB Server.
    DbNodeStorageSizeInGbs int
    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.
    ExadataInfrastructureId string
    The OCID of the Exadata infrastructure.
    LifecycleDetails string
    Additional information about the current lifecycle state.
    LifecycleState string
    The current state of the DB Server.
    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 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.
    VmClusterIds List<string>
    The OCID of the VM Clusters associated with the DB Server.
    AutonomousVirtualMachineDs []string
    The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
    AutonomousVmClusterIds []string
    The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
    CompartmentId string
    The OCID of the compartment.
    CpuCoreCount int
    The number of CPU cores enabled on the DB Server.
    DbNodeIds []string
    The OCID of the Db nodes associated with the DB Server.
    DbNodeStorageSizeInGbs int
    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.
    ExadataInfrastructureId string
    The OCID of the Exadata infrastructure.
    LifecycleDetails string
    Additional information about the current lifecycle state.
    LifecycleState string
    The current state of the DB Server.
    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 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.
    VmClusterIds []string
    The OCID of the VM Clusters associated with the DB Server.
    autonomousVirtualMachineDs List<String>
    The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
    autonomousVmClusterIds List<String>
    The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
    compartmentId String
    The OCID of the compartment.
    cpuCoreCount Integer
    The number of CPU cores enabled on the DB Server.
    dbNodeIds List<String>
    The OCID of the Db nodes associated with the DB Server.
    dbNodeStorageSizeInGbs Integer
    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.
    exadataInfrastructureId String
    The OCID of the Exadata infrastructure.
    lifecycleDetails String
    Additional information about the current lifecycle state.
    lifecycleState String
    The current state of the DB Server.
    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 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.
    vmClusterIds List<String>
    The OCID of the VM Clusters associated with the DB Server.
    autonomousVirtualMachineDs string[]
    The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
    autonomousVmClusterIds string[]
    The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
    compartmentId string
    The OCID of the compartment.
    cpuCoreCount number
    The number of CPU cores enabled on the DB Server.
    dbNodeIds string[]
    The OCID of the Db nodes associated with the DB Server.
    dbNodeStorageSizeInGbs number
    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.
    exadataInfrastructureId string
    The OCID of the Exadata infrastructure.
    lifecycleDetails string
    Additional information about the current lifecycle state.
    lifecycleState string
    The current state of the DB Server.
    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 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.
    vmClusterIds string[]
    The OCID of the VM Clusters associated with the DB Server.
    autonomous_virtual_machine_ds Sequence[str]
    The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
    autonomous_vm_cluster_ids Sequence[str]
    The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
    compartment_id str
    The OCID of the compartment.
    cpu_core_count int
    The number of CPU cores enabled on the DB Server.
    db_node_ids Sequence[str]
    The OCID of the Db nodes associated with the DB Server.
    db_node_storage_size_in_gbs int
    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_id str
    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_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 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_ids Sequence[str]
    The OCID of the VM Clusters associated with the DB Server.
    autonomousVirtualMachineDs List<String>
    The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
    autonomousVmClusterIds List<String>
    The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
    compartmentId String
    The OCID of the compartment.
    cpuCoreCount Number
    The number of CPU cores enabled on the DB Server.
    dbNodeIds List<String>
    The OCID of the Db nodes associated with the DB Server.
    dbNodeStorageSizeInGbs Number
    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.
    exadataInfrastructureId String
    The OCID of the Exadata infrastructure.
    lifecycleDetails String
    Additional information about the current lifecycle state.
    lifecycleState String
    The current state of the DB Server.
    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 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.
    vmClusterIds List<String>
    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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi