oci.DatabaseManagement.ManagedDatabaseGroup
Explore with Pulumi AI
This resource provides the Managed Database Group resource in Oracle Cloud Infrastructure Database Management service.
Creates a Managed Database Group. The group does not contain any Managed Databases when it is created, and they must be added later.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedDatabaseGroup = new oci.databasemanagement.ManagedDatabaseGroup("test_managed_database_group", {
    compartmentId: compartmentId,
    name: managedDatabaseGroupName,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    description: managedDatabaseGroupDescription,
    freeformTags: {
        Department: "Finance",
    },
    managedDatabases: [{
        id: managedDatabaseId,
    }],
});
import pulumi
import pulumi_oci as oci
test_managed_database_group = oci.database_management.ManagedDatabaseGroup("test_managed_database_group",
    compartment_id=compartment_id,
    name=managed_database_group_name,
    defined_tags={
        "Operations.CostCenter": "42",
    },
    description=managed_database_group_description,
    freeform_tags={
        "Department": "Finance",
    },
    managed_databases=[{
        "id": managed_database_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.NewManagedDatabaseGroup(ctx, "test_managed_database_group", &databasemanagement.ManagedDatabaseGroupArgs{
			CompartmentId: pulumi.Any(compartmentId),
			Name:          pulumi.Any(managedDatabaseGroupName),
			DefinedTags: pulumi.StringMap{
				"Operations.CostCenter": pulumi.String("42"),
			},
			Description: pulumi.Any(managedDatabaseGroupDescription),
			FreeformTags: pulumi.StringMap{
				"Department": pulumi.String("Finance"),
			},
			ManagedDatabases: databasemanagement.ManagedDatabaseGroupManagedDatabaseArray{
				&databasemanagement.ManagedDatabaseGroupManagedDatabaseArgs{
					Id: pulumi.Any(managedDatabaseId),
				},
			},
		})
		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 = new Oci.DatabaseManagement.ManagedDatabaseGroup("test_managed_database_group", new()
    {
        CompartmentId = compartmentId,
        Name = managedDatabaseGroupName,
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        Description = managedDatabaseGroupDescription,
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
        ManagedDatabases = new[]
        {
            new Oci.DatabaseManagement.Inputs.ManagedDatabaseGroupManagedDatabaseArgs
            {
                Id = managedDatabaseId,
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.ManagedDatabaseGroup;
import com.pulumi.oci.DatabaseManagement.ManagedDatabaseGroupArgs;
import com.pulumi.oci.DatabaseManagement.inputs.ManagedDatabaseGroupManagedDatabaseArgs;
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 testManagedDatabaseGroup = new ManagedDatabaseGroup("testManagedDatabaseGroup", ManagedDatabaseGroupArgs.builder()
            .compartmentId(compartmentId)
            .name(managedDatabaseGroupName)
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .description(managedDatabaseGroupDescription)
            .freeformTags(Map.of("Department", "Finance"))
            .managedDatabases(ManagedDatabaseGroupManagedDatabaseArgs.builder()
                .id(managedDatabaseId)
                .build())
            .build());
    }
}
resources:
  testManagedDatabaseGroup:
    type: oci:DatabaseManagement:ManagedDatabaseGroup
    name: test_managed_database_group
    properties:
      compartmentId: ${compartmentId}
      name: ${managedDatabaseGroupName}
      definedTags:
        Operations.CostCenter: '42'
      description: ${managedDatabaseGroupDescription}
      freeformTags:
        Department: Finance
      managedDatabases:
        - id: ${managedDatabaseId}
Create ManagedDatabaseGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagedDatabaseGroup(name: string, args: ManagedDatabaseGroupArgs, opts?: CustomResourceOptions);@overload
def ManagedDatabaseGroup(resource_name: str,
                         args: ManagedDatabaseGroupArgs,
                         opts: Optional[ResourceOptions] = None)
@overload
def ManagedDatabaseGroup(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         compartment_id: Optional[str] = None,
                         defined_tags: Optional[Mapping[str, str]] = None,
                         description: Optional[str] = None,
                         freeform_tags: Optional[Mapping[str, str]] = None,
                         managed_databases: Optional[Sequence[ManagedDatabaseGroupManagedDatabaseArgs]] = None,
                         name: Optional[str] = None)func NewManagedDatabaseGroup(ctx *Context, name string, args ManagedDatabaseGroupArgs, opts ...ResourceOption) (*ManagedDatabaseGroup, error)public ManagedDatabaseGroup(string name, ManagedDatabaseGroupArgs args, CustomResourceOptions? opts = null)
public ManagedDatabaseGroup(String name, ManagedDatabaseGroupArgs args)
public ManagedDatabaseGroup(String name, ManagedDatabaseGroupArgs args, CustomResourceOptions options)
type: oci:DatabaseManagement:ManagedDatabaseGroup
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 ManagedDatabaseGroupArgs
- 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 ManagedDatabaseGroupArgs
- 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 ManagedDatabaseGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagedDatabaseGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagedDatabaseGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var managedDatabaseGroupResource = new Oci.DatabaseManagement.ManagedDatabaseGroup("managedDatabaseGroupResource", new()
{
    CompartmentId = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    Description = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    ManagedDatabases = new[]
    {
        new Oci.DatabaseManagement.Inputs.ManagedDatabaseGroupManagedDatabaseArgs
        {
            CompartmentId = "string",
            DatabaseSubType = "string",
            DatabaseType = "string",
            DefinedTags = 
            {
                { "string", "string" },
            },
            DeploymentType = "string",
            FreeformTags = 
            {
                { "string", "string" },
            },
            Id = "string",
            Name = "string",
            SystemTags = 
            {
                { "string", "string" },
            },
            TimeAdded = "string",
            WorkloadType = "string",
        },
    },
    Name = "string",
});
example, err := databasemanagement.NewManagedDatabaseGroup(ctx, "managedDatabaseGroupResource", &databasemanagement.ManagedDatabaseGroupArgs{
	CompartmentId: pulumi.String("string"),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	ManagedDatabases: databasemanagement.ManagedDatabaseGroupManagedDatabaseArray{
		&databasemanagement.ManagedDatabaseGroupManagedDatabaseArgs{
			CompartmentId:   pulumi.String("string"),
			DatabaseSubType: pulumi.String("string"),
			DatabaseType:    pulumi.String("string"),
			DefinedTags: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
			DeploymentType: pulumi.String("string"),
			FreeformTags: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
			Id:   pulumi.String("string"),
			Name: pulumi.String("string"),
			SystemTags: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
			TimeAdded:    pulumi.String("string"),
			WorkloadType: pulumi.String("string"),
		},
	},
	Name: pulumi.String("string"),
})
var managedDatabaseGroupResource = new ManagedDatabaseGroup("managedDatabaseGroupResource", ManagedDatabaseGroupArgs.builder()
    .compartmentId("string")
    .definedTags(Map.of("string", "string"))
    .description("string")
    .freeformTags(Map.of("string", "string"))
    .managedDatabases(ManagedDatabaseGroupManagedDatabaseArgs.builder()
        .compartmentId("string")
        .databaseSubType("string")
        .databaseType("string")
        .definedTags(Map.of("string", "string"))
        .deploymentType("string")
        .freeformTags(Map.of("string", "string"))
        .id("string")
        .name("string")
        .systemTags(Map.of("string", "string"))
        .timeAdded("string")
        .workloadType("string")
        .build())
    .name("string")
    .build());
managed_database_group_resource = oci.database_management.ManagedDatabaseGroup("managedDatabaseGroupResource",
    compartment_id="string",
    defined_tags={
        "string": "string",
    },
    description="string",
    freeform_tags={
        "string": "string",
    },
    managed_databases=[{
        "compartment_id": "string",
        "database_sub_type": "string",
        "database_type": "string",
        "defined_tags": {
            "string": "string",
        },
        "deployment_type": "string",
        "freeform_tags": {
            "string": "string",
        },
        "id": "string",
        "name": "string",
        "system_tags": {
            "string": "string",
        },
        "time_added": "string",
        "workload_type": "string",
    }],
    name="string")
const managedDatabaseGroupResource = new oci.databasemanagement.ManagedDatabaseGroup("managedDatabaseGroupResource", {
    compartmentId: "string",
    definedTags: {
        string: "string",
    },
    description: "string",
    freeformTags: {
        string: "string",
    },
    managedDatabases: [{
        compartmentId: "string",
        databaseSubType: "string",
        databaseType: "string",
        definedTags: {
            string: "string",
        },
        deploymentType: "string",
        freeformTags: {
            string: "string",
        },
        id: "string",
        name: "string",
        systemTags: {
            string: "string",
        },
        timeAdded: "string",
        workloadType: "string",
    }],
    name: "string",
});
type: oci:DatabaseManagement:ManagedDatabaseGroup
properties:
    compartmentId: string
    definedTags:
        string: string
    description: string
    freeformTags:
        string: string
    managedDatabases:
        - compartmentId: string
          databaseSubType: string
          databaseType: string
          definedTags:
            string: string
          deploymentType: string
          freeformTags:
            string: string
          id: string
          name: string
          systemTags:
            string: string
          timeAdded: string
          workloadType: string
    name: string
ManagedDatabaseGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ManagedDatabaseGroup resource accepts the following input properties:
- CompartmentId string
- (Updatable) The OCID of the compartment in which the Managed Database Group resides.
- Dictionary<string, string>
- (Updatable) 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
- (Updatable) The information specified by the user about the Managed Database Group.
- Dictionary<string, string>
- (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"}
- ManagedDatabases List<ManagedDatabase Group Managed Database> 
- (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
- Name string
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- CompartmentId string
- (Updatable) The OCID of the compartment in which the Managed Database Group resides.
- map[string]string
- (Updatable) 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
- (Updatable) The information specified by the user about the Managed Database Group.
- map[string]string
- (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"}
- ManagedDatabases []ManagedDatabase Group Managed Database Args 
- (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
- Name string
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- compartmentId String
- (Updatable) The OCID of the compartment in which the Managed Database Group resides.
- Map<String,String>
- (Updatable) 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
- (Updatable) The information specified by the user about the Managed Database Group.
- Map<String,String>
- (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"}
- managedDatabases List<ManagedDatabase Group Managed Database> 
- (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
- name String
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- compartmentId string
- (Updatable) The OCID of the compartment in which the Managed Database Group resides.
- {[key: string]: string}
- (Updatable) 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
- (Updatable) The information specified by the user about the Managed Database Group.
- {[key: string]: string}
- (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"}
- managedDatabases ManagedDatabase Group Managed Database[] 
- (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
- name string
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- compartment_id str
- (Updatable) The OCID of the compartment in which the Managed Database Group resides.
- Mapping[str, str]
- (Updatable) 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
- (Updatable) The information specified by the user about the Managed Database Group.
- Mapping[str, str]
- (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"}
- managed_databases Sequence[ManagedDatabase Group Managed Database Args] 
- (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
- name str
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- compartmentId String
- (Updatable) The OCID of the compartment in which the Managed Database Group resides.
- Map<String>
- (Updatable) 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
- (Updatable) The information specified by the user about the Managed Database Group.
- Map<String>
- (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"}
- managedDatabases List<Property Map>
- (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
- name String
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagedDatabaseGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- 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.
- id str
- The provider-assigned unique ID for this managed resource.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
Look up Existing ManagedDatabaseGroup Resource
Get an existing ManagedDatabaseGroup 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?: ManagedDatabaseGroupState, opts?: CustomResourceOptions): ManagedDatabaseGroup@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        description: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        managed_databases: Optional[Sequence[ManagedDatabaseGroupManagedDatabaseArgs]] = None,
        name: Optional[str] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, str]] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None) -> ManagedDatabaseGroupfunc GetManagedDatabaseGroup(ctx *Context, name string, id IDInput, state *ManagedDatabaseGroupState, opts ...ResourceOption) (*ManagedDatabaseGroup, error)public static ManagedDatabaseGroup Get(string name, Input<string> id, ManagedDatabaseGroupState? state, CustomResourceOptions? opts = null)public static ManagedDatabaseGroup get(String name, Output<String> id, ManagedDatabaseGroupState state, CustomResourceOptions options)resources:  _:    type: oci:DatabaseManagement:ManagedDatabaseGroup    get:      id: ${id}- 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.
- CompartmentId string
- (Updatable) The OCID of the compartment in which the Managed Database Group resides.
- Dictionary<string, string>
- (Updatable) 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
- (Updatable) The information specified by the user about the Managed Database Group.
- Dictionary<string, string>
- (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"}
- ManagedDatabases List<ManagedDatabase Group Managed Database> 
- (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
- Name string
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- 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
- (Updatable) The OCID of the compartment in which the Managed Database Group resides.
- map[string]string
- (Updatable) 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
- (Updatable) The information specified by the user about the Managed Database Group.
- map[string]string
- (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"}
- ManagedDatabases []ManagedDatabase Group Managed Database Args 
- (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
- Name string
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- 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
- (Updatable) The OCID of the compartment in which the Managed Database Group resides.
- Map<String,String>
- (Updatable) 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
- (Updatable) The information specified by the user about the Managed Database Group.
- Map<String,String>
- (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"}
- managedDatabases List<ManagedDatabase Group Managed Database> 
- (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
- name String
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- 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
- (Updatable) The OCID of the compartment in which the Managed Database Group resides.
- {[key: string]: string}
- (Updatable) 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
- (Updatable) The information specified by the user about the Managed Database Group.
- {[key: string]: string}
- (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"}
- managedDatabases ManagedDatabase Group Managed Database[] 
- (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
- name string
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- 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
- (Updatable) The OCID of the compartment in which the Managed Database Group resides.
- Mapping[str, str]
- (Updatable) 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
- (Updatable) The information specified by the user about the Managed Database Group.
- Mapping[str, str]
- (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"}
- managed_databases Sequence[ManagedDatabase Group Managed Database Args] 
- (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
- name str
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- 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
- (Updatable) The OCID of the compartment in which the Managed Database Group resides.
- Map<String>
- (Updatable) 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
- (Updatable) The information specified by the user about the Managed Database Group.
- Map<String>
- (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"}
- managedDatabases List<Property Map>
- (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
- name String
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- 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
ManagedDatabaseGroupManagedDatabase, ManagedDatabaseGroupManagedDatabaseArgs          
- CompartmentId string
- (Updatable) The OCID of the compartment in which the Managed Database Group 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>
- (Updatable) 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>
- (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"}
- Id string
- The OCID of the managed database that needs to be added to the Managed Database Group. - ** 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 
- Name string
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- 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
- (Updatable) The OCID of the compartment in which the Managed Database Group 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
- (Updatable) 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
- (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"}
- Id string
- The OCID of the managed database that needs to be added to the Managed Database Group. - ** 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 
- Name string
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- 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
- (Updatable) The OCID of the compartment in which the Managed Database Group 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>
- (Updatable) 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>
- (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"}
- id String
- The OCID of the managed database that needs to be added to the Managed Database Group. - ** 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 
- name String
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- 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
- (Updatable) The OCID of the compartment in which the Managed Database Group 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}
- (Updatable) 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}
- (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"}
- id string
- The OCID of the managed database that needs to be added to the Managed Database Group. - ** 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 
- name string
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- {[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
- (Updatable) The OCID of the compartment in which the Managed Database Group 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]
- (Updatable) 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]
- (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"}
- id str
- The OCID of the managed database that needs to be added to the Managed Database Group. - ** 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 
- name str
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- 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
- (Updatable) The OCID of the compartment in which the Managed Database Group 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>
- (Updatable) 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>
- (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"}
- id String
- The OCID of the managed database that needs to be added to the Managed Database Group. - ** 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 
- name String
- The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
- 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.
Import
ManagedDatabaseGroups can be imported using the id, e.g.
$ pulumi import oci:DatabaseManagement/managedDatabaseGroup:ManagedDatabaseGroup test_managed_database_group "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 ociTerraform Provider.