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

oci.DatabaseManagement.getManagedDatabase

Explore with Pulumi AI

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

    This data source provides details about a specific Managed Database resource in Oracle Cloud Infrastructure Database Management service.

    Gets the details for the Managed Database specified by managedDatabaseId.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedDatabase = oci.DatabaseManagement.getManagedDatabase({
        managedDatabaseId: oci_database_management_managed_database.test_managed_database.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_database = oci.DatabaseManagement.get_managed_database(managed_database_id=oci_database_management_managed_database["test_managed_database"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DatabaseManagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DatabaseManagement.GetManagedDatabase(ctx, &databasemanagement.GetManagedDatabaseArgs{
    			ManagedDatabaseId: oci_database_management_managed_database.Test_managed_database.Id,
    		}, 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 testManagedDatabase = Oci.DatabaseManagement.GetManagedDatabase.Invoke(new()
        {
            ManagedDatabaseId = oci_database_management_managed_database.Test_managed_database.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DatabaseManagement.DatabaseManagementFunctions;
    import com.pulumi.oci.DatabaseManagement.inputs.GetManagedDatabaseArgs;
    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 testManagedDatabase = DatabaseManagementFunctions.getManagedDatabase(GetManagedDatabaseArgs.builder()
                .managedDatabaseId(oci_database_management_managed_database.test_managed_database().id())
                .build());
    
        }
    }
    
    variables:
      testManagedDatabase:
        fn::invoke:
          Function: oci:DatabaseManagement:getManagedDatabase
          Arguments:
            managedDatabaseId: ${oci_database_management_managed_database.test_managed_database.id}
    

    Using getManagedDatabase

    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 getManagedDatabase(args: GetManagedDatabaseArgs, opts?: InvokeOptions): Promise<GetManagedDatabaseResult>
    function getManagedDatabaseOutput(args: GetManagedDatabaseOutputArgs, opts?: InvokeOptions): Output<GetManagedDatabaseResult>
    def get_managed_database(managed_database_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetManagedDatabaseResult
    def get_managed_database_output(managed_database_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetManagedDatabaseResult]
    func GetManagedDatabase(ctx *Context, args *GetManagedDatabaseArgs, opts ...InvokeOption) (*GetManagedDatabaseResult, error)
    func GetManagedDatabaseOutput(ctx *Context, args *GetManagedDatabaseOutputArgs, opts ...InvokeOption) GetManagedDatabaseResultOutput

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

    public static class GetManagedDatabase 
    {
        public static Task<GetManagedDatabaseResult> InvokeAsync(GetManagedDatabaseArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedDatabaseResult> Invoke(GetManagedDatabaseInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedDatabaseResult> getManagedDatabase(GetManagedDatabaseArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DatabaseManagement/getManagedDatabase:getManagedDatabase
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ManagedDatabaseId string
    The OCID of the Managed Database.
    ManagedDatabaseId string
    The OCID of the Managed Database.
    managedDatabaseId String
    The OCID of the Managed Database.
    managedDatabaseId string
    The OCID of the Managed Database.
    managed_database_id str
    The OCID of the Managed Database.
    managedDatabaseId String
    The OCID of the Managed Database.

    getManagedDatabase Result

    The following output properties are available:

    AdditionalDetails Dictionary<string, object>
    The additional details specific to a type of database defined in {"key": "value"} format. Example: {"bar-key": "value"}
    CompartmentId string
    The OCID of the compartment in which the Managed Database Group resides.
    DatabaseStatus string
    The status of the Oracle Database. Indicates whether the status of the database is UP, DOWN, or UNKNOWN at the current time.
    DatabaseSubType string
    The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
    DatabaseType string
    The type of Oracle Database installation.
    DatabaseVersion string
    The Oracle Database version.
    DbSystemId string
    The OCID of the external DB system that this Managed Database is part of.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DeploymentType string
    The infrastructure used to deploy the Oracle Database.
    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 provider-assigned unique ID for this managed resource.
    IsCluster bool
    Indicates whether the Oracle Database is part of a cluster.
    ManagedDatabaseGroups List<GetManagedDatabaseManagedDatabaseGroup>
    A list of Managed Database Groups that the Managed Database belongs to.
    ManagedDatabaseId string
    ManagementOption string
    The management option used when enabling Database Management.
    Name string
    The name of the Managed Database.
    ParentContainerId string
    The OCID of the parent Container Database if Managed Database is a Pluggable Database.
    StorageSystemId string
    The OCID of the storage DB system.
    TimeCreated string
    The date and time the Managed Database was created.
    WorkloadType string
    The workload type of the Autonomous Database.
    AdditionalDetails map[string]interface{}
    The additional details specific to a type of database defined in {"key": "value"} format. Example: {"bar-key": "value"}
    CompartmentId string
    The OCID of the compartment in which the Managed Database Group resides.
    DatabaseStatus string
    The status of the Oracle Database. Indicates whether the status of the database is UP, DOWN, or UNKNOWN at the current time.
    DatabaseSubType string
    The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
    DatabaseType string
    The type of Oracle Database installation.
    DatabaseVersion string
    The Oracle Database version.
    DbSystemId string
    The OCID of the external DB system that this Managed Database is part of.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DeploymentType string
    The infrastructure used to deploy the Oracle Database.
    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 provider-assigned unique ID for this managed resource.
    IsCluster bool
    Indicates whether the Oracle Database is part of a cluster.
    ManagedDatabaseGroups []GetManagedDatabaseManagedDatabaseGroup
    A list of Managed Database Groups that the Managed Database belongs to.
    ManagedDatabaseId string
    ManagementOption string
    The management option used when enabling Database Management.
    Name string
    The name of the Managed Database.
    ParentContainerId string
    The OCID of the parent Container Database if Managed Database is a Pluggable Database.
    StorageSystemId string
    The OCID of the storage DB system.
    TimeCreated string
    The date and time the Managed Database was created.
    WorkloadType string
    The workload type of the Autonomous Database.
    additionalDetails Map<String,Object>
    The additional details specific to a type of database defined in {"key": "value"} format. Example: {"bar-key": "value"}
    compartmentId String
    The OCID of the compartment in which the Managed Database Group resides.
    databaseStatus String
    The status of the Oracle Database. Indicates whether the status of the database is UP, DOWN, or UNKNOWN at the current time.
    databaseSubType String
    The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
    databaseType String
    The type of Oracle Database installation.
    databaseVersion String
    The Oracle Database version.
    dbSystemId String
    The OCID of the external DB system that this Managed Database is part of.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    deploymentType String
    The infrastructure used to deploy the Oracle Database.
    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 provider-assigned unique ID for this managed resource.
    isCluster Boolean
    Indicates whether the Oracle Database is part of a cluster.
    managedDatabaseGroups List<GetManagedDatabaseManagedDatabaseGroup>
    A list of Managed Database Groups that the Managed Database belongs to.
    managedDatabaseId String
    managementOption String
    The management option used when enabling Database Management.
    name String
    The name of the Managed Database.
    parentContainerId String
    The OCID of the parent Container Database if Managed Database is a Pluggable Database.
    storageSystemId String
    The OCID of the storage DB system.
    timeCreated String
    The date and time the Managed Database was created.
    workloadType String
    The workload type of the Autonomous Database.
    additionalDetails {[key: string]: any}
    The additional details specific to a type of database defined in {"key": "value"} format. Example: {"bar-key": "value"}
    compartmentId string
    The OCID of the compartment in which the Managed Database Group resides.
    databaseStatus string
    The status of the Oracle Database. Indicates whether the status of the database is UP, DOWN, or UNKNOWN at the current time.
    databaseSubType string
    The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
    databaseType string
    The type of Oracle Database installation.
    databaseVersion string
    The Oracle Database version.
    dbSystemId string
    The OCID of the external DB system that this Managed Database is part of.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    deploymentType string
    The infrastructure used to deploy the Oracle Database.
    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 provider-assigned unique ID for this managed resource.
    isCluster boolean
    Indicates whether the Oracle Database is part of a cluster.
    managedDatabaseGroups GetManagedDatabaseManagedDatabaseGroup[]
    A list of Managed Database Groups that the Managed Database belongs to.
    managedDatabaseId string
    managementOption string
    The management option used when enabling Database Management.
    name string
    The name of the Managed Database.
    parentContainerId string
    The OCID of the parent Container Database if Managed Database is a Pluggable Database.
    storageSystemId string
    The OCID of the storage DB system.
    timeCreated string
    The date and time the Managed Database was created.
    workloadType string
    The workload type of the Autonomous Database.
    additional_details Mapping[str, Any]
    The additional details specific to a type of database defined in {"key": "value"} format. Example: {"bar-key": "value"}
    compartment_id str
    The OCID of the compartment in which the Managed Database Group resides.
    database_status str
    The status of the Oracle Database. Indicates whether the status of the database is UP, DOWN, or UNKNOWN at the current time.
    database_sub_type str
    The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
    database_type str
    The type of Oracle Database installation.
    database_version str
    The Oracle Database version.
    db_system_id str
    The OCID of the external DB system that this Managed Database is part of.
    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. Example: {"Operations.CostCenter": "42"}
    deployment_type str
    The infrastructure used to deploy the Oracle Database.
    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 provider-assigned unique ID for this managed resource.
    is_cluster bool
    Indicates whether the Oracle Database is part of a cluster.
    managed_database_groups Sequence[databasemanagement.GetManagedDatabaseManagedDatabaseGroup]
    A list of Managed Database Groups that the Managed Database belongs to.
    managed_database_id str
    management_option str
    The management option used when enabling Database Management.
    name str
    The name of the Managed Database.
    parent_container_id str
    The OCID of the parent Container Database if Managed Database is a Pluggable Database.
    storage_system_id str
    The OCID of the storage DB system.
    time_created str
    The date and time the Managed Database was created.
    workload_type str
    The workload type of the Autonomous Database.
    additionalDetails Map<Any>
    The additional details specific to a type of database defined in {"key": "value"} format. Example: {"bar-key": "value"}
    compartmentId String
    The OCID of the compartment in which the Managed Database Group resides.
    databaseStatus String
    The status of the Oracle Database. Indicates whether the status of the database is UP, DOWN, or UNKNOWN at the current time.
    databaseSubType String
    The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
    databaseType String
    The type of Oracle Database installation.
    databaseVersion String
    The Oracle Database version.
    dbSystemId String
    The OCID of the external DB system that this Managed Database is part of.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    deploymentType String
    The infrastructure used to deploy the Oracle Database.
    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 provider-assigned unique ID for this managed resource.
    isCluster Boolean
    Indicates whether the Oracle Database is part of a cluster.
    managedDatabaseGroups List<Property Map>
    A list of Managed Database Groups that the Managed Database belongs to.
    managedDatabaseId String
    managementOption String
    The management option used when enabling Database Management.
    name String
    The name of the Managed Database.
    parentContainerId String
    The OCID of the parent Container Database if Managed Database is a Pluggable Database.
    storageSystemId String
    The OCID of the storage DB system.
    timeCreated String
    The date and time the Managed Database was created.
    workloadType String
    The workload type of the Autonomous Database.

    Supporting Types

    GetManagedDatabaseManagedDatabaseGroup

    CompartmentId string
    The OCID of the compartment in which the Managed Database Group resides.
    Id string
    The OCID of the Managed Database Group.
    Name string
    The name of the Managed Database.
    CompartmentId string
    The OCID of the compartment in which the Managed Database Group resides.
    Id string
    The OCID of the Managed Database Group.
    Name string
    The name of the Managed Database.
    compartmentId String
    The OCID of the compartment in which the Managed Database Group resides.
    id String
    The OCID of the Managed Database Group.
    name String
    The name of the Managed Database.
    compartmentId string
    The OCID of the compartment in which the Managed Database Group resides.
    id string
    The OCID of the Managed Database Group.
    name string
    The name of the Managed Database.
    compartment_id str
    The OCID of the compartment in which the Managed Database Group resides.
    id str
    The OCID of the Managed Database Group.
    name str
    The name of the Managed Database.
    compartmentId String
    The OCID of the compartment in which the Managed Database Group resides.
    id String
    The OCID of the Managed Database Group.
    name String
    The name of the Managed Database.

    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