1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. ManagedDatabaseGroup
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DatabaseManagement.ManagedDatabaseGroup

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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[_databasemanagement.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.
    DefinedTags 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.
    FreeformTags 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<ManagedDatabaseGroupManagedDatabase>
    (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.
    DefinedTags 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.
    FreeformTags 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 []ManagedDatabaseGroupManagedDatabaseArgs
    (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.
    definedTags 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.
    freeformTags 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<ManagedDatabaseGroupManagedDatabase>
    (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.
    definedTags {[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.
    freeformTags {[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 ManagedDatabaseGroupManagedDatabase[]
    (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.
    defined_tags 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.
    freeform_tags 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[databasemanagement.ManagedDatabaseGroupManagedDatabaseArgs]
    (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.
    definedTags 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.
    freeformTags 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.
    SystemTags 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.
    SystemTags 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.
    systemTags 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.
    systemTags {[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.
    system_tags 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.
    systemTags 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[_databasemanagement.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) -> ManagedDatabaseGroup
    func 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)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    CompartmentId string
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    DefinedTags 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.
    FreeformTags 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<ManagedDatabaseGroupManagedDatabase>
    (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.
    SystemTags 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.
    DefinedTags 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.
    FreeformTags 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 []ManagedDatabaseGroupManagedDatabaseArgs
    (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.
    SystemTags 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.
    definedTags 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.
    freeformTags 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<ManagedDatabaseGroupManagedDatabase>
    (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.
    systemTags 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.
    definedTags {[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.
    freeformTags {[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 ManagedDatabaseGroupManagedDatabase[]
    (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.
    systemTags {[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.
    defined_tags 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.
    freeform_tags 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[databasemanagement.ManagedDatabaseGroupManagedDatabaseArgs]
    (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.
    system_tags 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.
    definedTags 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.
    freeformTags 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.
    systemTags 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.
    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.
    DefinedTags 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.
    FreeformTags 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.
    SystemTags 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.
    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.
    DefinedTags 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.
    FreeformTags 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.
    SystemTags 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.
    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.
    definedTags 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.
    freeformTags 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.
    systemTags 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.
    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.
    definedTags {[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.
    freeformTags {[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.
    systemTags {[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_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.
    defined_tags 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.
    freeform_tags 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.
    system_tags 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.
    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.
    definedTags 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.
    freeformTags 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.
    systemTags 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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi