1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. ExternalPluggableDatabase
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Database.ExternalPluggableDatabase

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This resource provides the External Pluggable Database resource in Oracle Cloud Infrastructure Database service.

    Registers a new ExternalPluggableDatabase resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testExternalPluggableDatabase = new oci.database.ExternalPluggableDatabase("testExternalPluggableDatabase", {
        compartmentId: _var.compartment_id,
        displayName: _var.external_pluggable_database_display_name,
        externalContainerDatabaseId: oci_database_external_container_database.test_external_container_database.id,
        definedTags: _var.external_pluggable_database_defined_tags,
        freeformTags: {
            Department: "Finance",
        },
        sourceId: oci_database_source.test_source.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_external_pluggable_database = oci.database.ExternalPluggableDatabase("testExternalPluggableDatabase",
        compartment_id=var["compartment_id"],
        display_name=var["external_pluggable_database_display_name"],
        external_container_database_id=oci_database_external_container_database["test_external_container_database"]["id"],
        defined_tags=var["external_pluggable_database_defined_tags"],
        freeform_tags={
            "Department": "Finance",
        },
        source_id=oci_database_source["test_source"]["id"])
    
    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.NewExternalPluggableDatabase(ctx, "testExternalPluggableDatabase", &Database.ExternalPluggableDatabaseArgs{
    			CompartmentId:               pulumi.Any(_var.Compartment_id),
    			DisplayName:                 pulumi.Any(_var.External_pluggable_database_display_name),
    			ExternalContainerDatabaseId: pulumi.Any(oci_database_external_container_database.Test_external_container_database.Id),
    			DefinedTags:                 pulumi.Any(_var.External_pluggable_database_defined_tags),
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			SourceId: pulumi.Any(oci_database_source.Test_source.Id),
    		})
    		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 testExternalPluggableDatabase = new Oci.Database.ExternalPluggableDatabase("testExternalPluggableDatabase", new()
        {
            CompartmentId = @var.Compartment_id,
            DisplayName = @var.External_pluggable_database_display_name,
            ExternalContainerDatabaseId = oci_database_external_container_database.Test_external_container_database.Id,
            DefinedTags = @var.External_pluggable_database_defined_tags,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            SourceId = oci_database_source.Test_source.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Database.ExternalPluggableDatabase;
    import com.pulumi.oci.Database.ExternalPluggableDatabaseArgs;
    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) {
            var testExternalPluggableDatabase = new ExternalPluggableDatabase("testExternalPluggableDatabase", ExternalPluggableDatabaseArgs.builder()        
                .compartmentId(var_.compartment_id())
                .displayName(var_.external_pluggable_database_display_name())
                .externalContainerDatabaseId(oci_database_external_container_database.test_external_container_database().id())
                .definedTags(var_.external_pluggable_database_defined_tags())
                .freeformTags(Map.of("Department", "Finance"))
                .sourceId(oci_database_source.test_source().id())
                .build());
    
        }
    }
    
    resources:
      testExternalPluggableDatabase:
        type: oci:Database:ExternalPluggableDatabase
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          displayName: ${var.external_pluggable_database_display_name}
          externalContainerDatabaseId: ${oci_database_external_container_database.test_external_container_database.id}
          #Optional
          definedTags: ${var.external_pluggable_database_defined_tags}
          freeformTags:
            Department: Finance
          sourceId: ${oci_database_source.test_source.id}
    

    Create ExternalPluggableDatabase Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ExternalPluggableDatabase(name: string, args: ExternalPluggableDatabaseArgs, opts?: CustomResourceOptions);
    @overload
    def ExternalPluggableDatabase(resource_name: str,
                                  args: ExternalPluggableDatabaseArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def ExternalPluggableDatabase(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  compartment_id: Optional[str] = None,
                                  display_name: Optional[str] = None,
                                  external_container_database_id: Optional[str] = None,
                                  defined_tags: Optional[Mapping[str, Any]] = None,
                                  freeform_tags: Optional[Mapping[str, Any]] = None,
                                  source_id: Optional[str] = None)
    func NewExternalPluggableDatabase(ctx *Context, name string, args ExternalPluggableDatabaseArgs, opts ...ResourceOption) (*ExternalPluggableDatabase, error)
    public ExternalPluggableDatabase(string name, ExternalPluggableDatabaseArgs args, CustomResourceOptions? opts = null)
    public ExternalPluggableDatabase(String name, ExternalPluggableDatabaseArgs args)
    public ExternalPluggableDatabase(String name, ExternalPluggableDatabaseArgs args, CustomResourceOptions options)
    
    type: oci:Database:ExternalPluggableDatabase
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ExternalPluggableDatabaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ExternalPluggableDatabaseArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ExternalPluggableDatabaseArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ExternalPluggableDatabaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ExternalPluggableDatabaseArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var externalPluggableDatabaseResource = new Oci.Database.ExternalPluggableDatabase("externalPluggableDatabaseResource", new()
    {
        CompartmentId = "string",
        DisplayName = "string",
        ExternalContainerDatabaseId = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        FreeformTags = 
        {
            { "string", "any" },
        },
        SourceId = "string",
    });
    
    example, err := Database.NewExternalPluggableDatabase(ctx, "externalPluggableDatabaseResource", &Database.ExternalPluggableDatabaseArgs{
    	CompartmentId:               pulumi.String("string"),
    	DisplayName:                 pulumi.String("string"),
    	ExternalContainerDatabaseId: pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	SourceId: pulumi.String("string"),
    })
    
    var externalPluggableDatabaseResource = new ExternalPluggableDatabase("externalPluggableDatabaseResource", ExternalPluggableDatabaseArgs.builder()        
        .compartmentId("string")
        .displayName("string")
        .externalContainerDatabaseId("string")
        .definedTags(Map.of("string", "any"))
        .freeformTags(Map.of("string", "any"))
        .sourceId("string")
        .build());
    
    external_pluggable_database_resource = oci.database.ExternalPluggableDatabase("externalPluggableDatabaseResource",
        compartment_id="string",
        display_name="string",
        external_container_database_id="string",
        defined_tags={
            "string": "any",
        },
        freeform_tags={
            "string": "any",
        },
        source_id="string")
    
    const externalPluggableDatabaseResource = new oci.database.ExternalPluggableDatabase("externalPluggableDatabaseResource", {
        compartmentId: "string",
        displayName: "string",
        externalContainerDatabaseId: "string",
        definedTags: {
            string: "any",
        },
        freeformTags: {
            string: "any",
        },
        sourceId: "string",
    });
    
    type: oci:Database:ExternalPluggableDatabase
    properties:
        compartmentId: string
        definedTags:
            string: any
        displayName: string
        externalContainerDatabaseId: string
        freeformTags:
            string: any
        sourceId: string
    

    ExternalPluggableDatabase Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ExternalPluggableDatabase resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment.
    DisplayName string
    (Updatable) The user-friendly name for the external database. The name does not have to be unique.
    ExternalContainerDatabaseId string
    The OCID of the external container database that contains the specified external pluggable database resource.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags Dictionary<string, object>
    (Updatable) 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"}
    SourceId string

    The OCID of the the non-container database that was converted to a pluggable database to create this resource.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    CompartmentId string
    (Updatable) The OCID of the compartment.
    DisplayName string
    (Updatable) The user-friendly name for the external database. The name does not have to be unique.
    ExternalContainerDatabaseId string
    The OCID of the external container database that contains the specified external pluggable database resource.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags map[string]interface{}
    (Updatable) 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"}
    SourceId string

    The OCID of the the non-container database that was converted to a pluggable database to create this resource.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId String
    (Updatable) The OCID of the compartment.
    displayName String
    (Updatable) The user-friendly name for the external database. The name does not have to be unique.
    externalContainerDatabaseId String
    The OCID of the external container database that contains the specified external pluggable database resource.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<String,Object>
    (Updatable) 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"}
    sourceId String

    The OCID of the the non-container database that was converted to a pluggable database to create this resource.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId string
    (Updatable) The OCID of the compartment.
    displayName string
    (Updatable) The user-friendly name for the external database. The name does not have to be unique.
    externalContainerDatabaseId string
    The OCID of the external container database that contains the specified external pluggable database resource.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags {[key: string]: any}
    (Updatable) 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"}
    sourceId string

    The OCID of the the non-container database that was converted to a pluggable database to create this resource.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartment_id str
    (Updatable) The OCID of the compartment.
    display_name str
    (Updatable) The user-friendly name for the external database. The name does not have to be unique.
    external_container_database_id str
    The OCID of the external container database that contains the specified external pluggable database resource.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeform_tags Mapping[str, Any]
    (Updatable) 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"}
    source_id str

    The OCID of the the non-container database that was converted to a pluggable database to create this resource.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId String
    (Updatable) The OCID of the compartment.
    displayName String
    (Updatable) The user-friendly name for the external database. The name does not have to be unique.
    externalContainerDatabaseId String
    The OCID of the external container database that contains the specified external pluggable database resource.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<Any>
    (Updatable) 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"}
    sourceId String

    The OCID of the the non-container database that was converted to a pluggable database to create this resource.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ExternalPluggableDatabase resource produces the following output properties:

    CharacterSet string
    The character set of the external database.
    DatabaseConfiguration string
    The Oracle Database configuration
    DatabaseEdition string
    The Oracle Database edition.
    DatabaseManagementConfigs List<ExternalPluggableDatabaseDatabaseManagementConfig>
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Additional information about the current lifecycle state.
    NcharacterSet string
    The national character of the external database.
    OperationsInsightsConfigs List<ExternalPluggableDatabaseOperationsInsightsConfig>
    The configuration of Operations Insights for the external database
    StackMonitoringConfigs List<ExternalPluggableDatabaseStackMonitoringConfig>
    The configuration of Stack Monitoring for the external database.
    State string
    The current state of the Oracle Cloud Infrastructure external database resource.
    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.
    DatabaseConfiguration string
    The Oracle Database configuration
    DatabaseEdition string
    The Oracle Database edition.
    DatabaseManagementConfigs []ExternalPluggableDatabaseDatabaseManagementConfig
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Additional information about the current lifecycle state.
    NcharacterSet string
    The national character of the external database.
    OperationsInsightsConfigs []ExternalPluggableDatabaseOperationsInsightsConfig
    The configuration of Operations Insights for the external database
    StackMonitoringConfigs []ExternalPluggableDatabaseStackMonitoringConfig
    The configuration of Stack Monitoring for the external database.
    State string
    The current state of the Oracle Cloud Infrastructure external database resource.
    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.
    databaseConfiguration String
    The Oracle Database configuration
    databaseEdition String
    The Oracle Database edition.
    databaseManagementConfigs List<ExternalPluggableManagementConfig>
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Additional information about the current lifecycle state.
    ncharacterSet String
    The national character of the external database.
    operationsInsightsConfigs List<ExternalPluggableOperationsInsightsConfig>
    The configuration of Operations Insights for the external database
    stackMonitoringConfigs List<ExternalPluggableStackMonitoringConfig>
    The configuration of Stack Monitoring for the external database.
    state String
    The current state of the Oracle Cloud Infrastructure external database resource.
    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.
    databaseConfiguration string
    The Oracle Database configuration
    databaseEdition string
    The Oracle Database edition.
    databaseManagementConfigs ExternalPluggableDatabaseDatabaseManagementConfig[]
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails string
    Additional information about the current lifecycle state.
    ncharacterSet string
    The national character of the external database.
    operationsInsightsConfigs ExternalPluggableDatabaseOperationsInsightsConfig[]
    The configuration of Operations Insights for the external database
    stackMonitoringConfigs ExternalPluggableDatabaseStackMonitoringConfig[]
    The configuration of Stack Monitoring for the external database.
    state string
    The current state of the Oracle Cloud Infrastructure external database resource.
    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.
    database_configuration str
    The Oracle Database configuration
    database_edition str
    The Oracle Database edition.
    database_management_configs Sequence[database.ExternalPluggableDatabaseDatabaseManagementConfig]
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_details str
    Additional information about the current lifecycle state.
    ncharacter_set str
    The national character of the external database.
    operations_insights_configs Sequence[database.ExternalPluggableDatabaseOperationsInsightsConfig]
    The configuration of Operations Insights for the external database
    stack_monitoring_configs Sequence[database.ExternalPluggableDatabaseStackMonitoringConfig]
    The configuration of Stack Monitoring for the external database.
    state str
    The current state of the Oracle Cloud Infrastructure external database resource.
    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.
    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.
    id String
    The provider-assigned unique ID for this managed 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
    The current state of the Oracle Cloud Infrastructure external database resource.
    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.

    Look up Existing ExternalPluggableDatabase Resource

    Get an existing ExternalPluggableDatabase resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ExternalPluggableDatabaseState, opts?: CustomResourceOptions): ExternalPluggableDatabase
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            character_set: Optional[str] = None,
            compartment_id: Optional[str] = None,
            database_configuration: Optional[str] = None,
            database_edition: Optional[str] = None,
            database_management_configs: Optional[Sequence[_database.ExternalPluggableDatabaseDatabaseManagementConfigArgs]] = None,
            database_version: Optional[str] = None,
            db_id: Optional[str] = None,
            db_packs: Optional[str] = None,
            db_unique_name: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            external_container_database_id: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            lifecycle_details: Optional[str] = None,
            ncharacter_set: Optional[str] = None,
            operations_insights_configs: Optional[Sequence[_database.ExternalPluggableDatabaseOperationsInsightsConfigArgs]] = None,
            source_id: Optional[str] = None,
            stack_monitoring_configs: Optional[Sequence[_database.ExternalPluggableDatabaseStackMonitoringConfigArgs]] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None,
            time_zone: Optional[str] = None) -> ExternalPluggableDatabase
    func GetExternalPluggableDatabase(ctx *Context, name string, id IDInput, state *ExternalPluggableDatabaseState, opts ...ResourceOption) (*ExternalPluggableDatabase, error)
    public static ExternalPluggableDatabase Get(string name, Input<string> id, ExternalPluggableDatabaseState? state, CustomResourceOptions? opts = null)
    public static ExternalPluggableDatabase get(String name, Output<String> id, ExternalPluggableDatabaseState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CharacterSet string
    The character set of the external database.
    CompartmentId string
    (Updatable) The OCID of the compartment.
    DatabaseConfiguration string
    The Oracle Database configuration
    DatabaseEdition string
    The Oracle Database edition.
    DatabaseManagementConfigs List<ExternalPluggableDatabaseDatabaseManagementConfig>
    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>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    DisplayName string
    (Updatable) The user-friendly name for the external database. The name does not have to be unique.
    ExternalContainerDatabaseId string
    The OCID of the external container database that contains the specified external pluggable database resource.
    FreeformTags Dictionary<string, object>
    (Updatable) 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"}
    LifecycleDetails string
    Additional information about the current lifecycle state.
    NcharacterSet string
    The national character of the external database.
    OperationsInsightsConfigs List<ExternalPluggableDatabaseOperationsInsightsConfig>
    The configuration of Operations Insights for the external database
    SourceId string

    The OCID of the the non-container database that was converted to a pluggable database to create this resource.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    StackMonitoringConfigs List<ExternalPluggableDatabaseStackMonitoringConfig>
    The configuration of Stack Monitoring for the external database.
    State string
    The current state of the Oracle Cloud Infrastructure external database resource.
    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
    (Updatable) The OCID of the compartment.
    DatabaseConfiguration string
    The Oracle Database configuration
    DatabaseEdition string
    The Oracle Database edition.
    DatabaseManagementConfigs []ExternalPluggableDatabaseDatabaseManagementConfigArgs
    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{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    DisplayName string
    (Updatable) The user-friendly name for the external database. The name does not have to be unique.
    ExternalContainerDatabaseId string
    The OCID of the external container database that contains the specified external pluggable database resource.
    FreeformTags map[string]interface{}
    (Updatable) 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"}
    LifecycleDetails string
    Additional information about the current lifecycle state.
    NcharacterSet string
    The national character of the external database.
    OperationsInsightsConfigs []ExternalPluggableDatabaseOperationsInsightsConfigArgs
    The configuration of Operations Insights for the external database
    SourceId string

    The OCID of the the non-container database that was converted to a pluggable database to create this resource.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    StackMonitoringConfigs []ExternalPluggableDatabaseStackMonitoringConfigArgs
    The configuration of Stack Monitoring for the external database.
    State string
    The current state of the Oracle Cloud Infrastructure external database resource.
    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
    (Updatable) The OCID of the compartment.
    databaseConfiguration String
    The Oracle Database configuration
    databaseEdition String
    The Oracle Database edition.
    databaseManagementConfigs List<ExternalPluggableManagementConfig>
    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>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    displayName String
    (Updatable) The user-friendly name for the external database. The name does not have to be unique.
    externalContainerDatabaseId String
    The OCID of the external container database that contains the specified external pluggable database resource.
    freeformTags Map<String,Object>
    (Updatable) 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"}
    lifecycleDetails String
    Additional information about the current lifecycle state.
    ncharacterSet String
    The national character of the external database.
    operationsInsightsConfigs List<ExternalPluggableOperationsInsightsConfig>
    The configuration of Operations Insights for the external database
    sourceId String

    The OCID of the the non-container database that was converted to a pluggable database to create this resource.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    stackMonitoringConfigs List<ExternalPluggableStackMonitoringConfig>
    The configuration of Stack Monitoring for the external database.
    state String
    The current state of the Oracle Cloud Infrastructure external database resource.
    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
    (Updatable) The OCID of the compartment.
    databaseConfiguration string
    The Oracle Database configuration
    databaseEdition string
    The Oracle Database edition.
    databaseManagementConfigs ExternalPluggableDatabaseDatabaseManagementConfig[]
    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}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    displayName string
    (Updatable) The user-friendly name for the external database. The name does not have to be unique.
    externalContainerDatabaseId string
    The OCID of the external container database that contains the specified external pluggable database resource.
    freeformTags {[key: string]: any}
    (Updatable) 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"}
    lifecycleDetails string
    Additional information about the current lifecycle state.
    ncharacterSet string
    The national character of the external database.
    operationsInsightsConfigs ExternalPluggableDatabaseOperationsInsightsConfig[]
    The configuration of Operations Insights for the external database
    sourceId string

    The OCID of the the non-container database that was converted to a pluggable database to create this resource.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    stackMonitoringConfigs ExternalPluggableDatabaseStackMonitoringConfig[]
    The configuration of Stack Monitoring for the external database.
    state string
    The current state of the Oracle Cloud Infrastructure external database resource.
    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
    (Updatable) The OCID of the compartment.
    database_configuration str
    The Oracle Database configuration
    database_edition str
    The Oracle Database edition.
    database_management_configs Sequence[database.ExternalPluggableDatabaseDatabaseManagementConfigArgs]
    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]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    display_name str
    (Updatable) The user-friendly name for the external database. The name does not have to be unique.
    external_container_database_id str
    The OCID of the external container database that contains the specified external pluggable database resource.
    freeform_tags Mapping[str, Any]
    (Updatable) 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"}
    lifecycle_details str
    Additional information about the current lifecycle state.
    ncharacter_set str
    The national character of the external database.
    operations_insights_configs Sequence[database.ExternalPluggableDatabaseOperationsInsightsConfigArgs]
    The configuration of Operations Insights for the external database
    source_id str

    The OCID of the the non-container database that was converted to a pluggable database to create this resource.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    stack_monitoring_configs Sequence[database.ExternalPluggableDatabaseStackMonitoringConfigArgs]
    The configuration of Stack Monitoring for the external database.
    state str
    The current state of the Oracle Cloud Infrastructure external database resource.
    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
    (Updatable) The OCID of the compartment.
    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>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    displayName String
    (Updatable) The user-friendly name for the external database. The name does not have to be unique.
    externalContainerDatabaseId String
    The OCID of the external container database that contains the specified external pluggable database resource.
    freeformTags Map<Any>
    (Updatable) 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"}
    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
    sourceId String

    The OCID of the the non-container database that was converted to a pluggable database to create this resource.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    stackMonitoringConfigs List<Property Map>
    The configuration of Stack Monitoring for the external database.
    state String
    The current state of the Oracle Cloud Infrastructure external database resource.
    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.

    Supporting Types

    ExternalPluggableDatabaseDatabaseManagementConfig, ExternalPluggableDatabaseDatabaseManagementConfigArgs

    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.

    ExternalPluggableDatabaseOperationsInsightsConfig, ExternalPluggableDatabaseOperationsInsightsConfigArgs

    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

    ExternalPluggableDatabaseStackMonitoringConfig, ExternalPluggableDatabaseStackMonitoringConfigArgs

    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.

    Import

    ExternalPluggableDatabases can be imported using the id, e.g.

    $ pulumi import oci:Database/externalPluggableDatabase:ExternalPluggableDatabase test_external_pluggable_database "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi