Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getExternalNonContainerDatabases

This data source provides the list of External Non Container Databases in Oracle Cloud Infrastructure Database service.

Gets a list of the ExternalNonContainerDatabases in the specified compartment.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testExternalNonContainerDatabases = Oci.Database.GetExternalNonContainerDatabases.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        DisplayName = @var.External_non_container_database_display_name,
        State = @var.External_non_container_database_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.GetExternalNonContainerDatabases(ctx, &database.GetExternalNonContainerDatabasesArgs{
			CompartmentId: _var.Compartment_id,
			DisplayName:   pulumi.StringRef(_var.External_non_container_database_display_name),
			State:         pulumi.StringRef(_var.External_non_container_database_state),
		}, 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.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetExternalNonContainerDatabasesArgs;
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 testExternalNonContainerDatabases = DatabaseFunctions.getExternalNonContainerDatabases(GetExternalNonContainerDatabasesArgs.builder()
            .compartmentId(var_.compartment_id())
            .displayName(var_.external_non_container_database_display_name())
            .state(var_.external_non_container_database_state())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_external_non_container_databases = oci.Database.get_external_non_container_databases(compartment_id=var["compartment_id"],
    display_name=var["external_non_container_database_display_name"],
    state=var["external_non_container_database_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testExternalNonContainerDatabases = oci.Database.getExternalNonContainerDatabases({
    compartmentId: _var.compartment_id,
    displayName: _var.external_non_container_database_display_name,
    state: _var.external_non_container_database_state,
});
variables:
  testExternalNonContainerDatabases:
    Fn::Invoke:
      Function: oci:Database:getExternalNonContainerDatabases
      Arguments:
        compartmentId: ${var.compartment_id}
        displayName: ${var.external_non_container_database_display_name}
        state: ${var.external_non_container_database_state}

Using getExternalNonContainerDatabases

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 getExternalNonContainerDatabases(args: GetExternalNonContainerDatabasesArgs, opts?: InvokeOptions): Promise<GetExternalNonContainerDatabasesResult>
function getExternalNonContainerDatabasesOutput(args: GetExternalNonContainerDatabasesOutputArgs, opts?: InvokeOptions): Output<GetExternalNonContainerDatabasesResult>
def get_external_non_container_databases(compartment_id: Optional[str] = None,
                                         display_name: Optional[str] = None,
                                         filters: Optional[Sequence[_database.GetExternalNonContainerDatabasesFilter]] = None,
                                         state: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetExternalNonContainerDatabasesResult
def get_external_non_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.GetExternalNonContainerDatabasesFilterArgs]]]] = None,
                                         state: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetExternalNonContainerDatabasesResult]
func GetExternalNonContainerDatabases(ctx *Context, args *GetExternalNonContainerDatabasesArgs, opts ...InvokeOption) (*GetExternalNonContainerDatabasesResult, error)
func GetExternalNonContainerDatabasesOutput(ctx *Context, args *GetExternalNonContainerDatabasesOutputArgs, opts ...InvokeOption) GetExternalNonContainerDatabasesResultOutput

> Note: This function is named GetExternalNonContainerDatabases in the Go SDK.

public static class GetExternalNonContainerDatabases 
{
    public static Task<GetExternalNonContainerDatabasesResult> InvokeAsync(GetExternalNonContainerDatabasesArgs args, InvokeOptions? opts = null)
    public static Output<GetExternalNonContainerDatabasesResult> Invoke(GetExternalNonContainerDatabasesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetExternalNonContainerDatabasesResult> getExternalNonContainerDatabases(GetExternalNonContainerDatabasesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Database/getExternalNonContainerDatabases:getExternalNonContainerDatabases
  arguments:
    # arguments dictionary

The following arguments are supported:

CompartmentId string

The compartment OCID.

DisplayName string

A filter to return only resources that match the entire display name given. The match is not case sensitive.

Filters List<GetExternalNonContainerDatabasesFilter>
State string

A filter to return only resources that match the specified lifecycle state.

CompartmentId string

The compartment OCID.

DisplayName string

A filter to return only resources that match the entire display name given. The match is not case sensitive.

Filters []GetExternalNonContainerDatabasesFilter
State string

A filter to return only resources that match the specified lifecycle state.

compartmentId String

The compartment OCID.

displayName String

A filter to return only resources that match the entire display name given. The match is not case sensitive.

filters List<GetExternalNonContainersFilter>
state String

A filter to return only resources that match the specified lifecycle state.

compartmentId string

The compartment OCID.

displayName string

A filter to return only resources that match the entire display name given. The match is not case sensitive.

filters GetExternalNonContainerDatabasesFilter[]
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 GetExternalNonContainerDatabasesFilter]
state str

A filter to return only resources that match the specified lifecycle state.

compartmentId String

The compartment OCID.

displayName 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.

getExternalNonContainerDatabases Result

The following output properties are available:

CompartmentId string

The OCID of the compartment.

ExternalNonContainerDatabases List<GetExternalNonContainerDatabasesExternalNonContainerDatabase>

The list of external_non_container_databases.

Id string

The provider-assigned unique ID for this managed resource.

DisplayName string

The user-friendly name for the external database. The name does not have to be unique.

Filters List<GetExternalNonContainerDatabasesFilter>
State string

The current state of the Oracle Cloud Infrastructure external database resource.

CompartmentId string

The OCID of the compartment.

ExternalNonContainerDatabases []GetExternalNonContainerDatabasesExternalNonContainerDatabase

The list of external_non_container_databases.

Id string

The provider-assigned unique ID for this managed resource.

DisplayName string

The user-friendly name for the external database. The name does not have to be unique.

Filters []GetExternalNonContainerDatabasesFilter
State string

The current state of the Oracle Cloud Infrastructure external database resource.

compartmentId String

The OCID of the compartment.

externalNonContainerDatabases List<GetExternalNonContainersExternalNonContainer>

The list of external_non_container_databases.

id String

The provider-assigned unique ID for this managed resource.

displayName String

The user-friendly name for the external database. The name does not have to be unique.

filters List<GetExternalNonContainersFilter>
state String

The current state of the Oracle Cloud Infrastructure external database resource.

compartmentId string

The OCID of the compartment.

externalNonContainerDatabases GetExternalNonContainerDatabasesExternalNonContainerDatabase[]

The list of external_non_container_databases.

id string

The provider-assigned unique ID for this managed resource.

displayName string

The user-friendly name for the external database. The name does not have to be unique.

filters GetExternalNonContainerDatabasesFilter[]
state string

The current state of the Oracle Cloud Infrastructure external database resource.

compartment_id str

The OCID of the compartment.

external_non_container_databases GetExternalNonContainerDatabasesExternalNonContainerDatabase]

The list of external_non_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 GetExternalNonContainerDatabasesFilter]
state str

The current state of the Oracle Cloud Infrastructure external database resource.

compartmentId String

The OCID of the compartment.

externalNonContainerDatabases List<Property Map>

The list of external_non_container_databases.

id String

The provider-assigned unique ID for this managed resource.

displayName 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

GetExternalNonContainerDatabasesExternalNonContainerDatabase

CharacterSet string

The character set of the external database.

CompartmentId string

The compartment OCID.

DatabaseConfiguration string

The Oracle Database configuration

DatabaseEdition string

The Oracle Database edition.

DatabaseManagementConfigs List<GetExternalNonContainerDatabasesExternalNonContainerDatabaseDatabaseManagementConfig>

The configuration of the Database Management service.

DatabaseVersion string

The Oracle Database version.

DbId string

The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.

DbPacks string

The database packs licensed for the external Oracle Database.

DbUniqueName string

The DB_UNIQUE_NAME of the external database.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

DisplayName string

A filter to return only resources that match the entire display name given. The match is not case sensitive.

FreeformTags 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 Oracle Cloud Infrastructure external database resource.

LifecycleDetails string

Additional information about the current lifecycle state.

NcharacterSet string

The national character of the external database.

OperationsInsightsConfigs List<GetExternalNonContainerDatabasesExternalNonContainerDatabaseOperationsInsightsConfig>

The configuration of Operations Insights for the external database

StackMonitoringConfigs List<GetExternalNonContainerDatabasesExternalNonContainerDatabaseStackMonitoringConfig>

