Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Database.getExternalContainerDatabases
Explore with Pulumi AI
This data source provides the list of External Container Databases in Oracle Cloud Infrastructure Database service.
Gets a list of the external container databases in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testExternalContainerDatabases = oci.Database.getExternalContainerDatabases({
compartmentId: compartmentId,
displayName: externalContainerDatabaseDisplayName,
state: externalContainerDatabaseState,
});
import pulumi
import pulumi_oci as oci
test_external_container_databases = oci.Database.get_external_container_databases(compartment_id=compartment_id,
display_name=external_container_database_display_name,
state=external_container_database_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Database"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Database.GetExternalContainerDatabases(ctx, &database.GetExternalContainerDatabasesArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(externalContainerDatabaseDisplayName),
State: pulumi.StringRef(externalContainerDatabaseState),
}, 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 testExternalContainerDatabases = Oci.Database.GetExternalContainerDatabases.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = externalContainerDatabaseDisplayName,
State = externalContainerDatabaseState,
});
});
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.GetExternalContainerDatabasesArgs;
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 testExternalContainerDatabases = DatabaseFunctions.getExternalContainerDatabases(GetExternalContainerDatabasesArgs.builder()
.compartmentId(compartmentId)
.displayName(externalContainerDatabaseDisplayName)
.state(externalContainerDatabaseState)
.build());
}
}
variables:
testExternalContainerDatabases:
fn::invoke:
Function: oci:Database:getExternalContainerDatabases
Arguments:
compartmentId: ${compartmentId}
displayName: ${externalContainerDatabaseDisplayName}
state: ${externalContainerDatabaseState}
Using getExternalContainerDatabases
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 getExternalContainerDatabases(args: GetExternalContainerDatabasesArgs, opts?: InvokeOptions): Promise<GetExternalContainerDatabasesResult>
function getExternalContainerDatabasesOutput(args: GetExternalContainerDatabasesOutputArgs, opts?: InvokeOptions): Output<GetExternalContainerDatabasesResult>
def get_external_container_databases(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_database.GetExternalContainerDatabasesFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetExternalContainerDatabasesResult
def get_external_container_databases_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetExternalContainerDatabasesFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetExternalContainerDatabasesResult]
func GetExternalContainerDatabases(ctx *Context, args *GetExternalContainerDatabasesArgs, opts ...InvokeOption) (*GetExternalContainerDatabasesResult, error)
func GetExternalContainerDatabasesOutput(ctx *Context, args *GetExternalContainerDatabasesOutputArgs, opts ...InvokeOption) GetExternalContainerDatabasesResultOutput
> Note: This function is named GetExternalContainerDatabases
in the Go SDK.
public static class GetExternalContainerDatabases
{
public static Task<GetExternalContainerDatabasesResult> InvokeAsync(GetExternalContainerDatabasesArgs args, InvokeOptions? opts = null)
public static Output<GetExternalContainerDatabasesResult> Invoke(GetExternalContainerDatabasesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetExternalContainerDatabasesResult> getExternalContainerDatabases(GetExternalContainerDatabasesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getExternalContainerDatabases:getExternalContainerDatabases
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The compartment OCID.
- 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
External Container Databases Filter> - State string
- A filter to return only resources that match the specified lifecycle state.
- Compartment
Id string - The compartment OCID.
- Display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- Filters
[]Get
External Container Databases Filter - State string
- A filter to return only resources that match the specified lifecycle state.
- compartment
Id String - The compartment OCID.
- 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
External Containers Filter> - state String
- A filter to return only resources that match the specified lifecycle state.
- compartment
Id string - The compartment OCID.
- display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters
Get
External Container Databases Filter[] - state string
- A filter to return only resources that match the specified lifecycle state.
- compartment_
id str - The compartment OCID.
- 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 External Container Databases Filter] - state str
- A filter to return only resources that match the specified lifecycle state.
- compartment
Id String - The compartment OCID.
- 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 specified lifecycle state.
getExternalContainerDatabases Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
- External
Container List<GetDatabases External Container Databases External Container Database> - The list of external_container_databases.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - The user-friendly name for the external database. The name does not have to be unique.
- Filters
List<Get
External Container Databases Filter> - State string
- The current state of the Oracle Cloud Infrastructure external database resource.
- Compartment
Id string - The OCID of the compartment.
- External
Container []GetDatabases External Container Databases External Container Database - The list of external_container_databases.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - The user-friendly name for the external database. The name does not have to be unique.
- Filters
[]Get
External Container Databases Filter - State string
- The current state of the Oracle Cloud Infrastructure external database resource.
- compartment
Id String - The OCID of the compartment.
- external
Container List<GetDatabases External Containers External Container> - The list of external_container_databases.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - The user-friendly name for the external database. The name does not have to be unique.
- filters
List<Get
External Containers Filter> - state String
- The current state of the Oracle Cloud Infrastructure external database resource.
- compartment
Id string - The OCID of the compartment.
- external
Container GetDatabases External Container Databases External Container Database[] - The list of external_container_databases.
- id string
- The provider-assigned unique ID for this managed resource.
- display
Name string - The user-friendly name for the external database. The name does not have to be unique.
- filters
Get
External Container Databases Filter[] - state string
- The current state of the Oracle Cloud Infrastructure external database resource.
- compartment_
id str - The OCID of the compartment.
- external_
container_ Sequence[database.databases Get External Container Databases External Container Database] - The list of external_container_databases.
- id str
- The provider-assigned unique ID for this managed resource.
- display_
name str - The user-friendly name for the external database. The name does not have to be unique.
- filters
Sequence[database.
Get External Container Databases Filter] - state str
- The current state of the Oracle Cloud Infrastructure external database resource.
- compartment
Id String - The OCID of the compartment.
- external
Container List<Property Map>Databases - The list of external_container_databases.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - The user-friendly name for the external database. The name does not have to be unique.
- filters List<Property Map>
- state String
- The current state of the Oracle Cloud Infrastructure external database resource.
Supporting Types
GetExternalContainerDatabasesExternalContainerDatabase
- Character
Set string - The character set of the external database.
- Compartment
Id string - The compartment OCID.
- Database
Configuration string - The Oracle Database configuration
- Database
Edition string - The Oracle Database edition.
- Database
Management List<GetConfigs External Container Databases External Container Database Database Management Config> - The configuration of the Database Management service.
- Database
Version string - The Oracle Database version.
- Db
Id string - The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.
- Db
Packs string - The database packs licensed for the external Oracle Database.
- Db
Unique stringName - The
DB_UNIQUE_NAME
of the external database. - Dictionary<string, string>
- 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.
- Dictionary<string, string>
- 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 Oracle Cloud Infrastructure external database resource.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- Ncharacter
Set string - The national character of the external database.
- Stack
Monitoring List<GetConfigs External Container Databases External Container Database Stack Monitoring Config> - The configuration of Stack Monitoring for the external database.
- State string
- A filter to return only resources that match the specified lifecycle state.
- Time
Created string - The date and time the database was created.
- Time
Zone string - The time zone of the external database. It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, depending on how the time zone value was specified when the database was created / last altered.
- Character
Set string - The character set of the external database.
- Compartment
Id string - The compartment OCID.
- Database
Configuration string - The Oracle Database configuration
- Database
Edition string - The Oracle Database edition.
- Database
Management []GetConfigs External Container Databases External Container Database Database Management Config - The configuration of the Database Management service.
- Database
Version string - The Oracle Database version.
- Db
Id string - The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.
- Db
Packs string - The database packs licensed for the external Oracle Database.
- Db
Unique stringName - The
DB_UNIQUE_NAME
of the external database. - map[string]string
- 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.
- map[string]string
- 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 Oracle Cloud Infrastructure external database resource.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- Ncharacter
Set string - The national character of the external database.
- Stack
Monitoring []GetConfigs External Container Databases External Container Database Stack Monitoring Config - The configuration of Stack Monitoring for the external database.
- State string
- A filter to return only resources that match the specified lifecycle state.
- Time
Created string - The date and time the database was created.
- Time
Zone string - The time zone of the external database. It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, depending on how the time zone value was specified when the database was created / last altered.
- character
Set String - The character set of the external database.
- compartment
Id String - The compartment OCID.
- database
Configuration String - The Oracle Database configuration
- database
Edition String - The Oracle Database edition.
- database
Management List<GetConfigs External Containers External Container Management Config> - The configuration of the Database Management service.
- database
Version String - The Oracle Database version.
- db
Id String - The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.
- db
Packs String - The database packs licensed for the external Oracle Database.
- db
Unique StringName - The
DB_UNIQUE_NAME
of the external database. - Map<String,String>
- 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.
- Map<String,String>
- 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 Oracle Cloud Infrastructure external database resource.
- lifecycle
Details String - Additional information about the current lifecycle state.
- ncharacter
Set String - The national character of the external database.
- stack
Monitoring List<GetConfigs External Containers External Container Stack Monitoring Config> - The configuration of Stack Monitoring for the external database.
- state String
- A filter to return only resources that match the specified lifecycle state.
- time
Created String - The date and time the database was created.
- time
Zone String - The time zone of the external database. It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, depending on how the time zone value was specified when the database was created / last altered.
- character
Set string - The character set of the external database.
- compartment
Id string - The compartment OCID.
- database
Configuration string - The Oracle Database configuration
- database
Edition string - The Oracle Database edition.
- database
Management GetConfigs External Container Databases External Container Database Database Management Config[] - The configuration of the Database Management service.
- database
Version string - The Oracle Database version.
- db
Id string - The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.
- db
Packs string - The database packs licensed for the external Oracle Database.
- db
Unique stringName - The
DB_UNIQUE_NAME
of the external database. - {[key: string]: string}
- 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.
- {[key: string]: string}
- 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 Oracle Cloud Infrastructure external database resource.
- lifecycle
Details string - Additional information about the current lifecycle state.
- ncharacter
Set string - The national character of the external database.
- stack
Monitoring GetConfigs External Container Databases External Container Database Stack Monitoring Config[] - The configuration of Stack Monitoring for the external database.
- state string
- A filter to return only resources that match the specified lifecycle state.
- time
Created string - The date and time the database was created.
- time
Zone string - The time zone of the external database. It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, depending on how the time zone value was specified when the database was created / last altered.
- character_
set str - The character set of the external database.
- compartment_
id str - The compartment OCID.
- database_
configuration str - The Oracle Database configuration
- database_
edition str - The Oracle Database edition.
- database_
management_ Sequence[database.configs Get External Container Databases External Container Database Database Management Config] - The configuration of the Database Management service.
- database_
version str - The Oracle Database version.
- db_
id str - The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.
- db_
packs str - The database packs licensed for the external Oracle Database.
- db_
unique_ strname - The
DB_UNIQUE_NAME
of the external database. - Mapping[str, str]
- 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.
- Mapping[str, str]
- 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 Oracle Cloud Infrastructure external database resource.
- lifecycle_
details str - Additional information about the current lifecycle state.
- ncharacter_
set str - The national character of the external database.
- stack_
monitoring_ Sequence[database.configs Get External Container Databases External Container Database Stack Monitoring Config] - The configuration of Stack Monitoring for the external database.
- state str
- A filter to return only resources that match the specified lifecycle state.
- time_
created str - The date and time the database was created.
- time_
zone str - The time zone of the external database. It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, depending on how the time zone value was specified when the database was created / last altered.
- character
Set String - The character set of the external database.
- compartment
Id String - The compartment OCID.
- database
Configuration String - The Oracle Database configuration
- database
Edition String - The Oracle Database edition.
- database
Management List<Property Map>Configs - The configuration of the Database Management service.
- database
Version String - The Oracle Database version.
- db
Id String - The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.
- db
Packs String - The database packs licensed for the external Oracle Database.
- db
Unique StringName - The
DB_UNIQUE_NAME
of the external database. - Map<String>
- 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.
- Map<String>
- 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 Oracle Cloud Infrastructure external database resource.
- lifecycle
Details String - Additional information about the current lifecycle state.
- ncharacter
Set String - The national character of the external database.
- stack
Monitoring List<Property Map>Configs - The configuration of Stack Monitoring for the external database.
- state String
- A filter to return only resources that match the specified lifecycle state.
- time
Created String - The date and time the database was created.
- time
Zone String - The time zone of the external database. It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, depending on how the time zone value was specified when the database was created / last altered.
GetExternalContainerDatabasesExternalContainerDatabaseDatabaseManagementConfig
- Database
Management stringConnection Id - 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.
- Database
Management stringConnection Id - 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.
- database
Management StringConnection Id - 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.
- database
Management stringConnection Id - 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.
- database_
management_ strconnection_ id - 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.
- database
Management StringConnection Id - 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.
GetExternalContainerDatabasesExternalContainerDatabaseStackMonitoringConfig
- Stack
Monitoring stringConnector Id - The OCID of the external database connector.
- Stack
Monitoring stringStatus - The status of Stack Monitoring.
- Stack
Monitoring stringConnector Id - The OCID of the external database connector.
- Stack
Monitoring stringStatus - The status of Stack Monitoring.
- stack
Monitoring StringConnector Id - The OCID of the external database connector.
- stack
Monitoring StringStatus - The status of Stack Monitoring.
- stack
Monitoring stringConnector Id - The OCID of the external database connector.
- stack
Monitoring stringStatus - The status of Stack Monitoring.
- stack_
monitoring_ strconnector_ id - The OCID of the external database connector.
- stack_
monitoring_ strstatus - The status of Stack Monitoring.
- stack
Monitoring StringConnector Id - The OCID of the external database connector.
- stack
Monitoring StringStatus - The status of Stack Monitoring.
GetExternalContainerDatabasesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.