Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Database.getDbServers
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Db Servers in Oracle Cloud Infrastructure Database service.
Lists the Exadata DB servers in the ExadataInfrastructureId and specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbServers = oci.Database.getDbServers({
compartmentId: compartmentId,
exadataInfrastructureId: testExadataInfrastructure.id,
displayName: dbServerDisplayName,
state: dbServerState,
});
import pulumi
import pulumi_oci as oci
test_db_servers = oci.Database.get_db_servers(compartment_id=compartment_id,
exadata_infrastructure_id=test_exadata_infrastructure["id"],
display_name=db_server_display_name,
state=db_server_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Database"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Database.GetDbServers(ctx, &database.GetDbServersArgs{
CompartmentId: compartmentId,
ExadataInfrastructureId: testExadataInfrastructure.Id,
DisplayName: pulumi.StringRef(dbServerDisplayName),
State: pulumi.StringRef(dbServerState),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDbServers = Oci.Database.GetDbServers.Invoke(new()
{
CompartmentId = compartmentId,
ExadataInfrastructureId = testExadataInfrastructure.Id,
DisplayName = dbServerDisplayName,
State = dbServerState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.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 testDbServers = DatabaseFunctions.getDbServers(GetDbServersArgs.builder()
.compartmentId(compartmentId)
.exadataInfrastructureId(testExadataInfrastructure.id())
.displayName(dbServerDisplayName)
.state(dbServerState)
.build());
}
}
variables:
testDbServers:
fn::invoke:
Function: oci:Database:getDbServers
Arguments:
compartmentId: ${compartmentId}
exadataInfrastructureId: ${testExadataInfrastructure.id}
displayName: ${dbServerDisplayName}
state: ${dbServerState}
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(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
exadata_infrastructure_id: Optional[str] = None,
filters: Optional[Sequence[_database.GetDbServersFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbServersResult
def get_db_servers_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
exadata_infrastructure_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetDbServersFilterArgs]]]] = None,
state: 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: oci:Database/getDbServers:getDbServers
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The compartment OCID.
- Exadata
Infrastructure stringId - The OCID of the ExadataInfrastructure.
- Display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- Filters
List<Get
Db Servers Filter> - State string
- A filter to return only resources that match the given lifecycle state exactly.
- Compartment
Id string - The compartment OCID.
- Exadata
Infrastructure stringId - The OCID of the ExadataInfrastructure.
- Display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- Filters
[]Get
Db Servers Filter - State string
- A filter to return only resources that match the given lifecycle state exactly.
- compartment
Id String - The compartment OCID.
- exadata
Infrastructure StringId - The OCID of the ExadataInfrastructure.
- display
Name String - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters
List<Get
Db Servers Filter> - state String
- A filter to return only resources that match the given lifecycle state exactly.
- compartment
Id string - The compartment OCID.
- exadata
Infrastructure stringId - The OCID of the ExadataInfrastructure.
- display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters
Get
Db Servers Filter[] - state string
- A filter to return only resources that match the given lifecycle state exactly.
- compartment_
id str - The compartment OCID.
- exadata_
infrastructure_ strid - The OCID of the ExadataInfrastructure.
- display_
name str - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters
Sequence[database.
Get Db Servers Filter] - state str
- A filter to return only resources that match the given lifecycle state exactly.
- compartment
Id String - The compartment OCID.
- exadata
Infrastructure StringId - The OCID of the ExadataInfrastructure.
- display
Name String - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters List<Property Map>
- state String
- A filter to return only resources that match the given lifecycle state exactly.
getDbServers Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
- Db
Servers List<GetDb Servers Db Server> - The list of db_servers.
- Exadata
Infrastructure stringId - The OCID of the Exadata infrastructure.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - The user-friendly name for the Db server. The name does not need to be unique.
- Filters
List<Get
Db Servers Filter> - State string
- The current state of the Db server.
- Compartment
Id string - The OCID of the compartment.
- Db
Servers []GetDb Servers Db Server - The list of db_servers.
- Exadata
Infrastructure stringId - The OCID of the Exadata infrastructure.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - The user-friendly name for the Db server. The name does not need to be unique.
- Filters
[]Get
Db Servers Filter - State string
- The current state of the Db server.
- compartment
Id String - The OCID of the compartment.
- db
Servers List<GetDb Servers Db Server> - The list of db_servers.
- exadata
Infrastructure StringId - The OCID of the Exadata infrastructure.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - The user-friendly name for the Db server. The name does not need to be unique.
- filters
List<Get
Db Servers Filter> - state String
- The current state of the Db server.
- compartment
Id string - The OCID of the compartment.
- db
Servers GetDb Servers Db Server[] - The list of db_servers.
- exadata
Infrastructure stringId - The OCID of the Exadata infrastructure.
- id string
- The provider-assigned unique ID for this managed resource.
- display
Name string - The user-friendly name for the Db server. The name does not need to be unique.
- filters
Get
Db Servers Filter[] - state string
- The current state of the Db server.
- compartment_
id str - The OCID of the compartment.
- db_
servers Sequence[database.Get Db Servers Db Server] - The list of db_servers.
- exadata_
infrastructure_ strid - The OCID of the Exadata infrastructure.
- id str
- The provider-assigned unique ID for this managed resource.
- display_
name str - The user-friendly name for the Db server. The name does not need to be unique.
- filters
Sequence[database.
Get Db Servers Filter] - state str
- The current state of the Db server.
- compartment
Id String - The OCID of the compartment.
- db
Servers List<Property Map> - The list of db_servers.
- exadata
Infrastructure StringId - The OCID of the Exadata infrastructure.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - The user-friendly name for the Db server. The name does not need to be unique.
- filters List<Property Map>
- state String
- The current state of the Db server.
Supporting Types
GetDbServersDbServer
- Autonomous
Virtual List<string>Machine Ids - 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 compartment OCID.
- 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.
- Db
Server List<GetPatching Details Db Servers Db Server Db Server Patching Detail> - The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- Exadata
Infrastructure stringId - The OCID of the ExadataInfrastructure.
- Dictionary<string, object>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the Exacc Db server.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- 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.
- Shape string
- The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available.
- State string
- A filter to return only resources that match the given lifecycle state exactly.
- 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 Ids - 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 compartment OCID.
- 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.
- Db
Server []GetPatching Details Db Servers Db Server Db Server Patching Detail - The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- Exadata
Infrastructure stringId - The OCID of the ExadataInfrastructure.
- map[string]interface{}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the Exacc Db server.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- 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.
- Shape string
- The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available.
- State string
- A filter to return only resources that match the given lifecycle state exactly.
- 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 Ids - 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 compartment OCID.
- 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.
- db
Server List<GetPatching Details Db Servers Db Server Db Server Patching Detail> - The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- exadata
Infrastructure StringId - The OCID of the ExadataInfrastructure.
- Map<String,Object>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the Exacc Db server.
- lifecycle
Details String - Additional information about the current lifecycle state.
- 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.
- shape String
- The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available.
- state String
- A filter to return only resources that match the given lifecycle state exactly.
- 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 Ids - 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 compartment OCID.
- 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.
- db
Server GetPatching Details Db Servers Db Server Db Server Patching Detail[] - The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- exadata
Infrastructure stringId - The OCID of the ExadataInfrastructure.
- {[key: string]: any}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id string
- The OCID of the Exacc Db server.
- lifecycle
Details string - Additional information about the current lifecycle state.
- 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.
- shape string
- The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available.
- state string
- A filter to return only resources that match the given lifecycle state exactly.
- 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_ ids - 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 compartment OCID.
- 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.
- db_
server_ Sequence[database.patching_ details Get Db Servers Db Server Db Server Patching Detail] - The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
- Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display_
name str - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- exadata_
infrastructure_ strid - The OCID of the ExadataInfrastructure.
- Mapping[str, Any]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
- The OCID of the Exacc Db server.
- lifecycle_
details str - Additional information about the current lifecycle state.
- 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.
- shape str
- The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available.
- state str
- A filter to return only resources that match the given lifecycle state exactly.
- 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 Ids - 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 compartment OCID.
- 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.
- db
Server List<Property Map>Patching Details - The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- exadata
Infrastructure StringId - The OCID of the ExadataInfrastructure.
- Map<Any>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the Exacc Db server.
- lifecycle
Details String - Additional information about the current lifecycle state.
- 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.
- shape String
- The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available.
- state String
- A filter to return only resources that match the given lifecycle state exactly.
- 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.
GetDbServersDbServerDbServerPatchingDetail
- Estimated
Patch intDuration - Estimated time, in minutes, to patch one database server.
- Patching
Status string - The status of the patching operation.
- Time
Patching stringEnded - The time when the patching operation ended.
- Time
Patching stringStarted - The time when the patching operation started.
- Estimated
Patch intDuration - Estimated time, in minutes, to patch one database server.
- Patching
Status string - The status of the patching operation.
- Time
Patching stringEnded - The time when the patching operation ended.
- Time
Patching stringStarted - The time when the patching operation started.
- estimated
Patch IntegerDuration - Estimated time, in minutes, to patch one database server.
- patching
Status String - The status of the patching operation.
- time
Patching StringEnded - The time when the patching operation ended.
- time
Patching StringStarted - The time when the patching operation started.
- estimated
Patch numberDuration - Estimated time, in minutes, to patch one database server.
- patching
Status string - The status of the patching operation.
- time
Patching stringEnded - The time when the patching operation ended.
- time
Patching stringStarted - The time when the patching operation started.
- estimated_
patch_ intduration - Estimated time, in minutes, to patch one database server.
- patching_
status str - The status of the patching operation.
- time_
patching_ strended - The time when the patching operation ended.
- time_
patching_ strstarted - The time when the patching operation started.
- estimated
Patch NumberDuration - Estimated time, in minutes, to patch one database server.
- patching
Status String - The status of the patching operation.
- time
Patching StringEnded - The time when the patching operation ended.
- time
Patching StringStarted - The time when the patching operation started.
GetDbServersFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi