Oracle Cloud Infrastructure
getManagedDatabase
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
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testManagedDatabase = Output.Create(Oci.DatabaseManagement.GetManagedDatabase.InvokeAsync(new Oci.DatabaseManagement.GetManagedDatabaseArgs
{
ManagedDatabaseId = 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
})
}
Coming soon!
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"])
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,
});
Coming soon!
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:
- Managed
Database stringId The OCID of the Managed Database.
- Managed
Database stringId The OCID of the Managed Database.
- managed
Database StringId The OCID of the Managed Database.
- managed
Database stringId The OCID of the Managed Database.
- managed_
database_ strid The OCID of the Managed Database.
- managed
Database StringId The OCID of the Managed Database.
getManagedDatabase Result
The following output properties are available:
- Additional
Details Dictionary<string, object> The additional details specific to a type of database defined in
{"key": "value"}
format. Example:{"bar-key": "value"}
- Compartment
Id string The OCID of the compartment in which the Managed Database Group resides.
- Database
Status string The status of the Oracle Database. Indicates whether the status of the database is UP, DOWN, or UNKNOWN at the current time.
- Database
Sub stringType 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 string The type of Oracle Database installation.
- Deployment
Type string The infrastructure used to deploy the Oracle Database.
- Id string
The provider-assigned unique ID for this managed resource.
- Is
Cluster bool Indicates whether the Oracle Database is part of a cluster.
- Managed
Database List<GetGroups Managed Database Managed Database Group> A list of Managed Database Groups that the Managed Database belongs to.
- Managed
Database stringId - Management
Option string The management option used when enabling Database Management.
- Name string
The name of the Managed Database.
- Parent
Container stringId The OCID of the parent Container Database if Managed Database is a Pluggable Database.
- Time
Created string The date and time the Managed Database was created.
- Workload
Type string The workload type of the Autonomous Database.
- Additional
Details map[string]interface{} The additional details specific to a type of database defined in
{"key": "value"}
format. Example:{"bar-key": "value"}
- Compartment
Id string The OCID of the compartment in which the Managed Database Group resides.
- Database
Status string The status of the Oracle Database. Indicates whether the status of the database is UP, DOWN, or UNKNOWN at the current time.
- Database
Sub stringType 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 string The type of Oracle Database installation.
- Deployment
Type string The infrastructure used to deploy the Oracle Database.
- Id string
The provider-assigned unique ID for this managed resource.
- Is
Cluster bool Indicates whether the Oracle Database is part of a cluster.
- Managed
Database []GetGroups Managed Database Managed Database Group A list of Managed Database Groups that the Managed Database belongs to.
- Managed
Database stringId - Management
Option string The management option used when enabling Database Management.
- Name string
The name of the Managed Database.
- Parent
Container stringId The OCID of the parent Container Database if Managed Database is a Pluggable Database.
- Time
Created string The date and time the Managed Database was created.
- Workload
Type string The workload type of the Autonomous Database.
- additional
Details Map<String,Object> The additional details specific to a type of database defined in
{"key": "value"}
format. Example:{"bar-key": "value"}
- compartment
Id String The OCID of the compartment in which the Managed Database Group resides.
- database
Status String The status of the Oracle Database. Indicates whether the status of the database is UP, DOWN, or UNKNOWN at the current time.
- database
Sub StringType 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 String The type of Oracle Database installation.
- deployment
Type String The infrastructure used to deploy the Oracle Database.
- id String
The provider-assigned unique ID for this managed resource.
- is
Cluster Boolean Indicates whether the Oracle Database is part of a cluster.
- managed
Database List<GetGroups Managed Database Managed Database Group> A list of Managed Database Groups that the Managed Database belongs to.
- managed
Database StringId - management
Option String The management option used when enabling Database Management.
- name String
The name of the Managed Database.
- parent
Container StringId The OCID of the parent Container Database if Managed Database is a Pluggable Database.
- time
Created String The date and time the Managed Database was created.
- workload
Type String The workload type of the Autonomous Database.
- additional
Details {[key: string]: any} The additional details specific to a type of database defined in
{"key": "value"}
format. Example:{"bar-key": "value"}
- compartment
Id string The OCID of the compartment in which the Managed Database Group resides.
- database
Status string The status of the Oracle Database. Indicates whether the status of the database is UP, DOWN, or UNKNOWN at the current time.
- database
Sub stringType 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 string The type of Oracle Database installation.
- deployment
Type string The infrastructure used to deploy the Oracle Database.
- id string
The provider-assigned unique ID for this managed resource.
- is
Cluster boolean Indicates whether the Oracle Database is part of a cluster.
- managed
Database GetGroups Managed Database Managed Database Group[] A list of Managed Database Groups that the Managed Database belongs to.
- managed
Database stringId - management
Option string The management option used when enabling Database Management.
- name string
The name of the Managed Database.
- parent
Container stringId The OCID of the parent Container Database if Managed Database is a Pluggable Database.
- time
Created string The date and time the Managed Database was created.
- workload
Type 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_ strtype 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.
- deployment_
type str The infrastructure used to deploy the Oracle Database.
- 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_ Getgroups Managed Database Managed Database Group] A list of Managed Database Groups that the Managed Database belongs to.
- managed_
database_ strid - management_
option str The management option used when enabling Database Management.
- name str
The name of the Managed Database.
- parent_
container_ strid The OCID of the parent Container Database if Managed Database is a Pluggable Database.
- time_
created str The date and time the Managed Database was created.
- workload_
type str The workload type of the Autonomous Database.
- additional
Details Map<Any> The additional details specific to a type of database defined in
{"key": "value"}
format. Example:{"bar-key": "value"}
- compartment
Id String The OCID of the compartment in which the Managed Database Group resides.
- database
Status String The status of the Oracle Database. Indicates whether the status of the database is UP, DOWN, or UNKNOWN at the current time.
- database
Sub StringType 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 String The type of Oracle Database installation.
- deployment
Type String The infrastructure used to deploy the Oracle Database.
- id String
The provider-assigned unique ID for this managed resource.
- is
Cluster Boolean Indicates whether the Oracle Database is part of a cluster.
- managed
Database List<Property Map>Groups A list of Managed Database Groups that the Managed Database belongs to.
- managed
Database StringId - management
Option String The management option used when enabling Database Management.
- name String
The name of the Managed Database.
- parent
Container StringId The OCID of the parent Container Database if Managed Database is a Pluggable Database.
- time
Created String The date and time the Managed Database was created.
- workload
Type String The workload type of the Autonomous Database.
Supporting Types
GetManagedDatabaseManagedDatabaseGroup
- Compartment
Id 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 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 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 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.
- compartment
Id 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
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.