The configuration of Stack Monitoring for the external database.

State string

A filter to return only resources that match the specified lifecycle state.

TimeCreated string

The date and time the database was created.

TimeZone 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.

CharacterSet string

The character set of the external database.

CompartmentId string

The compartment OCID.

DatabaseConfiguration string

The Oracle Database configuration

DatabaseEdition string

The Oracle Database edition.

DatabaseManagementConfigs []GetExternalNonContainerDatabasesExternalNonContainerDatabaseDatabaseManagementConfig

The configuration of the Database Management service.

DatabaseVersion string

The Oracle Database version.

DbId string

The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.

DbPacks string

The database packs licensed for the external Oracle Database.

DbUniqueName string

The DB_UNIQUE_NAME of the external database.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

DisplayName string

A filter to return only resources that match the entire display name given. The match is not case sensitive.

FreeformTags 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 Oracle Cloud Infrastructure external database resource.

LifecycleDetails string

Additional information about the current lifecycle state.

NcharacterSet string

The national character of the external database.

OperationsInsightsConfigs []GetExternalNonContainerDatabasesExternalNonContainerDatabaseOperationsInsightsConfig

The configuration of Operations Insights for the external database

StackMonitoringConfigs []GetExternalNonContainerDatabasesExternalNonContainerDatabaseStackMonitoringConfig

The configuration of Stack Monitoring for the external database.

State string

A filter to return only resources that match the specified lifecycle state.

TimeCreated string

The date and time the database was created.

TimeZone 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.

characterSet String

The character set of the external database.

compartmentId String

The compartment OCID.

databaseConfiguration String

The Oracle Database configuration

databaseEdition String

The Oracle Database edition.

databaseManagementConfigs List<GetExternalNonContainersExternalNonContainerManagementConfig>

The configuration of the Database Management service.

databaseVersion String

The Oracle Database version.

dbId String

The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.

dbPacks String

The database packs licensed for the external Oracle Database.

dbUniqueName String

The DB_UNIQUE_NAME of the external database.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

displayName String

A filter to return only resources that match the entire display name given. The match is not case sensitive.

freeformTags 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 Oracle Cloud Infrastructure external database resource.

lifecycleDetails String

Additional information about the current lifecycle state.

ncharacterSet String

The national character of the external database.

operationsInsightsConfigs List<GetExternalNonContainersExternalNonContainerOperationsInsightsConfig>

The configuration of Operations Insights for the external database

stackMonitoringConfigs List<GetExternalNonContainersExternalNonContainerStackMonitoringConfig>

The configuration of Stack Monitoring for the external database.

state String

A filter to return only resources that match the specified lifecycle state.

timeCreated String

The date and time the database was created.

timeZone 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.

characterSet string

The character set of the external database.

compartmentId string

The compartment OCID.

databaseConfiguration string

The Oracle Database configuration

databaseEdition string

The Oracle Database edition.

databaseManagementConfigs GetExternalNonContainerDatabasesExternalNonContainerDatabaseDatabaseManagementConfig[]

The configuration of the Database Management service.

databaseVersion string

The Oracle Database version.

dbId string

The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.

dbPacks string

The database packs licensed for the external Oracle Database.

dbUniqueName string

The DB_UNIQUE_NAME of the external database.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

displayName string

A filter to return only resources that match the entire display name given. The match is not case sensitive.

freeformTags {[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 Oracle Cloud Infrastructure external database resource.

lifecycleDetails string

Additional information about the current lifecycle state.

ncharacterSet string

The national character of the external database.

operationsInsightsConfigs GetExternalNonContainerDatabasesExternalNonContainerDatabaseOperationsInsightsConfig[]

The configuration of Operations Insights for the external database

stackMonitoringConfigs GetExternalNonContainerDatabasesExternalNonContainerDatabaseStackMonitoringConfig[]

The configuration of Stack Monitoring for the external database.

state string

A filter to return only resources that match the specified lifecycle state.

timeCreated string

The date and time the database was created.

timeZone 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_configs GetExternalNonContainerDatabasesExternalNonContainerDatabaseDatabaseManagementConfig]

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_name str

The DB_UNIQUE_NAME of the external database.

defined_tags 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.

freeform_tags 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 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.

operations_insights_configs GetExternalNonContainerDatabasesExternalNonContainerDatabaseOperationsInsightsConfig]

