Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DatabaseManagement.getManagedDatabaseGroup
Explore with Pulumi AI
This data source provides details about a specific Managed Database Group resource in Oracle Cloud Infrastructure Database Management service.
Gets the details for the Managed Database Group specified by managedDatabaseGroupId.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedDatabaseGroup = oci.DatabaseManagement.getManagedDatabaseGroup({
    managedDatabaseGroupId: testManagedDatabaseGroupOciDatabaseManagementManagedDatabaseGroup.id,
});
import pulumi
import pulumi_oci as oci
test_managed_database_group = oci.DatabaseManagement.get_managed_database_group(managed_database_group_id=test_managed_database_group_oci_database_management_managed_database_group["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/databasemanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := databasemanagement.GetManagedDatabaseGroup(ctx, &databasemanagement.GetManagedDatabaseGroupArgs{
			ManagedDatabaseGroupId: testManagedDatabaseGroupOciDatabaseManagementManagedDatabaseGroup.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 testManagedDatabaseGroup = Oci.DatabaseManagement.GetManagedDatabaseGroup.Invoke(new()
    {
        ManagedDatabaseGroupId = testManagedDatabaseGroupOciDatabaseManagementManagedDatabaseGroup.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.GetManagedDatabaseGroupArgs;
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 testManagedDatabaseGroup = DatabaseManagementFunctions.getManagedDatabaseGroup(GetManagedDatabaseGroupArgs.builder()
            .managedDatabaseGroupId(testManagedDatabaseGroupOciDatabaseManagementManagedDatabaseGroup.id())
            .build());
    }
}
variables:
  testManagedDatabaseGroup:
    fn::invoke:
      function: oci:DatabaseManagement:getManagedDatabaseGroup
      arguments:
        managedDatabaseGroupId: ${testManagedDatabaseGroupOciDatabaseManagementManagedDatabaseGroup.id}
Using getManagedDatabaseGroup
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 getManagedDatabaseGroup(args: GetManagedDatabaseGroupArgs, opts?: InvokeOptions): Promise<GetManagedDatabaseGroupResult>
function getManagedDatabaseGroupOutput(args: GetManagedDatabaseGroupOutputArgs, opts?: InvokeOptions): Output<GetManagedDatabaseGroupResult>def get_managed_database_group(managed_database_group_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetManagedDatabaseGroupResult
def get_managed_database_group_output(managed_database_group_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetManagedDatabaseGroupResult]func LookupManagedDatabaseGroup(ctx *Context, args *LookupManagedDatabaseGroupArgs, opts ...InvokeOption) (*LookupManagedDatabaseGroupResult, error)
func LookupManagedDatabaseGroupOutput(ctx *Context, args *LookupManagedDatabaseGroupOutputArgs, opts ...InvokeOption) LookupManagedDatabaseGroupResultOutput> Note: This function is named LookupManagedDatabaseGroup in the Go SDK.
public static class GetManagedDatabaseGroup 
{
    public static Task<GetManagedDatabaseGroupResult> InvokeAsync(GetManagedDatabaseGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedDatabaseGroupResult> Invoke(GetManagedDatabaseGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedDatabaseGroupResult> getManagedDatabaseGroup(GetManagedDatabaseGroupArgs args, InvokeOptions options)
public static Output<GetManagedDatabaseGroupResult> getManagedDatabaseGroup(GetManagedDatabaseGroupArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DatabaseManagement/getManagedDatabaseGroup:getManagedDatabaseGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagedDatabase stringGroup Id 
- The OCID of the Managed Database Group.
- ManagedDatabase stringGroup Id 
- The OCID of the Managed Database Group.
- managedDatabase StringGroup Id 
- The OCID of the Managed Database Group.
- managedDatabase stringGroup Id 
- The OCID of the Managed Database Group.
- managed_database_ strgroup_ id 
- The OCID of the Managed Database Group.
- managedDatabase StringGroup Id 
- The OCID of the Managed Database Group.
getManagedDatabaseGroup Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment in which the Managed Database resides.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- Description string
- The information specified by the user about the Managed Database Group.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The OCID of the Managed Database.
- ManagedDatabase stringGroup Id 
- ManagedDatabases List<GetManaged Database Group Managed Database> 
- A list of Managed Databases in the Managed Database Group.
- Name string
- The name of the Managed Database Group.
- State string
- The current lifecycle state of the Managed Database Group.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The date and time the Managed Database Group was created.
- TimeUpdated string
- The date and time the Managed Database Group was last updated.
- CompartmentId string
- The OCID of the compartment in which the Managed Database resides.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- Description string
- The information specified by the user about the Managed Database Group.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The OCID of the Managed Database.
- ManagedDatabase stringGroup Id 
- ManagedDatabases []GetManaged Database Group Managed Database 
- A list of Managed Databases in the Managed Database Group.
- Name string
- The name of the Managed Database Group.
- State string
- The current lifecycle state of the Managed Database Group.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The date and time the Managed Database Group was created.
- TimeUpdated string
- The date and time the Managed Database Group was last updated.
- compartmentId String
- The OCID of the compartment in which the Managed Database resides.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description String
- The information specified by the user about the Managed Database Group.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The OCID of the Managed Database.
- managedDatabase StringGroup Id 
- managedDatabases List<GetManaged Database Group Managed Database> 
- A list of Managed Databases in the Managed Database Group.
- name String
- The name of the Managed Database Group.
- state String
- The current lifecycle state of the Managed Database Group.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The date and time the Managed Database Group was created.
- timeUpdated String
- The date and time the Managed Database Group was last updated.
- compartmentId string
- The OCID of the compartment in which the Managed Database resides.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description string
- The information specified by the user about the Managed Database Group.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id string
- The OCID of the Managed Database.
- managedDatabase stringGroup Id 
- managedDatabases GetManaged Database Group Managed Database[] 
- A list of Managed Databases in the Managed Database Group.
- name string
- The name of the Managed Database Group.
- state string
- The current lifecycle state of the Managed Database Group.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The date and time the Managed Database Group was created.
- timeUpdated string
- The date and time the Managed Database Group was last updated.
- compartment_id str
- The OCID of the compartment in which the Managed Database resides.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description str
- The information specified by the user about the Managed Database Group.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id str
- The OCID of the Managed Database.
- managed_database_ strgroup_ id 
- managed_databases Sequence[GetManaged Database Group Managed Database] 
- A list of Managed Databases in the Managed Database Group.
- name str
- The name of the Managed Database Group.
- state str
- The current lifecycle state of the Managed Database Group.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The date and time the Managed Database Group was created.
- time_updated str
- The date and time the Managed Database Group was last updated.
- compartmentId String
- The OCID of the compartment in which the Managed Database resides.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description String
- The information specified by the user about the Managed Database Group.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The OCID of the Managed Database.
- managedDatabase StringGroup Id 
- managedDatabases List<Property Map>
- A list of Managed Databases in the Managed Database Group.
- name String
- The name of the Managed Database Group.
- state String
- The current lifecycle state of the Managed Database Group.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The date and time the Managed Database Group was created.
- timeUpdated String
- The date and time the Managed Database Group was last updated.
Supporting Types
GetManagedDatabaseGroupManagedDatabase     
- CompartmentId string
- The OCID of the compartment in which the Managed Database resides.
- DatabaseSub 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.
- DatabaseType string
- The type of Oracle Database installation.
- Dictionary<string, string>
- 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.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The OCID of the Managed Database.
- Name string
- The name of the Managed Database Group.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeAdded string
- The date and time the Managed Database was added to the group.
- WorkloadType string
- The workload type of the Autonomous Database.
- CompartmentId string
- The OCID of the compartment in which the Managed Database resides.
- DatabaseSub 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.
- DatabaseType string
- The type of Oracle Database installation.
- map[string]string
- 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.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The OCID of the Managed Database.
- Name string
- The name of the Managed Database Group.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeAdded string
- The date and time the Managed Database was added to the group.
- WorkloadType string
- The workload type of the Autonomous Database.
- compartmentId String
- The OCID of the compartment in which the Managed Database resides.
- databaseSub 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.
- databaseType String
- The type of Oracle Database installation.
- Map<String,String>
- 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.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The OCID of the Managed Database.
- name String
- The name of the Managed Database Group.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeAdded String
- The date and time the Managed Database was added to the group.
- workloadType String
- The workload type of the Autonomous Database.
- compartmentId string
- The OCID of the compartment in which the Managed Database resides.
- databaseSub 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.
- databaseType string
- The type of Oracle Database installation.
- {[key: string]: string}
- 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.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id string
- The OCID of the Managed Database.
- name string
- The name of the Managed Database Group.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeAdded string
- The date and time the Managed Database was added to the group.
- workloadType string
- The workload type of the Autonomous Database.
- compartment_id str
- The OCID of the compartment in which the Managed Database resides.
- 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.
- Mapping[str, str]
- 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.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id str
- The OCID of the Managed Database.
- name str
- The name of the Managed Database Group.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_added str
- The date and time the Managed Database was added to the group.
- workload_type str
- The workload type of the Autonomous Database.
- compartmentId String
- The OCID of the compartment in which the Managed Database resides.
- databaseSub 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.
- databaseType String
- The type of Oracle Database installation.
- Map<String>
- 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.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The OCID of the Managed Database.
- name String
- The name of the Managed Database Group.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeAdded String
- The date and time the Managed Database was added to the group.
- workloadType String
- The workload type of the Autonomous Database.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.