oci.DatabaseManagement.getExternalDatabases
This data source provides the list of External Databases in Oracle Cloud Infrastructure Database Management service.
Lists the external databases in the specified compartment or in the specified DB system.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testExternalDatabases = Oci.DatabaseManagement.GetExternalDatabases.Invoke(new()
{
CompartmentId = @var.Compartment_id,
DisplayName = @var.External_database_display_name,
ExternalDbSystemId = oci_database_management_external_db_system.Test_external_db_system.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/DatabaseManagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DatabaseManagement.GetExternalDatabases(ctx, &databasemanagement.GetExternalDatabasesArgs{
CompartmentId: pulumi.StringRef(_var.Compartment_id),
DisplayName: pulumi.StringRef(_var.External_database_display_name),
ExternalDbSystemId: pulumi.StringRef(oci_database_management_external_db_system.Test_external_db_system.Id),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.DatabaseManagementFunctions;
import com.pulumi.oci.DatabaseManagement.inputs.GetExternalDatabasesArgs;
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 testExternalDatabases = DatabaseManagementFunctions.getExternalDatabases(GetExternalDatabasesArgs.builder()
.compartmentId(var_.compartment_id())
.displayName(var_.external_database_display_name())
.externalDbSystemId(oci_database_management_external_db_system.test_external_db_system().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_external_databases = oci.DatabaseManagement.get_external_databases(compartment_id=var["compartment_id"],
display_name=var["external_database_display_name"],
external_db_system_id=oci_database_management_external_db_system["test_external_db_system"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testExternalDatabases = oci.DatabaseManagement.getExternalDatabases({
compartmentId: _var.compartment_id,
displayName: _var.external_database_display_name,
externalDbSystemId: oci_database_management_external_db_system.test_external_db_system.id,
});
variables:
testExternalDatabases:
fn::invoke:
Function: oci:DatabaseManagement:getExternalDatabases
Arguments:
compartmentId: ${var.compartment_id}
displayName: ${var.external_database_display_name}
externalDbSystemId: ${oci_database_management_external_db_system.test_external_db_system.id}
Using getExternalDatabases
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 getExternalDatabases(args: GetExternalDatabasesArgs, opts?: InvokeOptions): Promise<GetExternalDatabasesResult>
function getExternalDatabasesOutput(args: GetExternalDatabasesOutputArgs, opts?: InvokeOptions): Output<GetExternalDatabasesResult>
def get_external_databases(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
external_db_system_id: Optional[str] = None,
filters: Optional[Sequence[_databasemanagement.GetExternalDatabasesFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetExternalDatabasesResult
def get_external_databases_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
external_db_system_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_databasemanagement.GetExternalDatabasesFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetExternalDatabasesResult]
func GetExternalDatabases(ctx *Context, args *GetExternalDatabasesArgs, opts ...InvokeOption) (*GetExternalDatabasesResult, error)
func GetExternalDatabasesOutput(ctx *Context, args *GetExternalDatabasesOutputArgs, opts ...InvokeOption) GetExternalDatabasesResultOutput
> Note: This function is named GetExternalDatabases
in the Go SDK.
public static class GetExternalDatabases
{
public static Task<GetExternalDatabasesResult> InvokeAsync(GetExternalDatabasesArgs args, InvokeOptions? opts = null)
public static Output<GetExternalDatabasesResult> Invoke(GetExternalDatabasesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetExternalDatabasesResult> getExternalDatabases(GetExternalDatabasesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DatabaseManagement/getExternalDatabases:getExternalDatabases
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The OCID of the compartment.
- Display
Name string A filter to only return the resources that match the entire display name.
- External
Db stringSystem Id The OCID of the external DB system.
- Filters
List<Get
External Databases Filter>
- Compartment
Id string The OCID of the compartment.
- Display
Name string A filter to only return the resources that match the entire display name.
- External
Db stringSystem Id The OCID of the external DB system.
- Filters
[]Get
External Databases Filter
- compartment
Id String The OCID of the compartment.
- display
Name String A filter to only return the resources that match the entire display name.
- external
Db StringSystem Id The OCID of the external DB system.
- filters
List<Get
External Databases Filter>
- compartment
Id string The OCID of the compartment.
- display
Name string A filter to only return the resources that match the entire display name.
- external
Db stringSystem Id The OCID of the external DB system.
- filters
Get
External Databases Filter[]
- compartment_
id str The OCID of the compartment.
- display_
name str A filter to only return the resources that match the entire display name.
- external_
db_ strsystem_ id The OCID of the external DB system.
- filters
Get
External Databases Filter]
- compartment
Id String The OCID of the compartment.
- display
Name String A filter to only return the resources that match the entire display name.
- external
Db StringSystem Id The OCID of the external DB system.
- filters List<Property Map>
getExternalDatabases Result
The following output properties are available:
- External
Database List<GetCollections External Databases External Database Collection> The list of external_database_collection.
- Id string
The provider-assigned unique ID for this managed resource.
- Compartment
Id string The OCID of the compartment.
- Display
Name string The user-friendly name for the database. The name does not have to be unique.
- External
Db stringSystem Id - Filters
List<Get
External Databases Filter>
- External
Database []GetCollections External Databases External Database Collection The list of external_database_collection.
- Id string
The provider-assigned unique ID for this managed resource.
- Compartment
Id string The OCID of the compartment.
- Display
Name string The user-friendly name for the database. The name does not have to be unique.
- External
Db stringSystem Id - Filters
[]Get
External Databases Filter
- external
Database List<GetCollections External Databases External Database Collection> The list of external_database_collection.
- id String
The provider-assigned unique ID for this managed resource.
- compartment
Id String The OCID of the compartment.
- display
Name String The user-friendly name for the database. The name does not have to be unique.
- external
Db StringSystem Id - filters
List<Get
External Databases Filter>
- external
Database GetCollections External Databases External Database Collection[] The list of external_database_collection.
- id string
The provider-assigned unique ID for this managed resource.
- compartment
Id string The OCID of the compartment.
- display
Name string The user-friendly name for the database. The name does not have to be unique.
- external
Db stringSystem Id - filters
Get
External Databases Filter[]
- external_
database_ Getcollections External Databases External Database Collection] The list of external_database_collection.
- id str
The provider-assigned unique ID for this managed resource.
- compartment_
id str The OCID of the compartment.
- display_
name str The user-friendly name for the database. The name does not have to be unique.
- external_
db_ strsystem_ id - filters
Get
External Databases Filter]
- external
Database List<Property Map>Collections The list of external_database_collection.
- id String
The provider-assigned unique ID for this managed resource.
- compartment
Id String The OCID of the compartment.
- display
Name String The user-friendly name for the database. The name does not have to be unique.
- external
Db StringSystem Id - filters List<Property Map>
Supporting Types
GetExternalDatabasesExternalDatabaseCollection
- Items
List<Get
External Databases External Database Collection Item> An array of external databases.
- Items
[]Get
External Databases External Database Collection Item An array of external databases.
- items
List<Get
External Databases External Database Collection Item> An array of external databases.
- items
Get
External Databases External Database Collection Item[] An array of external databases.
- items
Get
External Databases External Database Collection Item] An array of external databases.
- items List<Property Map>
An array of external databases.
GetExternalDatabasesExternalDatabaseCollectionItem
- Compartment
Id string The OCID of the compartment.
- Database
Sub stringType The subtype of Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, or Non-container Database.
- Database
Type string The type of Oracle Database installation.
- Db
Management List<GetConfigs External Databases External Database Collection Item Db Management Config> The configuration of the Database Management service.
- Db
System List<GetInfos External Databases External Database Collection Item Db System Info> The basic information about an external DB system.
- Db
Unique stringName The
DB_UNIQUE_NAME
of the external database.- Display
Name string A filter to only return the resources that match the entire display name.
- External
Container stringDatabase Id The OCID of the parent Container Database (CDB) if this is a Pluggable Database (PDB).
- External
Db stringHome Id The OCID of the external DB home.
- Id string
The OCID of the external DB system.
- Instance
Details List<GetExternal Databases External Database Collection Item Instance Detail> The list of database instances if the database is a RAC database.
- State string
The current lifecycle state of the external database resource.
- Time
Created string The date and time the external DB system was created.
- Compartment
Id string The OCID of the compartment.
- Database
Sub stringType The subtype of Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, or Non-container Database.
- Database
Type string The type of Oracle Database installation.
- Db
Management []GetConfigs External Databases External Database Collection Item Db Management Config The configuration of the Database Management service.
- Db
System []GetInfos External Databases External Database Collection Item Db System Info The basic information about an external DB system.
- Db
Unique stringName The
DB_UNIQUE_NAME
of the external database.- Display
Name string A filter to only return the resources that match the entire display name.
- External
Container stringDatabase Id The OCID of the parent Container Database (CDB) if this is a Pluggable Database (PDB).
- External
Db stringHome Id The OCID of the external DB home.
- Id string
The OCID of the external DB system.
- Instance
Details []GetExternal Databases External Database Collection Item Instance Detail The list of database instances if the database is a RAC database.
- State string
The current lifecycle state of the external database resource.
- Time
Created string The date and time the external DB system was created.
- compartment
Id String The OCID of the compartment.
- database
Sub StringType The subtype of Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, or Non-container Database.
- database
Type String The type of Oracle Database installation.
- db
Management List<GetConfigs External Databases External Database Collection Item Db Management Config> The configuration of the Database Management service.
- db
System List<GetInfos External Databases External Database Collection Item Db System Info> The basic information about an external DB system.
- db
Unique StringName The
DB_UNIQUE_NAME
of the external database.- display
Name String A filter to only return the resources that match the entire display name.
- external
Container StringDatabase Id The OCID of the parent Container Database (CDB) if this is a Pluggable Database (PDB).
- external
Db StringHome Id The OCID of the external DB home.
- id String
The OCID of the external DB system.
- instance
Details List<GetExternal Databases External Database Collection Item Instance Detail> The list of database instances if the database is a RAC database.
- state String
The current lifecycle state of the external database resource.
- time
Created String The date and time the external DB system was created.
- compartment
Id string The OCID of the compartment.
- database
Sub stringType The subtype of Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, or Non-container Database.
- database
Type string The type of Oracle Database installation.
- db
Management GetConfigs External Databases External Database Collection Item Db Management Config[] The configuration of the Database Management service.
- db
System GetInfos External Databases External Database Collection Item Db System Info[] The basic information about an external DB system.
- db
Unique stringName The
DB_UNIQUE_NAME
of the external database.- display
Name string A filter to only return the resources that match the entire display name.
- external
Container stringDatabase Id The OCID of the parent Container Database (CDB) if this is a Pluggable Database (PDB).
- external
Db stringHome Id The OCID of the external DB home.
- id string
The OCID of the external DB system.
- instance
Details GetExternal Databases External Database Collection Item Instance Detail[] The list of database instances if the database is a RAC database.
- state string
The current lifecycle state of the external database resource.
- time
Created string The date and time the external DB system was created.
- compartment_
id str The OCID of the compartment.
- database_
sub_ strtype The subtype of Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, or Non-container Database.
- database_
type str The type of Oracle Database installation.
- db_
management_ Getconfigs External Databases External Database Collection Item Db Management Config] The configuration of the Database Management service.
- db_
system_ Getinfos External Databases External Database Collection Item Db System Info] The basic information about an external DB system.
- db_
unique_ strname The
DB_UNIQUE_NAME
of the external database.- display_
name str A filter to only return the resources that match the entire display name.
- external_
container_ strdatabase_ id The OCID of the parent Container Database (CDB) if this is a Pluggable Database (PDB).
- external_
db_ strhome_ id The OCID of the external DB home.
- id str
The OCID of the external DB system.
- instance_
details GetExternal Databases External Database Collection Item Instance Detail] The list of database instances if the database is a RAC database.
- state str
The current lifecycle state of the external database resource.
- time_
created str The date and time the external DB system was created.
- compartment
Id String The OCID of the compartment.
- database
Sub StringType The subtype of Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, or Non-container Database.
- database
Type String The type of Oracle Database installation.
- db
Management List<Property Map>Configs The configuration of the Database Management service.
- db
System List<Property Map>Infos The basic information about an external DB system.
- db
Unique StringName The
DB_UNIQUE_NAME
of the external database.- display
Name String A filter to only return the resources that match the entire display name.
- external
Container StringDatabase Id The OCID of the parent Container Database (CDB) if this is a Pluggable Database (PDB).
- external
Db StringHome Id The OCID of the external DB home.
- id String
The OCID of the external DB system.
- instance
Details List<Property Map> The list of database instances if the database is a RAC database.
- state String
The current lifecycle state of the external database resource.
- time
Created String The date and time the external DB system was created.
GetExternalDatabasesExternalDatabaseCollectionItemDbManagementConfig
- Connector
Id string The OCID of the external database connector.
- Database
Management stringStatus The status of the Database Management service.
- License
Model string The Oracle license model that applies to the external database.
- Connector
Id string The OCID of the external database connector.
- Database
Management stringStatus The status of the Database Management service.
- License
Model string The Oracle license model that applies to the external database.
- connector
Id String The OCID of the external database connector.
- database
Management StringStatus The status of the Database Management service.
- license
Model String The Oracle license model that applies to the external database.
- connector
Id string The OCID of the external database connector.
- database
Management stringStatus The status of the Database Management service.
- license
Model string The Oracle license model that applies to the external database.
- connector_
id str The OCID of the external database connector.
- database_
management_ strstatus The status of the Database Management service.
- license_
model str The Oracle license model that applies to the external database.
- connector
Id String The OCID of the external database connector.
- database
Management StringStatus The status of the Database Management service.
- license
Model String The Oracle license model that applies to the external database.
GetExternalDatabasesExternalDatabaseCollectionItemDbSystemInfo
- Compartment
Id string The OCID of the compartment.
- Display
Name string A filter to only return the resources that match the entire display name.
- Id string
The OCID of the external DB system.
- Compartment
Id string The OCID of the compartment.
- Display
Name string A filter to only return the resources that match the entire display name.
- Id string
The OCID of the external DB system.
- compartment
Id String The OCID of the compartment.
- display
Name String A filter to only return the resources that match the entire display name.
- id String
The OCID of the external DB system.
- compartment
Id string The OCID of the compartment.
- display
Name string A filter to only return the resources that match the entire display name.
- id string
The OCID of the external DB system.
- compartment_
id str The OCID of the compartment.
- display_
name str A filter to only return the resources that match the entire display name.
- id str
The OCID of the external DB system.
- compartment
Id String The OCID of the compartment.
- display
Name String A filter to only return the resources that match the entire display name.
- id String
The OCID of the external DB system.
GetExternalDatabasesExternalDatabaseCollectionItemInstanceDetail
- Host
Name string The name of the host machine.
- Instance
Name string The name of the database instance.
- Instance
Number int The instance number of the database instance.
- Host
Name string The name of the host machine.
- Instance
Name string The name of the database instance.
- Instance
Number int The instance number of the database instance.
- host
Name String The name of the host machine.
- instance
Name String The name of the database instance.
- instance
Number Integer The instance number of the database instance.
- host
Name string The name of the host machine.
- instance
Name string The name of the database instance.
- instance
Number number The instance number of the database instance.
- host_
name str The name of the host machine.
- instance_
name str The name of the database instance.
- instance_
number int The instance number of the database instance.
- host
Name String The name of the host machine.
- instance
Name String The name of the database instance.
- instance
Number Number The instance number of the database instance.
GetExternalDatabasesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.