The configuration of Operations Insights for the external database

stack_monitoring_configs GetExternalNonContainerDatabasesExternalNonContainerDatabaseStackMonitoringConfig]

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.

characterSet String

The character set of the external database.

compartmentId String

The compartment OCID.

databaseConfiguration String

The Oracle Database configuration

databaseEdition String

The Oracle Database edition.

databaseManagementConfigs List<Property Map>

The configuration of the Database Management service.

databaseVersion String

The Oracle Database version.

dbId String

The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.

dbPacks String

The database packs licensed for the external Oracle Database.

dbUniqueName String

The DB_UNIQUE_NAME of the external database.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

displayName String

A filter to return only resources that match the entire display name given. The match is not case sensitive.

freeformTags 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 Oracle Cloud Infrastructure external database resource.

lifecycleDetails String

Additional information about the current lifecycle state.

ncharacterSet String

The national character of the external database.

operationsInsightsConfigs List<Property Map>

The configuration of Operations Insights for the external database

stackMonitoringConfigs List<Property Map>

The configuration of Stack Monitoring for the external database.

state String

A filter to return only resources that match the specified lifecycle state.

timeCreated String

The date and time the database was created.

timeZone 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.

GetExternalNonContainerDatabasesExternalNonContainerDatabaseDatabaseManagementConfig

DatabaseManagementConnectionId string

The OCID of the external database connector.

DatabaseManagementStatus string

The status of the Database Management service.

LicenseModel string

The Oracle license model that applies to the external database.

DatabaseManagementConnectionId string

The OCID of the external database connector.

DatabaseManagementStatus string

The status of the Database Management service.

LicenseModel string

The Oracle license model that applies to the external database.

databaseManagementConnectionId String

The OCID of the external database connector.

databaseManagementStatus String

The status of the Database Management service.

licenseModel String

The Oracle license model that applies to the external database.

databaseManagementConnectionId string

The OCID of the external database connector.

databaseManagementStatus string

The status of the Database Management service.

licenseModel string

The Oracle license model that applies to the external database.

database_management_connection_id str

The OCID of the external database connector.

database_management_status str

The status of the Database Management service.

license_model str

The Oracle license model that applies to the external database.

databaseManagementConnectionId String

The OCID of the external database connector.

databaseManagementStatus String

The status of the Database Management service.

licenseModel String

The Oracle license model that applies to the external database.

GetExternalNonContainerDatabasesExternalNonContainerDatabaseOperationsInsightsConfig

OperationsInsightsConnectorId string

The OCID of the external database connector.

OperationsInsightsStatus string

The status of Operations Insights

OperationsInsightsConnectorId string

The OCID of the external database connector.

OperationsInsightsStatus string

The status of Operations Insights

operationsInsightsConnectorId String

The OCID of the external database connector.

operationsInsightsStatus String

The status of Operations Insights

operationsInsightsConnectorId string

The OCID of the external database connector.

operationsInsightsStatus string

The status of Operations Insights

operationsInsightsConnectorId String

The OCID of the external database connector.

operationsInsightsStatus String

The status of Operations Insights

GetExternalNonContainerDatabasesExternalNonContainerDatabaseStackMonitoringConfig

StackMonitoringConnectorId string

The OCID of the external database connector.

StackMonitoringStatus string

The status of Stack Monitoring.

StackMonitoringConnectorId string

The OCID of the external database connector.

StackMonitoringStatus string

The status of Stack Monitoring.

stackMonitoringConnectorId String

The OCID of the external database connector.

stackMonitoringStatus String

The status of Stack Monitoring.

stackMonitoringConnectorId string

The OCID of the external database connector.

stackMonitoringStatus string

The status of Stack Monitoring.

stackMonitoringConnectorId String

The OCID of the external database connector.

stackMonitoringStatus String

The status of Stack Monitoring.

GetExternalNonContainerDatabasesFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.