Data Source: oci_database_management_managed_database_groups
This data source provides the list of Managed Database Groups in Oracle Cloud Infrastructure Database Management service.
Gets the Managed Database Group for a specific ID or the list of Managed Database Groups in a specific compartment. Managed Database Groups can also be filtered based on the name parameter. Only one of the parameters, ID or name should be provided. If none of these parameters is provided, all the Managed Database Groups in the compartment are listed.
Example Usage
data "oci_database_management_managed_database_groups" "test_managed_database_groups" {
#Required
compartment_id = var.compartment_id
#Optional
id = var.managed_database_group_id
name = var.managed_database_group_name
state = var.managed_database_group_state
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The OCID of the compartment.id
- (Optional) The identifier of the resource. Only one of the parameters, id or name should be provided.name
- (Optional) A filter to return only resources that match the entire name. Only one of the parameters, id or name should be providedstate
- (Optional) The lifecycle state of a resource.
Attributes Reference
The following attributes are exported:
managed_database_group_collection
- The list of managed_database_group_collection.
ManagedDatabaseGroup Reference
The following attributes are exported:
compartment_id
- The OCID of the compartment.defined_tags
- 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
- The information specified by the user about the Managed Database Group.freeform_tags
- 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
- The OCID of the Managed Database Group.managed_databases
- A list of Managed Databases in the Managed Database Group.compartment_id
- The OCID of the compartment in which the Managed Database resides.database_sub_type
- 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
- The type of Oracle Database installation.defined_tags
- 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
- The infrastructure used to deploy the Oracle Database.freeform_tags
- 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
- The OCID of the Managed Database.name
- The name of the Managed Database.system_tags
- 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
- The date and time the Managed Database was added to the group.workload_type
- The workload type of the Autonomous Database.
name
- The name of the Managed Database Group.state
- The current lifecycle state of the Managed Database Group.system_tags
- 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
- The date and time the Managed Database Group was created.time_updated
- The date and time the Managed Database Group was last updated.