We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:oracle/getDbServers:getDbServers
arguments:
# arguments dictionary
The following arguments are supported:
- Cloud
Exadata stringInfrastructure Name - The name of the Cloud Exadata Infrastructure.
- Resource
Group stringName - The name of the Resource Group where the DB Server exists.
- Cloud
Exadata stringInfrastructure Name - The name of the Cloud Exadata Infrastructure.
- Resource
Group stringName - The name of the Resource Group where the DB Server exists.
- cloud
Exadata StringInfrastructure Name - The name of the Cloud Exadata Infrastructure.
- resource
Group StringName - The name of the Resource Group where the DB Server exists.
- cloud
Exadata stringInfrastructure Name - The name of the Cloud Exadata Infrastructure.
- resource
Group 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.
- cloud
Exadata StringInfrastructure Name - The name of the Cloud Exadata Infrastructure.
- resource
Group StringName - The name of the Resource Group where the DB Server exists.
getDbServers Result
The following output properties are available:
- Cloud
Exadata stringInfrastructure Name - Db
Servers List<GetDb Servers Db Server> - A
db_servers
block as defined below. - Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Group stringName
- Cloud
Exadata stringInfrastructure Name - Db
Servers []GetDb Servers Db Server - A
db_servers
block as defined below. - Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Group stringName
- cloud
Exadata StringInfrastructure Name - db
Servers List<GetDb Servers Db Server> - A
db_servers
block as defined below. - id String
- The provider-assigned unique ID for this managed resource.
- resource
Group StringName
- cloud
Exadata stringInfrastructure Name - db
Servers GetDb Servers Db Server[] - A
db_servers
block as defined below. - id string
- The provider-assigned unique ID for this managed resource.
- resource
Group stringName
- cloud_
exadata_ strinfrastructure_ name - db_
servers Sequence[GetDb Servers Db Server] - A
db_servers
block as defined below. - id str
- The provider-assigned unique ID for this managed resource.
- resource_
group_ strname
- cloud
Exadata StringInfrastructure Name - db
Servers List<Property Map> - A
db_servers
block as defined below. - id String
- The provider-assigned unique ID for this managed resource.
- resource
Group StringName
Supporting Types
GetDbServersDbServer
- Autonomous
Virtual List<string>Machine Ds - The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
- Autonomous
Vm List<string>Cluster Ids - The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
- Compartment
Id string - The OCID of the compartment.
- Cpu
Core intCount - The number of CPU cores enabled on the DB Server.
- Db
Node List<string>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 string - The user-friendly name for the DB Server. The name does not need to be unique.
- Exadata
Infrastructure stringId - The OCID of the Exadata infrastructure.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- Lifecycle
State string - 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 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.
- Time
Created string - The date and time that the DB Server was created.
- Vm
Cluster List<string>Ids - The OCID of the VM Clusters associated with the DB Server.
- Autonomous
Virtual []stringMachine Ds - The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
- Autonomous
Vm []stringCluster Ids - The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
- Compartment
Id string - The OCID of the compartment.
- Cpu
Core intCount - The number of CPU cores enabled on the DB Server.
- Db
Node []stringIds - 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 string - The user-friendly name for the DB Server. The name does not need to be unique.
- Exadata
Infrastructure stringId - The OCID of the Exadata infrastructure.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- Lifecycle
State string - 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 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.
- Time
Created string - The date and time that the DB Server was created.
- Vm
Cluster []stringIds - The OCID of the VM Clusters associated with the DB Server.
- autonomous
Virtual List<String>Machine Ds - The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
- autonomous
Vm List<String>Cluster Ids - The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
- compartment
Id String - The OCID of the compartment.
- cpu
Core IntegerCount - The number of CPU cores enabled on the DB Server.
- db
Node List<String>Ids - The OCID of the Db nodes associated with the DB Server.
- db
Node IntegerStorage Size In Gbs - The allocated local node storage in GBs on the DB Server.
- display
Name String - The user-friendly name for the DB Server. The name does not need to be unique.
- exadata
Infrastructure StringId - The OCID of the Exadata infrastructure.
- lifecycle
Details String - Additional information about the current lifecycle state.
- lifecycle
State String - The current state of the DB Server.
- max
Cpu IntegerCount - The total number of CPU cores available.
- max
Db IntegerNode Storage In Gbs - The total local node storage available in GBs.
- max
Memory IntegerIn Gbs - The total memory available in GBs.
- memory
Size 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.
- time
Created String - The date and time that the DB Server was created.
- vm
Cluster List<String>Ids - The OCID of the VM Clusters associated with the DB Server.
- autonomous
Virtual string[]Machine Ds - The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
- autonomous
Vm string[]Cluster Ids - The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
- compartment
Id string - The OCID of the compartment.
- cpu
Core numberCount - The number of CPU cores enabled on the DB Server.
- db
Node string[]Ids - The OCID of the Db nodes associated with the DB Server.
- db
Node numberStorage Size In Gbs - The allocated local node storage in GBs on the DB Server.
- display
Name string - The user-friendly name for the DB Server. The name does not need to be unique.
- exadata
Infrastructure stringId - The OCID of the Exadata infrastructure.
- lifecycle
Details string - Additional information about the current lifecycle state.
- lifecycle
State string - The current state of the DB Server.
- max
Cpu numberCount - The total number of CPU cores available.
- max
Db numberNode Storage In Gbs - The total local node storage available in GBs.
- max
Memory numberIn Gbs - The total memory available in GBs.
- memory
Size 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.
- time
Created string - The date and time that the DB Server was created.
- vm
Cluster 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.
- autonomous
Virtual List<String>Machine Ds - The list of OCIDs of the Autonomous Virtual Machines associated with the DB Server.
- autonomous
Vm List<String>Cluster Ids - The list of OCIDs of the Autonomous VM Clusters associated with the DB Server.
- compartment
Id String - The OCID of the compartment.
- cpu
Core NumberCount - The number of CPU cores enabled on the DB Server.
- db
Node List<String>Ids - The OCID of the Db nodes associated with the DB Server.
- db
Node NumberStorage Size In Gbs - The allocated local node storage in GBs on the DB Server.
- display
Name String - The user-friendly name for the DB Server. The name does not need to be unique.
- exadata
Infrastructure StringId - The OCID of the Exadata infrastructure.
- lifecycle
Details String - Additional information about the current lifecycle state.
- lifecycle
State String - The current state of the DB Server.
- max
Cpu NumberCount - The total number of CPU cores available.
- max
Db NumberNode Storage In Gbs - The total local node storage available in GBs.
- max
Memory NumberIn Gbs - The total memory available in GBs.
- memory
Size 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.
- time
Created String - The date and time that the DB Server was created.
- vm
Cluster 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
azurerm
Terraform Provider.